3d - Will I have an easier time learning OpenGL in Pygame or ...
文章推薦指數: 80 %
If you just want to learn OpenGL, pyglet or PyOpenGL with the SuperBible will be fine. If you want to make games, you will quickly hit speed ... GameDevelopmentStackExchangeisaquestionandanswersiteforprofessionalandindependentgamedevelopers.Itonlytakesaminutetosignup. Signuptojointhiscommunity Anybodycanaskaquestion Anybodycananswer Thebestanswersarevotedupandrisetothetop Home Public Questions Tags Users Companies Unanswered Teams StackOverflowforTeams –Startcollaboratingandsharingorganizationalknowledge. CreateafreeTeam WhyTeams? Teams CreatefreeTeam Teams Q&Aforwork Connectandshareknowledgewithinasinglelocationthatisstructuredandeasytosearch. LearnmoreaboutTeams WillIhaveaneasiertimelearningOpenGLinPygameorPyglet?(NeHetutorialsdownloaded)[closed] AskQuestion Asked 11years,10monthsago Modified 7years,5monthsago Viewed 7ktimes 1 1 \$\begingroup\$ Closed.Thisquestionisopinion-based.Itisnotcurrentlyacceptinganswers. Wanttoimprovethisquestion?Updatethequestionsoitcanbeansweredwithfactsandcitationsbyeditingthispost. Closed7yearsago. Improvethisquestion I'mlookingbetweenPyGameandPyglet,PygletseemstobesomewhatnewerandmorePythony,butit'slastreleaseaccordingtoWikipediaisJanuary'10.PyGameseemstohavemoredocumentation,morerecentupdates,andmorepublishedbooks/tutorialsonthewebforlearning. IdownloadedboththePygletandPyGameversionsoftheNeHeOpenGLtutorials(Lessons1-10)whichcoverthismaterial: lesson01-Settingupthewindow lesson02-Polygons lesson03-Addingcolor lesson04-Rotation lesson05-3D lesson06-Textures lesson07-Filters,Lighting,input lesson08-Blending(transparency) lesson09-2DSpritesin3D lesson10-Movingina3Dworld Whatdoyouguysthink?IsmyhunchthatI'llbebetteroffworkingwithPyGamesomewhatwarranted? 3dopenglpythonpygamepyglet Share Improvethisquestion Follow askedNov26,2010at21:46 shadowprotocolshadowprotocol 66533goldbadges99silverbadges1919bronzebadges \$\endgroup\$ 1 1 \$\begingroup\$ Iwouldn'tgowithNeHesinceit'sbasedonanoldversionofOpenGL.ThebestadviceI'veseenonhowtogetintoOpenGLisfoundhere,anditrecommendsstartingwithopen.gl,whichisinC++butyoucanfindthePythonandPyglettranslationofitat:github.com/01AutoMonkey/open.gl-tutorials-to-pyglet \$\endgroup\$ – 01AutoMonkey Sep18,2014at16:35 Addacomment | 3Answers 3 Sortedby: Resettodefault Highestscore(default) Datemodified(newestfirst) Datecreated(oldestfirst) 8 \$\begingroup\$ Pygamedoesn'tevenhaveOpenGLbindings;you'dneedtousePyOpenGLwithit. IfyourgoalistolearnOpenGL,mysuggestionwouldbetousePyOpenGL,withPygame.TheAPIisclosertoactualOpenGL.(I'dalsorecommendnotusingNeHeandusingtheSuperBibleinstead.) Ifyourgoalistomakeaquickgame,I'drecommendpyglet.IthasalltheannoyingOpenGLhigher-levelwrapperstuffwritteninmorePython-friendlyways,e.g.batchforVBOs,groupsforrenderstatesorting. Ifyourgoalistomakeahigh-qualitygame,I'drecommendneither.PythonandOpenGLreallydon'tgotogetherunlessyouputlotsoflayersofCinthemiddle;ctypesistooslow,functioncallsaretooslow,neitherPygamenorpygletoffersverygoodinterfacesforaudio,andneitherlibraryisreallywell-maintained. Share Improvethisanswer Follow answeredNov26,2010at21:58 user744user744 \$\endgroup\$ 3 \$\begingroup\$ Idon'tlikeC++andabsolutelyhatePointers.IenjoyScriptinglanguageslikePythonandLua,becauseIknowthembothwell.Ifeellikeit'smyonlyoptionfromatechnicalabilitystandpoint.Tryingtoaddparagraphs,butENTERsubmitsmyedit:(Ihavedownloadedthe1-10NeHetutorialsforbothPygletandPyGame,andbothseemtobeclear(theysetupthewindownormallyandtheneachusesregularglWhateverfunctionstohandleOpenGl.Fromthere,IjustneedtoreadtheSuperBibletolearnOpenGL.Idon'tunderstandwhyyouthinkPythonisabadoptionforthis.Idon'twantC++ \$\endgroup\$ – shadowprotocol Nov26,2010at22:21 \$\begingroup\$ IfyoujustwanttolearnOpenGL,pygletorPyOpenGLwiththeSuperBiblewillbefine.Ifyouwanttomakegames,youwillquicklyhitspeedlimits;soonerifyoudon'tunderstandmemory(includingpointers);soonerifyouuseNeHeorotherfixed-functionapproaches.YouwillalsofindbugsinpygletandPygamethatyoucan'tworkaroundwithoutworkinginCoratleastbeingcomfortablewithit.Therealityis,ifitwasactuallyeasiertomakehigh-qualitygamesinPythonthanC(++),we'dallbeusingPythoninsteadofC(++).InsteadyouspendsomuchtimefightingPythonthatit'snot. \$\endgroup\$ – user744 Nov26,2010at22:32 \$\begingroup\$ IknowC++,IguessIwasjustlookingforshortcuts.I'vebeenplayingwithLuaandLove2Dwhichisawesome,justwishthebeautiesof3Dlightingwereavailableina2Dspritesetting;)Ihearyouthough,andwilldefinitelyconsiderC++,it'sjustbrutalafterplayingwithScriptinglanguages \$\endgroup\$ – shadowprotocol Nov26,2010at22:50 Addacomment | 2 \$\begingroup\$ IwouldrecommendPyGlet,ithasbothGLandGLUbuiltin,youcanalsousePyOpenGL(ifyou'rereadytotypeamillionOpenGLcalls)forthebestresult,downloaditatCheeseShop:http://pypi.python.org/pypi Share Improvethisanswer Follow answeredNov12,2012at15:00 VictorVictor 2111bronzebadge \$\endgroup\$ Addacomment | 0 \$\begingroup\$ Theactualproblemwithopenglordirectxisthatitrequiresyoutolearnhowtousematrices,whichareanothersubjectapartfromprogramming. FromwhatI'mreading,youdislikepointersanddon'twantC++,thenIrecommendyoutousePanda3D,whichhasbeenmadetobeusedwithPython. It'sinmyopinionthebestcomplete3dgameenginefornon-programmerswholiketodosomegameplayasfastaspossible. Learningopenglprimitivescanbequiteeasy,butlearninghowtomakesomethingwithitisawholeotherproblem.Programmingisonetopic,programminggraphicsinvolvetolearnhowtouseanotherkindofprocessorwithanothermemory,whichwillbehardertohandleifyoudon'tknowhowtousebasicalthingslikepointers. Don'tforgetthatpythonisaverygoodprogramminglanguagebecauseit'smoreonthesideoftheprogrammer,whichisnotthecaseofsystemlanguagelikeCorC++.Idon'teventhinkwecancallpythonaprogramminglanguage,sinceit'smoreascriptinglanguage:it'stoohighlevel. Share Improvethisanswer Follow editedNov27,2010at13:11 answeredNov27,2010at13:04 jokoonjokoon 5,21377goldbadges3737silverbadges5656bronzebadges \$\endgroup\$ 1 1 \$\begingroup\$ Iwouldn'tsayPythonisn'taprogramminglanguage.Contrarytopopularbelief,withtherightpractices,PythoncanbeFastEnough(tm)formost(ifnotall)projects. \$\endgroup\$ – ThaneBrimhall Oct7,2012at2:34 Addacomment | Nottheansweryou'relookingfor?Browseotherquestionstagged3dopenglpythonpygamepyglet. TheOverflowBlog IspenttwoyearstryingtodowhatBackstagedoesforfree Aserialentrepreneurfinallyembracesopensource(Ep.486) FeaturedonMeta PlannedmaintenancescheduledforWednesday,21September,00:30-03:00UTC... RecentColorContrastChangesandAccessibilityUpdates UpcomingEvents Showusyourin-developmentgame!-Gamdev'sSeptemberbash2022Showcase! September2022 HotNetworkQuestions ForwhatVulpes-->Vulpecula,butSorexneverwillbeSoreculus Howtochangerowwidth? Iamlookingforaword(anounpreferablybutanadjectivewouldsuffice)thatdenotesapersonthatknowinglyallowsanothertousethemregularly CalculatingPiusingtheGregoryLeibnizseriesuntilnterms Combiningalistwithacertainindexofalist Inaircraftreliabilitymonitoringanalysis,whythecalculationofdefectrateisper1000FH? Findingadualfeasiblebasisforusewiththedualsimplexalgorithm Joinobjectsthatsharelocation Rolejustbelowroot? Advantagesofalawlicenseotherthantheabilitytopracticelaw Whatexactlyismeantbyisotropicandanisotropicwithwordvectors IsEPSGdefinedseparatelyforeachgeometrycolumn? Notesnotaddinguptotimesignature,withweirdwhiteovalnote WhataresomegoodblogsforMathematicalStatisticsandMachineLearning? SelectiveCaesarCipher Ifhumanswerethesizeofantscouldwehavecampfires? CanmyUKcompanyordermetojoinasocialevent? Rectifierdiodespecsnotclear 110.15High-LegMarking Whydon'tcarshavecircuitbreakersinsteadoffuses? Howtopreventhumansfrombeingkilledbyaliendiseases? Sci-fihorrorshortstoryaboutalienthatwantstobeeaten Whenisastatisticnotastatistic? Whatdoesitmeanto"endupwithaDesmond"? morehotquestions lang-py Yourprivacy Byclicking“Acceptallcookies”,youagreeStackExchangecanstorecookiesonyourdeviceanddiscloseinformationinaccordancewithourCookiePolicy. Acceptallcookies Customizesettings
延伸文章資訊
- 1Dependencies: Pyglet vs PyOpenGL - Google Groups
We basically have two choices: Pyglet or PyOpenGL. The former being a bit basic, the latter being...
- 2I'd like to learn graphics programming. Should I go with pyglet ...
PyOpenGL is nothing but a wrapper for OpenGL itself - no sound, no window management, just 3D gra...
- 33d - Will I have an easier time learning OpenGL in Pygame or ...
If you just want to learn OpenGL, pyglet or PyOpenGL with the SuperBible will be fine. If you wan...
- 4Advanced OpenGL in Python with PyGame and PyOpenGL
PyOpenGL is a standardized bridge between OpenGL and Python. PyGame is a standardized library for...
- 5Differences Between Pyglet vs. Pygame in Python - Extern Labs
We will consider the framework that is available for making game applications i.e., pyglet and py...