Hi Ufuk, I can't say why you aren't achieving the result you want. State inheritance is well tested part of the OSG, and the use of PagedLOD has no baring on it, so my guess is that something has gone amiss in your scene graph setup.
One item that looks a bit odd with your data is that you have four children of the PagedLOD that all have the same distance range, while this is probably legal usage, it certainly isn't something I would recommend. Instead put all the children of the same distance range under a single group, and have this group as a single external tile. This is how VirtualPlanetBuilder creates it's paged quad tree. Robert. On Fri, Apr 17, 2009 at 2:01 PM, Ufuk <[email protected]> wrote: > Hi, > i have an .osg file which is like this: > > PagedLOD { > nodeMask 0xffffffff > cullingActive TRUE > Center 512 512 0 > Radius 724.077 > RangeMode DISTANCE_FROM_EYE_POINT > RangeList 5 { > 1448.15 5792.62 > 0 1448.15 > 0 1448.15 > 0 1448.15 > 0 1448.15 > } > NumChildrenThatCannotBeExpired 0 > FileNameList 5 { > ter_0_0_0.ive > ter_1_0_0.osg > ter_1_1_0.osg > ter_1_0_1.osg > ter_1_1_1.osg > } > num_children 0 > } > > and every .osg file which is in this file is like this file. they have 1 > ive file and 4 osg files. > > by this method, we are loading child nodes in paging. > > here i want to render all of these in a shader. So i set the parent node > stateSet but childs does not effect :( > > do you have any idea why i cant set the child node's stateset by changing > the stateset of parent? > > > > -- > Ufuk > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

