Hi  Wojciech,

Adding a draw callback to override the the texture parameters would work, but you'll have to be careful to restore the parameters back to what the osg::Texture settings are after the custom draw.

Robert.

On 5/19/06, Wojciech Lewandowski <[EMAIL PROTECTED]> wrote:
Thanks,
 
Since I don't have actual Image - texture is ShadowMap generated on the fly I will rather add drawCallback to HUD quad to change texture parameter before drawing HUD.
 
Wojtek
----- Original Message -----
Sent: Friday, May 19, 2006 3:21 PM
Subject: Re: [osg-users] Same texture on two stages with different filtering ?

On 5/19/06, Wojciech Lewandowski <[EMAIL PROTECTED]> wrote:
Robert,
 
Ups, I meant to remove contents of the email I replied first but forgot about it at the end. Next time I won't. Sorry.
Just out of curiosity: how these email threads are tracked ? After your note I guess its done using headers and not by their contents ?
 
Back to texture: It it possible to share TextureObject between two Textures ?
Will clone( SHALLOW_COPY ) copy TextureObject ?
Obviously I want to avoid duplicating image buffer.

No its not possible, but you can share an osg::Image between osg::Textures.

Robert.


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


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


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

Reply via email to