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/

Reply via email to