I'm going to work on a project to create a virtual museum and render
images from many points within it with a spherical camera to view on the
inside surface of a sphere in an OpenGL program.
Would it be effective to have macros to create scene files with their
contents depending on the location of the camera rather than having
scene files that each contain an entire floor of the museum?
I'm thinking of making data files with information about rooms that
macros could read. Then the code that the macros write would depend on
the given location of the spherical camera. That way, only the rooms and
objects that are visible from the current location are parsed and
rendered. What those macros would do is to use the data files to
determine what room the camera would be in and check for things like
doorways and windows other rooms could be visible through. Then a scene
file that includes the include files for those rooms would be written.
Had anyone done something like this before?
Brendan
Post a reply to this message
|