Hi Chase,

On 8/7/07, Bradford, Chase <[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
> How would you feel if the TexGen class was responsible for setting its
> own ModelView matrix before calls to glTexGen when in EYE_LINEAR mode?
>
> The changes would be:
> - TexGen would have a new RefMatrix member that is used in apply with
> EYE_LINEAR.
> - TexGenNode would set the matrix during cull traversal, instead of
> adding itself to the RenderStage's list of PositionalState objects.
>
> This way the texgen can act on local subgraphs in eye_linear when the
> user specifies a modelview matrix, while preserving existing
> functionality which is useful for projected texturing.

Very nice but... multi-threading & multiple cameras/graphics context
all lead to having multiple possible versions all at the same time...
so you'd need multiple matrices attached to the TexGen and a means for
choosing which one to use during the draw traversal.

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

Reply via email to