Re: [osg-users] Ambient Issues

2012-06-07 Thread Kim Bale
Hi Jordan,

Have you tried running your model through osgconv to convert it to an .osg
file?

You should then be able to look at the structure of the model in a text
editor and rule out any issues with it.

osgwnames from osgWorks is also a great diagnostic tool for models.

Hope that helps.

Kim.

On 7 June 2012 04:34, Jordan Sparks supersparkpl...@gmail.com wrote:

 Hi,

 I work in a research lab that uses a CAVE. We were recently given a large
 3D model made in Google SketchUp to work with by a client. Unfortunately,
 we keep having issues when running it in the CAVE on OSG. The model seems
 to have it's ambient light amped up as it keeps glowing white and yet
 sometimes, if the camera is far enough, this light will fade (leading me to
 believe this might be a light attached to the camera. I'm not sure what it
 is, but the effect seems similar to when you ramp up the ambient light
 attribute of a model. I know not everyone works with CAVEs but does anyone
 think they know what the issue is?
 ...

 Thank you!

 Cheers,
 Jordan

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





 ___
 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] Ambient Issues

2012-06-07 Thread Jason Daly

On 06/06/2012 11:34 PM, Jordan Sparks wrote:

Hi,

I work in a research lab that uses a CAVE. We were recently given a large 3D 
model made in Google SketchUp to work with by a client. Unfortunately, we keep 
having issues when running it in the CAVE on OSG. The model seems to have it's 
ambient light amped up as it keeps glowing white and yet sometimes, if the 
camera is far enough, this light will fade (leading me to believe this might be 
a light attached to the camera. I'm not sure what it is, but the effect seems 
similar to when you ramp up the ambient light attribute of a model. I know not 
everyone works with CAVEs but does anyone think they know what the issue is?



It might be that your model's normals are getting scaled.  Try something 
like this:


osg::StateSet *ss = model-getOrCreateStateSet();
ss-setMode(GL_NORMALIZE, osg::StateAttribute::ON);


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Ambient Issues

2012-06-06 Thread Jordan Sparks
Hi,

I work in a research lab that uses a CAVE. We were recently given a large 3D 
model made in Google SketchUp to work with by a client. Unfortunately, we keep 
having issues when running it in the CAVE on OSG. The model seems to have it's 
ambient light amped up as it keeps glowing white and yet sometimes, if the 
camera is far enough, this light will fade (leading me to believe this might be 
a light attached to the camera. I'm not sure what it is, but the effect seems 
similar to when you ramp up the ambient light attribute of a model. I know not 
everyone works with CAVEs but does anyone think they know what the issue is? 
... 

Thank you!

Cheers,
Jordan

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





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org