Differences between WebGL and OpenGL - Stack Overflow
文章推薦指數: 80 %
WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics API based on OpenGL ES 2.0, exposed through the HTML5 Canvas ... Home Public Questions Tags Users Collectives ExploreCollectives FindaJob Jobs Companies Teams StackOverflowforTeams –Collaborateandshareknowledgewithaprivategroup. CreateafreeTeam WhatisTeams? Teams CreatefreeTeam CollectivesonStackOverflow Findcentralized,trustedcontentandcollaboratearoundthetechnologiesyouusemost. Learnmore Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. Learnmore DifferencesbetweenWebGLandOpenGL AskQuestion Asked 10years,3monthsago Active 2years,9monthsago Viewed 43ktimes 48 15 CananyonegivemeasimpleanswerabouttheexactdifferencebetweenOpenGLandWebGL?Ineedmorespecificonthefollowing: programmingsemantics,API'sinheritence,API'sextensionsetc. I'velookedatthefollowingsitebutitisnotverycleartome: http://www.khronos.org/webgl/wiki/WebGL_and_OpenGL_Differences openglwebgl Share Improvethisquestion Follow editedNov30,2018at12:44 doppelgreener 5,55199goldbadges4747silverbadges6262bronzebadges askedDec11,2011at6:49 DeepakDeepak 93622goldbadges88silverbadges1414bronzebadges 1 3 "programmingsymantecs,api'sinheritence,api'sextension"xD – User Oct14,2012at10:43 Addacomment | 4Answers 4 Sortedby: HighestScore(default) Datemodified(newestfirst) Datecreated(oldestfirst) 51 WebGLis"OpenGLES2",notplainOpenGL(theESstandsfor'forEmbeddedSystems').Sothere'sthefirstdifference.OpenGLESisessentiallyasubsetofOpenGL.Inaddition,WebGLisalmostthesameasOpenGLES2,buthassomesubtledifferences,explainedinthelinkyouprovide.There'snotmuchtoaddtothatlink,it'saprettyclearexplanationofwhatisdifferentbetweenOpenGLES2andWebgl. Share Improvethisanswer Follow answeredDec11,2011at6:59 Mike'Pomax'KamermansMike'Pomax'Kamermans 43.5k1414goldbadges9090silverbadges133133bronzebadges Addacomment | 37 OpenGLisadesktopcomputer-centricAPI(likeDirect3D).WebGLisderivedfromOpenGLES2.0(intendedformobiledevices)whichhaslesscapabilitiesandissimplertouse. WebGLisalsodesignedtoruninabrowser,andhasthereforeafewlimitationsmorethenOpenGLES2.0. UnlikeOpenGL,WebGLdoesnotrequirenativedriversupport.AwrappercalledANGLE,whichSafari,ChromeandFirefoxusecantranslateWebGLcallsandGLSLtoeitherOpenGL/GLSLorDirect3D/HLSL PleaseseetheKhronoswikiforadetailedanswer:http://www.khronos.org/webgl/wiki/WebGL_and_OpenGL_Differences Share Improvethisanswer Follow editedDec11,2015at19:30 user719662 answeredJan4,2012at23:55 FlorianBöschFlorianBösch 26.7k1111goldbadges4646silverbadges5353bronzebadges Addacomment | 11 WebGLismeanttoruninabrowser(webapplications). WebGLisasoftwarelibrarythatextendsthecapabilityoftheJavaScriptprogramminglanguagetoallowittogenerateinteractive3Dgraphicswithinanycompatiblewebbrowser. ... ItusestheHTML5canvaselementandisaccessedusingDocumentObjectModelinterfaces.AutomaticmemorymanagementisprovidedaspartoftheJavaScriptlanguage. OpenGListypicallyusedindesktopapplications.Itisacross-language,cross-platformspecification,ofwhichWebGLismore-or-lessasubset. Share Improvethisanswer Follow answeredDec11,2011at6:58 MattBallMattBall 342k9696goldbadges626626silverbadges693693bronzebadges Addacomment | 4 Theconsortium(https://www.khronos.org/webgl/)definitionisquotedbelow. WebGLisacross-platform,royalty-freewebstandardforalow-level3DgraphicsAPIbasedonOpenGLES2.0,exposedthroughtheHTML5CanvaselementasDocumentObjectModelinterfaces.DevelopersfamiliarwithOpenGLES2.0willrecognizeWebGLasaShader-basedAPIusingGLSL,withconstructsthataresemanticallysimilartothoseoftheunderlyingOpenGLES2.0API.ItstaysveryclosetotheOpenGLES2.0specification,withsomeconcessionsmadeforwhatdevelopersexpectoutofmemory-managedlanguagessuchasJavaScript. OpenGLandWebGLhavesimilarsemanticsbutarecodedindifferentlanguages.YouwillseeatthebasiclevelthatmostofdifferencesareintheprogramminglanguageconstructsofC/C++vsJavaScript WebGLandOpenGLshowsthesimilaritiesbetweenthetwo,OpenGLinC/C++andWebGLinJavaScript. Share Improvethisanswer Follow editedJun20,2020at9:12 CommunityBot 111silverbadge answeredSep27,2016at15:56 ap-osdap-osd 2,1661515silverbadges1414bronzebadges Addacomment | YourAnswer ThanksforcontributingananswertoStackOverflow!Pleasebesuretoanswerthequestion.Providedetailsandshareyourresearch!Butavoid…Askingforhelp,clarification,orrespondingtootheranswers.Makingstatementsbasedonopinion;backthemupwithreferencesorpersonalexperience.Tolearnmore,seeourtipsonwritinggreatanswers. Draftsaved Draftdiscarded Signuporlogin SignupusingGoogle SignupusingFacebook SignupusingEmailandPassword Submit Postasaguest Name Email Required,butnevershown PostYourAnswer Discard Byclicking“PostYourAnswer”,youagreetoourtermsofservice,privacypolicyandcookiepolicy Nottheansweryou'relookingfor?Browseotherquestionstaggedopenglwebgloraskyourownquestion. TheOverflowBlog WelcomingthenewcrewofStackOverflowpodcasthosts FeaturedonMeta StackExchangeQ&AaccesswillnotberestrictedinRussia PlannedmaintenancescheduledforFriday,March18th,00:30-2:00UTC... Improvingthefirst-timeaskerexperience-Whatwasaskingyourfirst... Visitchat Related 149 What'stheconceptofanddifferencesbetweenFramebufferandRenderbufferinOpenGL? 146 DifferencesandrelationshipbetweenglActiveTextureandglBindTexture 0 UsingTEXTURE_2DwithThree.js 16 Are1DTexturesSupportedinWebGLyet? 2 HowareverticestransformedinWebGLinindexedandnon-indexedgeometries? 2 WebGL-INVALID_OPERATION:texImage2D:ArrayBufferViewnotbigenoughforrequest 0 QualitydifferencesbetweenHTML,CanvasandWebGL 2 webglperformancedifferencesbetweenfirefoxandchrome HotNetworkQuestions Howdomigratorydragonsavoidbeingblindedbysun? RAKUDO_RAKUAST=1raku--target=astisnotyetavailable HowtocreateaccurateimagemasksusingGraphics? Whatistheoldestdigitalprocessorstillperformingnon-educationaldutiesinitsoriginalenvironment? Wherecouldyoustoretheenergyfromatornado? Shortstoryaboutthestudyofalchemy,withthemesofdiminishingreturnsofacertainkindofacademicprogress WhythereisnoBlackholelikeactivitiesinsideamassivestar? Howtodisablethebuilt-inadvertisingonLibreOffice6.1+? HowtomakewaterdropletsinMycollectionappearonaobjectonnormals Whataretheriskstostoreadigitalscaleunderanobject? Whatbandwidthandavailabilityisrequiredformodernairtrafficcontrol? Whydomagicallyshrunkenpeoplespeakwithsuchhighvoices? CanImakeinfiniteicearrowsusingtheShapeWatercantrip? Themaximalsubsetofafinitefieldwherethesumofanysubsetisnon-zero Fillinthenextnumbers ShouldIraiseanexception/errorwhenanoptionalargumentisusedbutisnotnecessary? Largestsolarpanel(byarea)deployedinspace?Largestbelow/at/aboveGEO? WhatexactlyisthisresidueandhowdoIcleanitoff? Whydopassportsbelongtoacountryandnottothecitizen? WhydoestheUnitedStatesmakeitpublicknowledgeastowhichgeneralsareinchargeofvariousoperations? BestWaystoAchievethisorganiclook? Canphantompowerdamageanunpoweredmicrophone? WillJUICEbedoingscienceen-route? RandomPointfroma2DDonutDistribution morehotquestions Questionfeed SubscribetoRSS Questionfeed TosubscribetothisRSSfeed,copyandpastethisURLintoyourRSSreader. Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings
延伸文章資訊
- 1WebGL,OpenGL和OpenGL ES三者的关系_仓鼠的藏宝库
OpenGL ES可以说是OpenGL为了满足嵌入式设备需求而开发一个特殊版本,是其一个子集;而WebGL,是为了网页渲染效果,将JavaScript和OpenGL ES 2.0结合 ...
- 2WebGL 和OpenGL ES 有什么区别? - 知乎
其实我对OpenGL ES没有接触。所以只能粗浅作答。 OpenGL ES最初是作为OpenGL的一个subset支持移动设备和嵌入式设备开发。就我猜想,可能最初两者的兼容性和可移植性是 ...
- 3Day 9 : WebGL初探 - iT 邦幫忙
WebGL又是基於OpenGL ES而發展的函式庫,所以可以說只要是OpenGL 2.0版本運行ok的程式碼,應該就 ... WebGL 是JavaScript API, 內容都寫在HTML5 ...
- 4WebGL - 維基百科,自由的百科全書
WebGL程式由JavaScript編寫的控制代碼和OpenGL Shading Language(GLSL)編寫的著色器代碼組成,該語言類似於C或C++,並在電腦的圖形處理器(GPU)上執行。...
- 5WebGL Overview - The Khronos Group Inc
WebGL is a cross-platform, royalty-free web standard for a low-level 3D graphics API based on Ope...