Hi Chris,

I have reviewed your changes but don't feel that an env var is the
best way to tackle this particular problem.  I'm not sure of the best
way to enable this workaround, so will need to learn more about the
this issue, and how widely it could affect OSG effects/techniques like
as ShadowMapping - it sounds like ShadowMapping might be jut one place
where issues could arise.

The reversing of the t direction on ATI seems rather an odd problem,
do you know if this a confirmed bug?

J-S could you explain what made you suggest this in the first place?

On a side note, I have merged the addition of the polyOffset copying
in the copy constructor.

Robert.

On Mon, Sep 15, 2008 at 4:12 PM, Chris Denham <[EMAIL PROTECTED]> wrote:
> I found a reference on the lists about this problem which I was
> experiencing.
> i.e. ShadowMap not working on some ATI cards.
>
> Re: [osg-users] simple shadows
> Jean-Sébastien Guay
> Mon, 05 May 2008 08:33:27 -0700
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg10268.html
>
> In this message, Jean-Sébastien suggested that reversing t-direction of
> texgen running on ATI might mix it.
> Prompted by this, I have added support an environment variable that allows
> reversal of the t-direction.
> I have attached a modified version of OSG2.6 ShadowMap.cpp that includes
> this change.
> Basically it behaves exactly as before except when environment variable
> OSG_REVERSE_T_DIRECTION=YES
> In this case, the y direction of the transform applied to the textgen is
> reversed.
> Works for me! (thanks for the tip Jean-Sébastien).
>
> Oh.... and by the way, not relevant to this particular problem, but I also
> added the missing copy of polyOffset to the copy constructor of ShadowMap.
> Sorry for mixing this in here ;-).
>
> Cheers.
> Chris Denham.
>
>
>
>
>
>
>
> _______________________________________________
> 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