Actually the state set that I missed for the switch node 'A' is a very
simple
state set. It just sets the rendering hint to 0 (OPAQUE_BIN).
But the two switches 'B' and 'C' children of the switch 'A'
have their own state sets, which in turn set different rendering hints
(my own defined hint, both > 0). So, I thought that these state sets should
override that defined in node 'A', even for rendering bins.
But, if I missed the state set for 'A', the drawable in 'B' wouldn't be
drawn.
How this might be possible, since the missed state set shouldn't affect the
state sets for the children nodes of 'A'?

Thanks again,
Gianluca


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Ulrich
Hertlein
Sent: mercoledì 27 maggio 2009 11.40
To: OpenSceneGraph Users
Subject: Re: [osg-users] missed state set for a scene node

Hi Gianluca,

On 27/5/09 10:42 AM, Gianluca Natale wrote:
> state set for that switch should be a simple set that just sets a
> rendering bin to the default for opaque, 0), but I got strange
visualization.

That is such a nondescriptive problem description it's not funny.
You'll need to be more specific if you expect us to help you in any way.
But I doubt it's related to the missing StateSet (see below).

> Does a node need a state set, always?

No, you don't.  Nodes without StateSet are perfectly fine.

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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.339 / Virus Database: 270.12.39/2134 - Release Date: 05/26/09
20:20:00

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

Reply via email to