Hi Mihai,

On 2/19/07, Mihai Radu <[EMAIL PROTECTED]> wrote:
Thanks again for getting SM started.

While playing around with the example, I noticed that if using
""--directionalLight", the code to re-calculate the RTT frustum would
not do it's job( lightpos[3] == 0.0), for now I included a small patch
to the example that cheats a bit by setting lightpos[3] = 1.0f in this case.

As you've spotted I haven't set up the direction support in the
ShadowMap or ShadowTexture techniques.  The original examples didn't
support it either, so their osgShadow inherit this.  This should be
straight forward to fix - simply create an orthographic project for
the RTT camera, one just has to do some maths to set things up I'll do
this in the course of this week.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to