[osg-users] Disabling shadows for text

2013-10-31 Thread Anders Backman
Hi all.

Assume I want to add text following an object in the scenegraph, so I
create a geode with text below a MatrixTransform in the scene.

Now assume I want to disable shadows (when ShadowMap) for the text
(obviously).
Is the only way to do that, to have a separate graph for the text (without
a ShadowedScene node above)?

The setReceivesShadowTraversalMask does not apply for ShadowMap (which I
noticed after some testing).
But is there any other way?

/Anders


-- 
__
Anders Backman, HPC2N
90187 Umeå University, Sweden
and...@cs.umu.se http://www.hpc2n.umu.se
Cell: +46-70-392 64 67
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Disabling shadows for text

2013-10-31 Thread Trajce Nikolov NICK
Hi Anders,

Try putting an empty osg::Program in the stateset for the text geodes

Nick


On Thu, Oct 31, 2013 at 11:24 AM, Anders Backman ande...@cs.umu.se wrote:

 Hi all.

 Assume I want to add text following an object in the scenegraph, so I
 create a geode with text below a MatrixTransform in the scene.

 Now assume I want to disable shadows (when ShadowMap) for the text
 (obviously).
 Is the only way to do that, to have a separate graph for the text (without
 a ShadowedScene node above)?

 The setReceivesShadowTraversalMask does not apply for ShadowMap (which I
 noticed after some testing).
 But is there any other way?

 /Anders


 --
 __
 Anders Backman, HPC2N
 90187 Umeå University, Sweden
 and...@cs.umu.se http://www.hpc2n.umu.se
 Cell: +46-70-392 64 67

 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org




-- 
trajce nikolov nick
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org