Re: Question regarding OpenGL implementation in TORCS
David Savinkoff <[email protected]> Wed, 26 Apr 2017 23:52:19 -0600 (MDT)
| Newsgroups | gmane.games.torcs.general |
|---|---|
| Message-ID | <[email protected]> |
----- Konstantin Ritt wrote: > Hello, > > I just starting using TORCS for my masters thesis. I am currently trying to > gain some knowledge about usage of OpenGL and was wondering if you could > give a quick shout on where and how the OpenGL pipeline is handled in TORCS? I don't know, but see below. > What I am trying to do is to create another buffer to write frames to, as a > texture, before they are displayed on the screen. With these textures I > want to perform postprocessing purely by using shaders to keep all memory > and computation on the GPU in order to reduce impact on the runtime of the > simulation. > I would highly appreciate it if you could give me some short advice to save > me time sorting through the immense framework of TORCS. Thanks a lot in > advance! > > Kind regards, > Konstantin Hi, I found that the following files have 99.99% of torcs gl code in them: torcs/src/libs/tgfclient/gui.cpp torcs/src/libs/tgfclient/img.cpp torcs/src/libs/tgfclient/screen.cpp torcs/src/libs/tgfclient/guibutton.cpp torcs/src/libs/tgfclient/guiedit.cpp torcs/src/libs/tgfclient/guifont.cpp torcs/src/libs/tgfclient/glfeatures.cpp torcs/src/libs/tgfclient/guiscrollist.cpp torcs/src/libs/confscreens/mouseconfig.cpp torcs/src/libs/confscreens/joystickconfig.cpp torcs/src/libs/confscreens/controlconfig.cpp torcs/src/libs/raceengineclient/raceengine.cpp torcs/src/libs/raceengineclient/racegl.cpp torcs/src/libs/client/splash.cpp torcs/src/libs/musicplayer/musicplayer.cpp ( find . -type f -print0 | xargs -0 grep -Iw gl.* ) ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot