OpenGL on Buster on both Pi 3 and Pi 4
文章推薦指數: 80 %
My Raspberry Pi 4 just arrived and I got to try out the new ... I had to install libgles2-mesa-dev and after a bit of effort managed to get ... ForumFAQ About Aboutus Contactus Documentation Trademarkrules Login Register Unansweredtopics Activetopics ForumFAQ About Aboutus Contactus Documentation Trademarkrules Boardindex Programming Graphicsprogramming OpenGLES OpenGLonBusteronbothPi3andPi4 Locked Printview 73posts 123 johannesl Posts:17 Joined:ThuMay23,20138:38pm OpenGLonBusteronbothPi3andPi4 ThuJun27,201910:59pm MyRaspberryPi4justarrivedandIgottotryoutthenewRaspbianBusterbothonthePi4andthePi3. Goodnews:theusualOpenGLESthingsfoundin/opt/vc/srcstillworksgreatout-of-the-boxwithRaspbianBusteronthePi3(thusprobablyallearlierdevicesaswell).ThismeansyouarenotforcedtouseX11andthenewv3ddriveronyourexistingdevicesandthatyoucanstilldoOpenGLESonthezerowithoutX11usingupallmemory. Pi4:TryingtoruntheOpenGLESexamplesfrom/opt/vc/srcfails.ThisisduetothePi4missingthepreviousvc4driversotodoanyOpenGLatallonthePi4youneedtousethenewv3dmesadriver(whichisactivatedbydefaultonthePi4)andrunyourthingsinX11.InitialtestswithopenarenaonthePi4givesweakperformancecomparedtohowQuake3runsonthePi3andIhaveyettofindanygoodbest-practices/runnabledemosthatrunsgreat(butmaybeIhavn'tdugdeepenoughintotheseforumsyet?). MyadviceforanyonelookingtodoOpenGLESprogrammingonthePiistouseyourexistingPi2orPi3andtoyaroundwiththosehello_piexamplesthatcanbefoundin/opt/vc/src.Alsohavealookattheexcellentworkthatpaddyghasbeendoinghereintheforum.There'salsoaQuake1portthatrunsgreatifyouwanttodivedeepintocode.Hopefullyin6-12monthsthingshavematuredabitandmoreexamplesareavailable,ideallyexamplesthatarebuildableforboththebattletestedlegacyvc4driverandthenewv3ddriverwhichisrequiredonthePi4. Forsomeinspirationastowhatyoucanbuild,havealookatthisexamplerunningonaRaspberryPi2: https://www.youtube.com/watch?v=vgoi1n-x6ms leilei Posts:54 Joined:WedJun26,20192:26am Re:OpenGLonBusteronbothPi3andPi4 FriJun28,201912:40am OpenArena'sassetsusewaymoretextureswitchingthanQuake3andthere'salotofflareswhichmeanalotofdepthreadingperframe(whichisworseinhighresolutions).There'salsothepurelysoftware-driven"shader"systemthatwouldnotbetrivialtorewriteforashader-drivenpipelinewithoutbreakingcompatibilitywithexistingassetsinvariousways.Initscurrentlyreleasedstate,i'dhighlyadviseagainstbenchmarkingwithit. There'snoGLESbackendinOAproperinanyofthereleases,butthereisabrokenoneinourofficialenginerepository,whichdoesnothaveanyoptimalrenderingpathsandisbackportedfrompelya'sAndroidversionandIdon'tknowhowfarthatcanbeadaptedtobecominganEGLbackendforthePi-andeventhen,it'llprobablystillbeslowforthelackofmultitexturingandtheassetsbeingamesswithoutanyforesightaboutembeddedGPUs,andofficiallythere'snographicsprogrammingmanpowertobringittomydesires(GL1.x/SDL1.2base,withadditionalbackends).It'sjustonlymeaddingfeaturestotheGL1.x/GL2hybridrendererinthecode/renderer_oa/directoryforthefuturecontentrebootthatusesthem(particles,atlases/texturepages,eyes). Gavinmc42 Posts:6613 Joined:WedAug28,20133:31am Re:OpenGLonBusteronbothPi3andPi4 FriJun28,20191:26am IuseGentoo64on3B+formyOpenGLtesting. RaspbianisbasedonDebianandplaysitsafe. ThisnewBusterseemsbetterbutisnotasfastasGentoo64unlessIdidsomethingwrong? Mybenchmarktestsarethemesademoexamples. Notonlyaretheysinglefilebasedtheyarereadable,whichhelpsasIamonthesteeppartofthelearningcurve GoingtobeinterestingnowthatwehaveOpenGLES3.2toplaywithaswellintheVC6. I'mdancingonRainbows. RaspberriesarenotApplesorOranges BrianBeuken Posts:467 Joined:FriJan29,201612:51pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20196:57am NotsurethatthePi4doesactuallyhavev3dmesadriverinplace?Ihadtoinstalllibgles2-mesa-devandafterabitofeffortmanagedtogetthePitoworklikeanyotherstockLinuxSBC,buttheframeratewasappalling.I'mguessingthatthereisnoactualhardwareGPUdriveravailable? Veryoldcomputergameprogrammer,nowteachingveryyoungcomputergameprogrammers,someverybadhabits. http://www.scratchpadgames.net/ https://www.patreon.com/BrianBeuken 6by9 RaspberryPiEngineer&ForumModerator Posts:12810 Joined:WedDec04,201311:27am Location:ZZ9PluralZAlpha,akajustoutsideCambridge. Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20197:24am BrianBeukenwrote:↑MonJul01,20196:57am NotsurethatthePi4doesactuallyhavev3dmesadriverinplace?Ihadtoinstalllibgles2-mesa-devandafterabitofeffortmanagedtogetthePitoworklikeanyotherstockLinuxSBC,buttheframeratewasappalling.I'mguessingthatthereisnoactualhardwareGPUdriveravailable? Ihavenoideawhatyouhavedone,buttheremostcertainlyisfullsupportfortheV3Dgpu.https://gitlab.freedesktop.org/mesa/mes...ys/v3d/drmandthevariousotherV3Dbitswithinthatmesarepo. SoftwareEngineeratRaspberryPiTrading.Viewsexpressedarestillpersonalviews. I'mnotinterestedindoingcontractsforbespokefunctionality-pleasedon'task. BrianBeuken Posts:467 Joined:FriJan29,201612:51pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20197:34am ok,wellperhapswehaveapro]blemofmynotunderstandingtheprocess,whichismorethanlikelyasIdislikeallformsoflinuxintenselyhadhaveverylimitedworkingknowledgeofit...Ihavenotpulledanythingfromgithub,only apt-getinstalllibgles2-mesa-dev apt-getinstallxorg-dev Ifthereissomeotherprocessneededtogetdriversinplace,canyouprovideadetailedexplainationforanoutoftheboxPi4? Veryoldcomputergameprogrammer,nowteachingveryyoungcomputergameprogrammers,someverybadhabits. http://www.scratchpadgames.net/ https://www.patreon.com/BrianBeuken DeluxePixel Posts:3 Joined:MonJul01,20198:12am Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20198:18am 6by9wrote:↑MonJul01,20197:24am Ihavenoideawhatyouhavedone,buttheremostcertainlyisfullsupportfortheV3Dgpu.https://gitlab.freedesktop.org/mesa/mes...ys/v3d/drmandthevariousotherV3Dbitswithinthatmesarepo. I'mwonderingifthereisfullsupportfortheV3Dgpuintherpi4thenwhydoallthepreviousdemosusingthevc4driverfail.Tobespecific,willtherebeawayofusingthenewhardwarewithouthavingtouseX11?Ordoesitworkbutwethereisaslightlydifferentwayofinitialisingthings? Gavinmc42 Posts:6613 Joined:WedAug28,20133:31am Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20198:25am Installthemesa-utilsthenglxinfowilltellyouwhatyouhave. Igetglxgears60fpsonBusteronaPi4. IwouldhaveexpectedthesetobeonBusterasstandard,perhapsnextversion? BeenplayingOpenGLgamesfor3daysnow StillsometweakingbutmuchbetterthanoldRaspbianandPi3B+. Onlymy3B+'sIrunGentoo64andOpenGLisprettygood. I'mdancingonRainbows. RaspberriesarenotApplesorOranges jamesh RaspberryPiEngineer&ForumModerator Posts:30946 Joined:SatJul30,20117:41pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20198:30am DeluxePixelwrote:↑MonJul01,20198:18am 6by9wrote:↑MonJul01,20197:24am Ihavenoideawhatyouhavedone,buttheremostcertainlyisfullsupportfortheV3Dgpu.https://gitlab.freedesktop.org/mesa/mes...ys/v3d/drmandthevariousotherV3Dbitswithinthatmesarepo. I'mwonderingifthereisfullsupportfortheV3Dgpuintherpi4thenwhydoallthepreviousdemosusingthevc4driverfail.Tobespecific,willtherebeawayofusingthenewhardwarewithouthavingtouseX11?Ordoesitworkbutwethereisaslightlydifferentwayofinitialisingthings? ThereisacompletelynewMesa/DRMdriverthatusestheVC6(note,6)onthePi4.AIUI,thisisOpenGLcompliant,sotheOpenGLES(withsomePiVC4specificstuff)compliantdemoappswon'tworkinallcases,theyneedtobemodifiedtoinitialisethedisplayinthecorrectway. I'mnoexpertonwhatisrequired,(e.g.initialisation,X11)butwilltryandfindout. PrincipalSoftwareEngineeratRaspberryPiLtd. WorkingintheApplicationsTeam. BrianBeuken Posts:467 Joined:FriJan29,201612:51pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20198:42am jameshwrote:↑MonJul01,20198:30am DeluxePixelwrote:↑MonJul01,20198:18am 6by9wrote:↑MonJul01,20197:24am Ihavenoideawhatyouhavedone,buttheremostcertainlyisfullsupportfortheV3Dgpu.https://gitlab.freedesktop.org/mesa/mes...ys/v3d/drmandthevariousotherV3Dbitswithinthatmesarepo. I'mwonderingifthereisfullsupportfortheV3Dgpuintherpi4thenwhydoallthepreviousdemosusingthevc4driverfail.Tobespecific,willtherebeawayofusingthenewhardwarewithouthavingtouseX11?Ordoesitworkbutwethereisaslightlydifferentwayofinitialisingthings? ThereisacompletelynewMesa/DRMdriverthatusestheVC6(note,6)onthePi4.AIUI,thisisOpenGLcompliant,sotheOpenGLES(withsomePiVC4specificstuff)compliantdemoappswon'tworkinallcases,theyneedtobemodifiedtoinitialisethedisplayinthecorrectway. I'mnoexpertonwhatisrequired,(e.g.initialisation,X11)butwilltryandfindout. HiJames, IknowhowtogetanX11systemsetupandrunningusingmesalibs,andthatforthemomentappearstobewhatIhavebutitshowsnohardwareacceleration,onlymesaemulationasaresultitsrunningpainfullyslowandoverheatingtheCPUasitstressesout. okI'mreallystrugglingforclairityhere,areyoutellingme,wehavenoOpenGLES2.0butwedohaveOpenGL?(theexactversionisunclear) DoIgetthesenewMesadriverswithapt-getinstallgles2-mesa-dev? Isthatapt-getgoingtoprovideOpenGLES2.0acceleration? WillaprojectwrittenforGLES2.0onaPi3compileandrun,onaPi4ieisitbackwardcompatable? DoIneedtosetsomethingupinraspi-config? WhyisthePi4,notabletobuildOpenGLES2.0and3.0projectsoutofthebox? Veryoldcomputergameprogrammer,nowteachingveryyoungcomputergameprogrammers,someverybadhabits. http://www.scratchpadgames.net/ https://www.patreon.com/BrianBeuken jamesh RaspberryPiEngineer&ForumModerator Posts:30946 Joined:SatJul30,20117:41pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20198:51am BrianBeukenwrote:↑MonJul01,20198:42am jameshwrote:↑MonJul01,20198:30am DeluxePixelwrote:↑MonJul01,20198:18am I'mwonderingifthereisfullsupportfortheV3Dgpuintherpi4thenwhydoallthepreviousdemosusingthevc4driverfail.Tobespecific,willtherebeawayofusingthenewhardwarewithouthavingtouseX11?Ordoesitworkbutwethereisaslightlydifferentwayofinitialisingthings? ThereisacompletelynewMesa/DRMdriverthatusestheVC6(note,6)onthePi4.AIUI,thisisOpenGLcompliant,sotheOpenGLES(withsomePiVC4specificstuff)compliantdemoappswon'tworkinallcases,theyneedtobemodifiedtoinitialisethedisplayinthecorrectway. I'mnoexpertonwhatisrequired,(e.g.initialisation,X11)butwilltryandfindout. HiJames, IknowhowtogetanX11systemsetupandrunningusingmesalibs,andthatforthemomentappearstobewhatIhavebutitshowsnohardwareacceleration,onlymesaemulationasaresultitsrunningpainfullyslowandoverheatingtheCPUasitstressesout. okI'mreallystrugglingforclairityhere,areyoutellingme,wehavenoOpenGLES2.0butwedohaveOpenGL?(theexactversionisunclear) DoIgetthesenewMesadriverswithapt-getinstallgles2-mesa-dev? Isthatapt-getgoingtoprovideOpenGLES2.0acceleration? WillaprojectwrittenforGLES2.0onaPi3compileandrun,onaPi4ieisitbackwardcompatable? DoIneedtosetsomethingupinraspi-config? WhyisthePi4,notabletobuildOpenGLES2.0and3.0projectsoutofthebox? Everythingisinstalledbydefault,theMesadriversarerunningbydefault.AFAIK,youjustrecompileyourOpenGLappanditworks.Youshouldnotneedtoinstallanything,andifyouhave,youhaveprobablybrokenthesystemandneedtostartagainfromscratch. OpenGLmaxcompatprofilev2.1. OpenGLES1profile1.1 OpenGLES23profile3.0 (glxinfoprovidesthesenumbers,installedaspartofmesa-utils) PrincipalSoftwareEngineeratRaspberryPiLtd. WorkingintheApplicationsTeam. PeterO Posts:6095 Joined:SunJul22,20124:14pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20198:54am jameshwrote:↑MonJul01,20198:51am Everythingisinstalledbydefault, Notquite...Youstillneedtomanuallyinstallthemesadevelopmentpackage. PeterO DiscovererofthePI2XENONDEATHFLASH! Interests:C,Python,PIC,Electronics,HamRadio(G0DZB),1960sBritishComputers. "Theprimaryrequirement(aswe'vealwaysseeninyourexamples)isthatthecodeisreadable."DougieLawson jamesh RaspberryPiEngineer&ForumModerator Posts:30946 Joined:SatJul30,20117:41pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20199:12am PeterOwrote:↑MonJul01,20198:54am jameshwrote:↑MonJul01,20198:51am Everythingisinstalledbydefault, Notquite...Youstillneedtomanuallyinstallthemesadevelopmentpackage. PeterO Ah,fairpoint.Iwasthinkingmoreon'gettingmesaandthedesktoprunning'ratherthancompiling.Whatthespecificlibraryyouneedtoinstalltocompile? PrincipalSoftwareEngineeratRaspberryPiLtd. WorkingintheApplicationsTeam. BrianBeuken Posts:467 Joined:FriJan29,201612:51pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20199:25am jameshwrote:↑MonJul01,20198:51am Everythingisinstalledbydefault,theMesadriversarerunningbydefault.AFAIK,youjustrecompileyourOpenGLappanditworks.Youshouldnotneedtoinstallanything,andifyouhave,youhaveprobablybrokenthesystemandneedtostartagainfromscratch. OpenGLmaxcompatprofilev2.1. OpenGLES1profile1.1 OpenGLES23profile3.0 (glxinfoprovidesthesenumbers,installedaspartofmesa-utils) hmmmno,thatsnotmyexperienceatallandagainclarityisnothere..OpenGLorOpenGLES?I'veneverwrittenanythingonOpenGLonthePi,alwaysGLES2.0andwouldliketocontinueandexpandtoOpenGLES3.0.Icantcurrentlydothatoutofthebox. IamhappytomaketheswitchtoX11butifican'tgetthetheEGLtovalidate,Ican'tgetacceleration.Thismaybeduetoanaccessissue,iwilltryagaintonightonalocalexecutetoseeifthatisanissue. Overall,i'mawarethisisanewsystemwitharedesignedgraphicssystemwhichhasamazingpotential,butatthemoment,itsjustconfusingandthere'salotofcontradicoryinfoontheforums.Gettingthehellotriangledemosworkingisonething,gettingalargeprojectthatreliesonaccelerationisquiteanotherandIfeelI'minthedarkhere. Veryoldcomputergameprogrammer,nowteachingveryyoungcomputergameprogrammers,someverybadhabits. http://www.scratchpadgames.net/ https://www.patreon.com/BrianBeuken jamesh RaspberryPiEngineer&ForumModerator Posts:30946 Joined:SatJul30,20117:41pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20199:44am BrianBeukenwrote:↑MonJul01,20199:25am jameshwrote:↑MonJul01,20198:51am Everythingisinstalledbydefault,theMesadriversarerunningbydefault.AFAIK,youjustrecompileyourOpenGLappanditworks.Youshouldnotneedtoinstallanything,andifyouhave,youhaveprobablybrokenthesystemandneedtostartagainfromscratch. OpenGLmaxcompatprofilev2.1. OpenGLES1profile1.1 OpenGLES23profile3.0 (glxinfoprovidesthesenumbers,installedaspartofmesa-utils) hmmmno,thatsnotmyexperienceatallandagainclarityisnothere..OpenGLorOpenGLES?I'veneverwrittenanythingonOpenGLonthePi,alwaysGLES2.0andwouldliketocontinueandexpandtoOpenGLES3.0.Icantcurrentlydothatoutofthebox. IamhappytomaketheswitchtoX11butifican'tgetthetheEGLtovalidate,Ican'tgetacceleration.Thismaybeduetoanaccessissue,iwilltryagaintonightonalocalexecutetoseeifthatisanissue. Overall,i'mawarethisisanewsystemwitharedesignedgraphicssystemwhichhasamazingpotential,butatthemoment,itsjustconfusingandthere'salotofcontradicoryinfoontheforums.Gettingthehellotriangledemosworkingisonething,gettingalargeprojectthatreliesonaccelerationisquiteanotherandIfeelI'minthedarkhere. ThosearetheversionofthedifferentAPI'sthataresupported,sobothOpenGL2.1andOpenGLES3.0aresupportedonPi4.Youshouldbeabletodothat'outofthebox',withtheprovisoyouneedtoinstallthedevpackagesmentionedabove. Youwillneedtomakechangestothesurface,IbelieveyounolongeruseEGL,butDRMtoprovidearenderingsurface.Willcheckonthat.DRMisnowthestandardLinuxmechanisminthisarea. PrincipalSoftwareEngineeratRaspberryPiLtd. WorkingintheApplicationsTeam. BrianBeuken Posts:467 Joined:FriJan29,201612:51pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20199:55am jameshwrote:↑MonJul01,20199:44am ThosearetheversionofthedifferentAPI'sthataresupported,sobothOpenGL2.1andOpenGLES3.0aresupportedonPi4.Youshouldbeabletodothat'outofthebox',withtheprovisoyouneedtoinstallthedevpackagesmentionedabove. Youwillneedtomakechangestothesurface,IbelieveyounolongeruseEGL,butDRMtoprovidearenderingsurface.Willcheckonthat.DRMisnowthestandardLinuxmechanisminthisarea. Wellagainno,there'snoOpenGLES3.0libsontheBustercleaninstall(thoughImightneedtodoublecheck) Iwillburnafreshimageandtryagain,butIdidthatalreadywithmy1stattempt.ItsquitetroublingthatPi3projectscannotbebuilttorunasis... however,amsurethingswillimprove,andsomeonewillprovidethekindofidiotsguideIneed. Veryoldcomputergameprogrammer,nowteachingveryyoungcomputergameprogrammers,someverybadhabits. http://www.scratchpadgames.net/ https://www.patreon.com/BrianBeuken PeterO Posts:6095 Joined:SunJul22,20124:14pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,20199:59am BrianBeukenwrote:↑MonJul01,20199:25am jameshwrote:↑MonJul01,20198:51am Everythingisinstalledbydefault,theMesadriversarerunningbydefault.AFAIK,youjustrecompileyourOpenGLappanditworks.Youshouldnotneedtoinstallanything,andifyouhave,youhaveprobablybrokenthesystemandneedtostartagainfromscratch. OpenGLmaxcompatprofilev2.1. OpenGLES1profile1.1 OpenGLES23profile3.0 (glxinfoprovidesthesenumbers,installedaspartofmesa-utils) hmmmno,thatsnotmyexperienceatallandagainclarityisnothere..OpenGLorOpenGLES?I'veneverwrittenanythingonOpenGLonthePi,alwaysGLES2.0andwouldliketocontinueandexpandtoOpenGLES3.0.Icantcurrentlydothatoutofthebox. IamhappytomaketheswitchtoX11butifican'tgetthetheEGLtovalidate,Ican'tgetacceleration.Thismaybeduetoanaccessissue,iwilltryagaintonightonalocalexecutetoseeifthatisanissue. Overall,i'mawarethisisanewsystemwitharedesignedgraphicssystemwhichhasamazingpotential,butatthemoment,itsjustconfusingandthere'salotofcontradicoryinfoontheforums.Gettingthehellotriangledemosworkingisonething,gettingalargeprojectthatreliesonaccelerationisquiteanotherandIfeelI'minthedarkhere. Brian, Untilyou'vetriedtobuildyourcodelocallyonthePIandnotusingtheremoteVisualStudiotooltorunitIthinkallbetareoffastowhatiscausingyourproblems. PeterO DiscovererofthePI2XENONDEATHFLASH! Interests:C,Python,PIC,Electronics,HamRadio(G0DZB),1960sBritishComputers. "Theprimaryrequirement(aswe'vealwaysseeninyourexamples)isthatthecodeisreadable."DougieLawson jamesh RaspberryPiEngineer&ForumModerator Posts:30946 Joined:SatJul30,20117:41pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:03am BrianBeukenwrote:↑MonJul01,20199:55am jameshwrote:↑MonJul01,20199:44am ThosearetheversionofthedifferentAPI'sthataresupported,sobothOpenGL2.1andOpenGLES3.0aresupportedonPi4.Youshouldbeabletodothat'outofthebox',withtheprovisoyouneedtoinstallthedevpackagesmentionedabove. Youwillneedtomakechangestothesurface,IbelieveyounolongeruseEGL,butDRMtoprovidearenderingsurface.Willcheckonthat.DRMisnowthestandardLinuxmechanisminthisarea. Wellagainno,there'snoOpenGLES3.0libsontheBustercleaninstall(thoughImightneedtodoublecheck) Iwillburnafreshimageandtryagain,butIdidthatalreadywithmy1stattempt.ItsquitetroublingthatPi3projectscannotbebuilttorunasis... however,amsurethingswillimprove,andsomeonewillprovidethekindofidiotsguideIneed. There'sadifferencebetweenhavingthedriversinstalledsothatappswillrunoutofthebox(thisisthecase),andhavingthedevelopmentlibrariesinstalledsoyoucanbuildyouownapplications(youneedtoinstallthose).Isthatwheretheconfusionis?NotwithstandingPeterO'scommentabovewhichcouldalsobeabigissue. PrincipalSoftwareEngineeratRaspberryPiLtd. WorkingintheApplicationsTeam. dividuum Posts:233 Joined:SunJun16,20131:18pm Location:Germany Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:04am IsthereanygooddocumentationonDRMandalltheotherAPIsthatareusednow?https://01.org/linuxgraphics/gfx-docs/d...index.htmlseemstodocumentthedriversidepointofview.Eventhemanpageslinktonon-existingdocumentationpages(forexampledrmModePageFlip).Onlysomewhatcompletedocumentationseemstobethisdoxygennvidiadocument.Orisreadingthroughhttps://gitlab.freedesktop.org/mesa/drmthesuggestedway? info-beamerhosted-AuserandprogrammerfriendlydigitalsignageplatformforthePi:https://info-beamer.com/hosted PeterO Posts:6095 Joined:SunJul22,20124:14pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:05am jameshwrote:↑MonJul01,20199:44am Youwillneedtomakechangestothesurface,IbelieveyounolongeruseEGL,butDRMtoprovidearenderingsurface.Willcheckonthat.DRMisnowthestandardLinuxmechanisminthisarea. Notquite,EGLisstillused,itsdispmanxthathasbeenreplacedbyX11asthelowerlayer. YouneedtobeabletoprovideandXwindowidtoeglCreateWindowSurfaceratherthanaEGL_DISPMANX_WINDOW_T PeterO DiscovererofthePI2XENONDEATHFLASH! Interests:C,Python,PIC,Electronics,HamRadio(G0DZB),1960sBritishComputers. "Theprimaryrequirement(aswe'vealwaysseeninyourexamples)isthatthecodeisreadable."DougieLawson dividuum Posts:233 Joined:SunJun16,20131:18pm Location:Germany Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:12am PeterOwrote:↑MonJul01,201910:05am Notquite,EGLisstillused,itsdispmanxthathasbeenreplacedbyX11asthelowerlayer. YouneedtobeabletoprovideandXwindowidtoeglCreateWindowSurfaceratherthanaEGL_DISPMANX_WINDOW_T Notnecessarily:YoucanalsouseDRM/GBM(?).Seethiscode(runwith./kmscube-D/dev/dri/card1)linkedpreviously.ItcallseglCreateWindowSurface(egl->display,egl->config,(EGLNativeWindowType)gbm->surface,NULL); Whenusedsimilarlytothatinmyexistingcode,Igetsomeoddscreenflickeringandpausesfromtimetotime.Notsurewhy.Ihaven'ttriedtheX11variantyet. info-beamerhosted-AuserandprogrammerfriendlydigitalsignageplatformforthePi:https://info-beamer.com/hosted DeluxePixel Posts:3 Joined:MonJul01,20198:12am Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:28am Moretothepoint,isitpossibleonthepi4touseanyformofacceleratedopenglwithoutusingX? Asimpleyesornofromsomeonewhoknowswouldbegreat. dividuum Posts:233 Joined:SunJun16,20131:18pm Location:Germany Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:31am DeluxePixelwrote:↑MonJul01,201910:28am Moretothepoint,isitpossibleonthepi4touseanyformofacceleratedopenglwithoutusingX? Asimpleyesornofromsomeonewhoknowswouldbegreat. Yes.Withthemechanismfrommypreviouspost.NoXrequired. info-beamerhosted-AuserandprogrammerfriendlydigitalsignageplatformforthePi:https://info-beamer.com/hosted PeterO Posts:6095 Joined:SunJul22,20124:14pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:35am dividuumwrote:↑MonJul01,201910:12am PeterOwrote:↑MonJul01,201910:05am Notquite,EGLisstillused,itsdispmanxthathasbeenreplacedbyX11asthelowerlayer. YouneedtobeabletoprovideandXwindowidtoeglCreateWindowSurfaceratherthanaEGL_DISPMANX_WINDOW_T Notnecessarily:YoucanalsouseDRM/GBM(?).Seethiscode(runwith./kmscube-D/dev/dri/card1)linkedpreviously.ItcallseglCreateWindowSurface(egl->display,egl->config,(EGLNativeWindowType)gbm->surface,NULL); Whenusedsimilarlytothatinmyexistingcode,Igetsomeoddscreenflickeringandpausesfromtimetotime.Notsurewhy.Ihaven'ttriedtheX11variantyet. OK,wellthentherearetwowaysButbothneedeglwhichJamessaidwasn'tneeded Ishallgivethegbmmethodatrywithmyexamples,thoughtobehonestmymaininterestwillbeusingitwithX11sothatIcanrunidenticalcodeonallmylinuxplatforms. PeterO DiscovererofthePI2XENONDEATHFLASH! Interests:C,Python,PIC,Electronics,HamRadio(G0DZB),1960sBritishComputers. "Theprimaryrequirement(aswe'vealwaysseeninyourexamples)isthatthecodeisreadable."DougieLawson BrianBeuken Posts:467 Joined:FriJan29,201612:51pm Re:OpenGLonBusteronbothPi3andPi4 MonJul01,201910:38am again.....hmmm lookthesimplefactis,thatI'veusedVisualGDBasadevelopmenttoolfor4yearsnow,itfullysupportsRaspi,andisastandardindustrybuildtoolforembededsystemsandSBC's.IfthereisanissuewithitonPi4,thenIthinkitwouldbewisetoidentifyandfixit,notabandonthetoolthatalotofpeopleareusing.(Ifyou'renotthatsfine....butyoushouldtryit,itswonderful) DoIuseX11,orDRM(andhowdoIuseDRM,thatsnewtome),doesEGLworkornot,aretheredriversforOpenGLES2.0ornot......thesequestionsneedtobeproperlyanswered,andaclearguideputonlineforpeoplelikemewhowantdocodeonthenativeOpenGLESsystemsthatGPUsupports. AndasforOpenGLES2.0/3.0/GL2.1,guys,doyourealisehowmuchcontradicotryadviceisflyingaroundhere..Ihavenorealideawhattodo,butwhatisclearisthatperfectlyfineOpenGLES2.0projectsnolongerworkonthePi4,withoutmajorrevisionandnewconfigurations,andthatreallyisn'tanidealsituation. I'mgoingtogotakeacoldshowerandhavealiedown,becuasethisisalllratherexhausing.I'vehadmydemoprojectsworkingonover50differentSBC'stodate,andtheRpis'werealwaystheeasiest,nowitsbecoeaminefieldthatnooneseemsabletocomprehend. excuseme,thekettle'sboilingnow,I'mgoingtohavesomecamomiletea. Veryoldcomputergameprogrammer,nowteachingveryyoungcomputergameprogrammers,someverybadhabits. http://www.scratchpadgames.net/ https://www.patreon.com/BrianBeuken Displaypostsfromprevious:Allposts1day7days2weeks1month3months6months1yearSortbyAuthorPosttimeSubjectAscendingDescending Locked Printview 73posts 123 Returnto“OpenGLES” Jumpto Community Generaldiscussion Announcements Otherlanguages Deutsch Español Français Italiano Nederlands 日本語 Polski Português Русский Türkçe Usergroupsandevents TheMagPi UsingtheRaspberryPi Beginners Troubleshooting Advancedusers Assistivetechnologyandaccessibility Education Picademy Teachingandlearningresources Staffroom,classroomandprojects AstroPi Mathematica HighAltitudeBalloon Weatherstation Programming C/C++ Java Python Scratch Otherprogramminglanguages Windows10forIoT WolframLanguage Baremetal,Assemblylanguage Graphicsprogramming OpenGLES OpenVG OpenMAX Generalprogrammingdiscussion Projects Networkingandservers Automation,sensingandrobotics Graphics,soundandmultimedia Otherprojects Gaming Mediacentres AIYProjects Hardwareandperipherals Cameraboard ComputeModule OfficialDisplay HATsandotheradd-ons DeviceTree Interfacing(DSI,CSI,I2C,etc.) RaspberryPi400 RaspberryPiPico General SDK MicroPython OtherRP2040boards Operatingsystemdistributions RaspberryPiOS RaspberryPiDesktopforPCandMac Other Android Debian FreeBSD Gentoo LinuxKernel NetBSD openSUSE Plan9 Puppy Arch Pidora/Fedora RISCOS Ubuntu YeOldePiShoppe Forsale Wanted Offtopic Offtopicdiscussion Boardindex AlltimesareUTC Deletecookies
延伸文章資訊
- 1OpenGL without X on Raspberry Pi 4 (Part 1) - An external ...
Introduction Many people wanting to use OpenGL on a Raspberry Pi will be happy to boot into the g...
- 2Raspberry Pi 4 is Now OpenGL ES 3.1 Conformant, Work on ...
Raspberry Pi 4 Model B 4 was launched last June with a new Broadcom BCM2711 SoC featuring an upgr...
- 3OpenGl 3.3 on Raspberry Pi 4 8gb
OpenGL is not just a software library, it's a software interface to hardware features of the grap...
- 4Raspberry pi openGL setup and Hello world program - YouTube
- 5OpenGL on Buster on both Pi 3 and Pi 4
My Raspberry Pi 4 just arrived and I got to try out the new ... I had to install libgles2-mesa-de...