Hi Wojtek,

Looks to me more like texture/sampler conflict than texgen conflict. I think so because shadow on second pictutre looks like some text. I can discern letters e and K. Its a long shot but I have no other ideas.

Hmm, you may be right. In theory at that point in the graph there *should* be no other texture on unit 1 (my shadow texture unit) but the ocean scene calculates reflections on that unit, which should only be bound for the ocean surface rendering but may be bound for the whole scene by mistake. I'll have a look to see if that's what is happening.

You may verify if its texgen issue by modifying shaders to display shadow map tex coords instead of shadow map texels. If two pictures match then it will mean that shadow map got broken or replaced somehow.

I made the shaders display the tex coords, and they seemed to move around a lot, but I guess since they're eye space that's to be expected. But they seemed smooth. I don't know.

Changing shadow map unit and texture coord unit to other number may help as well. At leat in this that shadwo map contents will change again, if this is a conflict with some ocean shaders/samplers.

I'll try that, it may be the simplest route to avoid a conflict.

One should remember about texgennode/clipnode/lightnode limitation which allows only one such node with unit n to be present in sccene graph. If there are more at the same unit there will be conflicts.

Clipnode may be a problem, since osgOcean uses them... I'll try the other things first, and if I still don't get any good results I'll ask more info about this.

Thanks a lot,

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

Reply via email to