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
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
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
: [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
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...
)
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
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
7 matches
Mail list logo