Re: [osg-users] osg::Light Simple Question ?

2008-07-19 Thread Peter Wraae Marino
Hi, isnt there missing a *setMode*( GL_LIGHT1, osg::StateAttribute::ON ); for your terrain group? (or did I miss something?) Peter http://osghelp.com On Sat, Jul 19, 2008 at 12:39 AM, Ümit Uzun [EMAIL PROTECTED] wrote: Hi All, I have an simple question about light the terrain model

Re: [osg-users] osg::Light Simple Question ?

2008-07-19 Thread Ümit Uzun
Thanks for reply, I have converted terrain model to osg and opened it with text editor. osg file format like below; -- Group { name db nodeMask 0x cullingActive TRUE num_children 1

Re: [osg-users] osg::Light Simple Question ?

2008-07-19 Thread Gordon Tomlinson
Sent: Saturday, July 19, 2008 6:11 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osg::Light Simple Question ? Thanks for reply, I have converted terrain model to osg and opened it with text editor. osg file format like below

Re: [osg-users] osg::Light Simple Question ?

2008-07-19 Thread Ümit Uzun
: [osg-users] osg::Light Simple Question ? Thanks for reply, I have converted terrain model to osg and opened it with text editor. osg file format like below; -- Group { name db nodeMask

Re: [osg-users] osg::Light Simple Question ?

2008-07-19 Thread Jean-Sébastien Guay
Hello Ümit, I have tried terrainScaleMAT-getOrCreateStateSet()-setMode( GL_RESCALE_NORMAL, osg::StateAttribute::ON ); pattern but the result is same. There is no light effect on the terrain. I don't understand why? As Gordon said, check if your terrain has normals in the first place...

Re: [osg-users] osg::Light Simple Question ?

2008-07-19 Thread Gordon Tomlinson
) I would recommend that you create your terrain to the correct size and not scale at run time, _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ümit Uzun Sent: Saturday, July 19, 2008 9:06 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osg::Light Simple

Re: [osg-users] osg::Light Simple Question ?

2008-07-18 Thread Jean-Sébastien Guay
Hello Ümit, I am trying to effect the components of scene with green light. Although green light could effected two of sphere, couldn't get success on the terrain model. What can I do to effect the terrain with green light? Your terrain's texture is probably being applied in GL_REPLACE