Re: [osg-users] Seeking help in understanding HEADLIGHT light...

2008-08-13 Thread Robert Osfield
On Wed, Aug 13, 2008 at 9:13 AM,  <[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
> thanks for coming back to me. One thing I left out of my mail was that I'm 
> still using OSG 1.2 - though looking to migrate very soon. Is your response 
> still valid for OSG 1.2?

View doesn't exist in OSG 1.2, but the SceneView that osgProducer
wraps up does have the Light you want to control.  It'll be rather
than less logical and straight forward to access than it is with OSG
2.x though.

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


Re: [osg-users] Seeking help in understanding HEADLIGHT light...

2008-08-13 Thread neil.hughes
Hi Robert,

thanks for coming back to me. One thing I left out of my mail was that I'm 
still using OSG 1.2 - though looking to migrate very soon. Is your response 
still valid for OSG 1.2?

Neil.

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


Re: [osg-users] Seeking help in understanding HEADLIGHT light...

2008-08-12 Thread Robert Osfield
Hi Neil,

The Viewer has a default Light, setup so that it's an infinite light
coming from behind the eye point.  The methods for controlling the
Viewers light can be found in osg::View, so have a look at
include/osg/View.  Please note that you can switch off this default
light, and adjust its settings as well.

Robert.

On Mon, Aug 11, 2008 at 11:56 AM,  <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm trying to adjust the light that is created as part of the HEADLIGHT 
> option, as it appears to be washing out an another light that I have in my 
> scene. Essentially I'd like to take its effect down so that it only comes 
> into play when I'm close to an object.
>
> I've tried adjusting the light on the scenedecorator, and I'm monitoring the 
> apply function on the Light, and I see my values coming through, but I'm also 
> getting the original values coming through. Its as if I have two lights in 
> the room, but I haven't added any, other than the headlight option.
>
> In an attempt to track what was happening I've "discovered" that when the 
> camera is set up, it also has a light created. I don't know if this is 
> important or not.
>
> Can anyone help please ?
>
> Many thanks
>
> Neil
> ___
> 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] Seeking help in understanding HEADLIGHT light...

2008-08-11 Thread neil.hughes
Hi All,

I'm trying to adjust the light that is created as part of the HEADLIGHT option, 
as it appears to be washing out an another light that I have in my scene. 
Essentially I'd like to take its effect down so that it only comes into play 
when I'm close to an object. 

I've tried adjusting the light on the scenedecorator, and I'm monitoring the 
apply function on the Light, and I see my values coming through, but I'm also 
getting the original values coming through. Its as if I have two lights in the 
room, but I haven't added any, other than the headlight option.

In an attempt to track what was happening I've "discovered" that when the 
camera is set up, it also has a light created. I don't know if this is 
important or not.

Can anyone help please ?

Many thanks

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