OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

Terrains created appear iluminated when are displayed in RunTime at night (no lights)


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb]
View previous topic :: View next topic  
Author Message
Nico
Newbie


Joined: 16 Nov 2010
Posts: 2

PostPosted: Tue Nov 16, 2010 10:14 am    Post subject:
Terrains created appear iluminated when are displayed in RunTime at night (no lights)
Reply with quote

Hi,

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?
Thank you!

Cheers,
Nico
Back to top
View user's profile Send private message
zonk
Appreciator


Joined: 23 May 2009
Posts: 621

PostPosted: Tue Nov 16, 2010 11:30 am    Post subject:
Reply with quote

Hi, Nico,

I use VPB terrain in osgVisual in combination with the Silverlining Framework, and it works well! maybe an issue of your visualizing tool?



Cheers,
Torben
Back to top
View user's profile Send private message
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12216

PostPosted: Tue Nov 16, 2010 11:31 am    Post subject:
Terrains created appear iluminated when are displayed in RunTime at night (no lights)
Reply with quote

Hi Nico,

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.

Robert.

On Tue, Nov 16, 2010 at 10:14 AM, Nico Bocio
<> wrote:
Quote:
Hi,

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?
Thank you!

Cheers,
Nico

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33769#33769









------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> VirtualPlanetBuilder [vpb] All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing statesets at runtime digmike General 0 Fri Jan 04, 2019 7:21 pm View latest post
No new posts Osgdem created terrains not displayin... D.J. Caldwell General 3 Wed Oct 24, 2018 7:32 pm View latest post
No new posts Procedural terrains in oder to dig it. Paradox General 5 Thu Sep 06, 2018 10:09 am View latest post
No new posts OpenSceneGraph-3.6-TexStorage branch ... robertosfield General 2 Tue Aug 21, 2018 12:49 pm View latest post
No new posts Updating VBO's during runtime bcolbert General 4 Fri Jun 01, 2018 2:20 pm View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP