VirtualPlanetBuilder does nothing to control the lighting of the
databases that it generates, it simply provide textured geometry with
normals generated on them. It's entirely under your applications
control how the scenes at light.
My best guess is that your are confused about the role of OpenGL
lighting has on the scene. If you disable OpenGL lighting then OpenGL
will rendering the scene purely using the glColour of the geometry
(which will the deafult of be white for a VPB database) combined using
TexEnv with the texures applied to the tiles. If you enable OpenGL
lighting then the glLight settings set by the osg::Light will control
how the colour is computed - combining the tile colour with the GL
lighting, then combined with the texture.
For illuminated scenes that you have a night and day element one
usually keeps OpenGL lighting enabled for the whole scene and your
simply change the osg::Light settings to make the scene darker or
lighter, or simply have the light source direction/position pointing
from a position that gives a scene that is in shade i.e. pointing away
from the light source.
On Tue, Nov 16, 2010 at 10:14 AM, Nico Bocio
I have created some terrains using VirtualPlanetBuilder (plain terrain, geocentric...) and using a lot of options and when I load these terrains in a runtime visualizer and set the time at night, I can see the dark sky with the stars but the terrains appear illuminated.
I have loaded other terrains created with other programs in the runtime and they appears well at night, the terrain appears dark.
I have proved to pass some terrains created with virtualplanetBuilder to flt with the option lighting=ON with the program osgconv and the flt generated appears well at night.
I don´t know how could I solve this problem, What could I do?
Read this topic online here:
Post generated by Mail2Forum