Hi Sunitha, please only ask a question once and use more descriptive subjects.
As for your question, you have to realize that the model you are loading is usually stored as a subgraph, so the particular stateset you are looking for doesn't have to be on the root node of your model (hence you get null). You can see this by converting your .iv model to .osg with "osgconv" and inspecting the result with a text editor. In your program you would tipically use a NodeVisitor in order to traverse your model nodes and get the stateset you are interested in. I recommend you to read the OSG Quick Start Guide by Paul Martz. Is available at http://stores.lulu.com/pmartz Regards, Alberto El Martes 03 Febrero 2009ES 07:50:05 sunitha sunagad escribió: > -- Hi, > I am loading an iv file in Osg i need to know the StateSet of the > particular node i pick in the iv file loaded on > to the osg iv file has its Attributes in it....that is applied to the mode > i need the information from it > I am getting the picked node information and in turn i > need to know the StateSet Atrributes of the current picked node... > I am using the Pickednode->getStateSet() i get null each time.... > Is ther any way that i have to set the attributes ON while Loading the mode > Please Let me know > > > > > > > > > > > > > > > > > > Regards > Sunitha. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org