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.
Wojtek
----- Original Message -----
Sent: Friday, May 19, 2006 1:38 PM
Subject: Re: [osg-users] Same texture on
two stages with different filtering ?
Ho Wojceiech,
Could you start a new thread by
using a new email, rather than a reply to a modifying the subject as some of
your email is from a totally unrelated thread.
On 5/19/06, Wojciech
Lewandowski <[EMAIL PROTECTED]>
wrote:
Hi,
What is the recommended way of setting the
same texture with different filtering options for
two subgraphs ? Lets suppose I want to display two quads side by
side and want first quad to be linearly filtered
and second quad nearest filtered ? Shall I clone the
texture ? If so which clone mode should I
use ?
My problem is not exactly related to filtering
but shadowComparisonFunction. I adopted hud from osgshadow
in osgshadowtexture example. But noticed that hud comes out blank if I
leave shadowComparisonFunction set to true. If its false shadow map is
displayed on the hud but shadows are not generated in the scene. So i
figured out that I need to use texture with shadowComparisonFunction( true )
for scene shadowing and shadowComparisonFunction( false ) for
visualizing it on the hud.
Its not possible to
change the filter modes on a single osg::Texture shared between seperate
subgraphs. So you'll need to create two 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/