Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
skybox management
12-03-2008, 11:27 AM,
#2
 
General info on what a skybox or skydome is:
http://en.wikipedia.org/wiki/Skybox_(video_games)

VDrift organizes all of the rendered geometry using a scenegraph:
http://en.wikipedia.org/wiki/Scenegraph

Each node in the scenegraph can have multiple DRAWABLE objects. Each DRAWABLE object represents a render-able piece of geometry. When a track is loaded the parameters of each drawable object are set up based on the track's objects/list.txt file. Here's a description of the list.txt file's format:
http://wiki.vdrift.net/Track_files_and_f...2Flist.txt

One of the parameters define whether or not the object is a skybox. When VDrift does the final rendering of the scenegraph, it draws skyboxes slightly differently than normal objects (no lighting, no depth buffer writing, and no camera translation). Search in graphics.cpp for skybox and you'll see exactly how it's used.
Reply


Messages In This Thread
skybox management - by ghiboz - 12-03-2008, 09:49 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-03-2008, 11:27 AM
[No subject] - by ghiboz - 12-03-2008, 11:54 AM
[No subject] - by alex25 - 12-03-2008, 01:01 PM
[No subject] - by ghiboz - 12-04-2008, 02:41 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-04-2008, 11:15 AM
[No subject] - by ghiboz - 12-05-2008, 05:44 AM
[No subject] - by joevenzon_phpbb2_import3 - 12-05-2008, 12:09 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)