should not be set each frame anyways, only if needed...

I am using SilverLining for atmospehere and there is some issue with
updating the sun position, so I was suggested to call it in the frame method

I will try to look at it closer though

Nick

http://www.linkedin.com/in/tnick


On Sun, Jan 24, 2010 at 7:37 PM, Jean-Sébastien Guay <
[email protected]> wrote:

> Hi Nick,
>
>
>  Great. Yeas, that is what I was thinking as well. the sun direction set
>> dirties the scene so the init is called over and over again. I am not into
>> the details of osgscene too much, but for me it looks like an overhead to
>> recreate just about everything on sun position change.
>>
>
> init() should free things cleanly though, if everything is in ref_ptrs and
> is removed from the scene correctly. And the sun position should not be set
> each frame anyways, only if needed...
>
> I'll check it out tomorrow.
>
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay    [email protected]
>                               http://www.cm-labs.com/
>                        http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to