[osg-users] A couple of questions
Greetings, I got a couple of (hopefully trivial) questions. I work with my own viewer class which is derived from osgViewer::Viewer. I use OSG 2.6.1. 1) When I start rendering, the camera is always initially placed at some default position and direction, which apparently displays at the center the largest visible object. Is there a way to set the camera as I wish? 2) I add lights to the scene and disable the default OSG light, but still get the default lighting and my lights don't have an effect. Is there something trivial that I miss? 3) How can I make some objects invisible entirely for some period of time? I use update callbacks. 4) Can I use update callback for Root node? 5) Can I determine which object is effectively clicked? Or in other words, which object is the nearest to the camera at mouse pointer's coordinates, if any? Thanks, Daniel ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Minimal OSG installation
Greetings, excuse me if this is too trivial a question, but what is the minimal OSG installation? I need to distribute my OSG-based viewer for Windows; what libraries should I include? Are there any configuration steps needed to be taken? I tried to simply package the executable and DLLs used, and when I started program it said something like "Configuration is incorrect, please re-install". I guess that minimal distro for "osgviewerd.exe" is the same. Thanks, Daniel ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] floor looks dark
Hi, thanks for the answer. I tried to disable backface culling, and the only visible effect that I got was that rendering became some 2-3 times faster (which is good by itself). However, the "floor effect" remains. It looks like it is shaded somehow strangely, using clear color. On Wed, Feb 18, 2009 at 10:39 PM, Jason Daly wrote: > Daniel Drubin wrote: >>> >>> thanks for response, but it doesn't help :-( >>> Another thing that I notice, the floor not only gets darkened, it also >>> receives coloring from "clear color", if that makes sense. >>> Does anybody have an idea? >>> > > If that's true, it sounds like you're not seeing the floor at all. That is, > you're seeing the back of the floor, which is getting culled by backface > culling. A quick way to check for this is to disable backface culling on > your scene (look at osg/CullFace). > > --"J" > > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] floor looks dark
Hi, I tried to posted to list, but the files are too big to make it through. So I put them on my website: http://stargazer.110mb.com/carstore.3DS http://stargazer.110mb.com/carstore.zip ZIP file contains "carstore.ive". Thanks for any help, Daniel On Mon, Feb 16, 2009 at 10:05 PM, Brian R Hill wrote: > If you can post the model I can try looking at it. > > Brian > > This is a PRIVATE message. If you are not the intended recipient, please > delete without copying and kindly advise us by e-mail of the mistake in > delivery. > NOTE: Regardless of content, this e-mail shall not operate to bind CSC to > any order or other contract unless pursuant to explicit written agreement > or government initiative expressly permitting the use of e-mail for such > purpose. • > > > -osg-users-boun...@lists.openscenegraph.org wrote: - > > > To: OpenSceneGraph Users > From: Daniel Drubin > Sent by: osg-users-boun...@lists.openscenegraph.org > Date: 02/16/2009 01:28PM > Subject: Re: [osg-users] floor looks dark > > Hi, > > thanks for response, but it doesn't help :-( > Another thing that I notice, the floor not only gets darkened, it also > receives coloring from "clear color", if that makes sense. > Does anybody have an idea? > > Thanks, > Daniel > > On Sun, Feb 15, 2009 at 6:56 PM, Brian ... wrote: >> It probably needs surface normals. >> >> Try running the model through osg convert and have it add normals. >> osgconv --smooth >> >> Brian >>> Date: Sun, 15 Feb 2009 15:12:59 +0200 >>> From: stargazer3...@gmail.com >>> To: osg-users@lists.openscenegraph.org >>> Subject: [osg-users] floor looks dark >>> >>> Greetings, >>> >>> I am trying to make a visualization of a building in 3DS, and it looks >>> like the floor always looks dark, even if material/texture is light. I >>> tried even to make the "floor" plain white, and it appeared quite dark >>> gray. If I rotate, it always appears that darkened are surfaces that >>> happen to be "down" related to the camera. >>> >>> Does anybody knows what to do about this "darkening" effect? Is it >>> something that I can control? >>> >>> Thanks, >>> D >>> ___ >>> osg-users mailing list >>> osg-users@lists.openscenegraph.org >>> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> >> See how Windows Mobile brings your life together—at home, work, or on the >> go. See Now >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >> >> > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] floor looks dark
Hi, thanks for response, but it doesn't help :-( Another thing that I notice, the floor not only gets darkened, it also receives coloring from "clear color", if that makes sense. Does anybody have an idea? Thanks, Daniel On Sun, Feb 15, 2009 at 6:56 PM, Brian ... wrote: > It probably needs surface normals. > > Try running the model through osg convert and have it add normals. > osgconv --smooth > > Brian >> Date: Sun, 15 Feb 2009 15:12:59 +0200 >> From: stargazer3...@gmail.com >> To: osg-users@lists.openscenegraph.org >> Subject: [osg-users] floor looks dark >> >> Greetings, >> >> I am trying to make a visualization of a building in 3DS, and it looks >> like the floor always looks dark, even if material/texture is light. I >> tried even to make the "floor" plain white, and it appeared quite dark >> gray. If I rotate, it always appears that darkened are surfaces that >> happen to be "down" related to the camera. >> >> Does anybody knows what to do about this "darkening" effect? Is it >> something that I can control? >> >> Thanks, >> D >> ___ >> osg-users mailing list >> osg-users@lists.openscenegraph.org >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > > See how Windows Mobile brings your life together—at home, work, or on the > go. See Now > ___ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] floor looks dark
Greetings, I am trying to make a visualization of a building in 3DS, and it looks like the floor always looks dark, even if material/texture is light. I tried even to make the "floor" plain white, and it appeared quite dark gray. If I rotate, it always appears that darkened are surfaces that happen to be "down" related to the camera. Does anybody knows what to do about this "darkening" effect? Is it something that I can control? Thanks, D ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org