Hi Robert,

As I said, I'm using a deferred pipeline where I collect the lights with an visitor, so this is thee source for the screenshot. If you like me to, I can create a minimal example with one light that should demonstrate the problem.
Unfortunately the OpenFlight creator is not the nicest tool to work with


cheers
Sebastian
Hi Sebastian,

I've loaded your model and applied your change but get the same
result, a white/grey scene that isn't lit correctly.  By doing a
osgconv tester.flt test.osgt and then looking at the result I can see
that all the Light's share the same LightNum.  I would have expected
them the Light's to be number 0,1,2,3 and for these to be enabled.

How did you get the result you've provide in the Clipboard01.png?

Robert.

On 17 April 2013 14:28, Sebastian Messerschmidt
<[email protected]> wrote:
Attached you'll find the corrected PrimaryRecords.cpp
This patch is against the 3.1.5 release

The pitch and yaw rotations where multiplied in the incorrect order for
directional and spot light sources.
Could some please test the modification, as I only discovered the problem
when construction light volumes for deferred rendering.
The attached model has 4 spot lights pointing towards the cross on the floor
as the picture shows.


cheers
Sebastian

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to