<div dir="ltr">Thanks Robert ! Very well explained !<div><br></div><div>Cheers!</div><div>Nick</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 6, 2016 at 10:17 AM, Robert Osfield <span dir="ltr"><<a href="mailto:robert.osfield@gmail.com" target="_blank">robert.osfield@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nick,<br>
<br>
On 6 December 2016 at 05:38, Trajce Nikolov NICK<br>
<span class=""><<a href="mailto:trajce.nikolov.nick@gmail.com">trajce.nikolov.nick@gmail.com</a><wbr>> wrote:<br>
> Hi Robert, Community,<br>
><br>
> This might sounds stupid so I am apologize upfront. I spent some time<br>
> reading the code of TerrainTile and I am seeing it as a Group (right?). When<br>
> using NodeVisitors I am seeing the TerrainTiles as part of the scene. When I<br>
> want to use it as ordinary Group it is not.<br>
><br>
> For example, I have this scene:<br>
> PagedLOD->Group->TerrainTile-><wbr>MatrixTransform->Geode<br>
><br>
> MatrixTransform is reporting 0 numParents and Geode->getParentalNodePaths is<br>
> up to the MatrixTransform<br>
><br>
> I am confused. I am after replacing the TerrainTile with my own Group/Node<br>
<br>
</span>The TerrainTile "has a" TerrainTechnique, and it's the concrete<br>
TerrainTechnique (such as GeometryTechnique) to take the elevant and<br>
image layers assigned to the TerrailTile and create a local subgraph<br>
capable of rendering that data.<br>
<br>
It's entirely up to the TerrainTechnique how it creates and manages<br>
it's own local subgraph graph, and typically won't directly assign it<br>
to the main scene graph, rather it it's self contained within the<br>
TerrainTechnique, this means the parent can be null for the topmost<br>
node in the local subgraph. This subgraph is still traversed because<br>
TerrainTile calls TerrainTechnique on each traversal, and the<br>
TerrainTechnique implementation can decide how best to do the<br>
traversal of it's local subgraph.<br>
<br>
The fact that the local subraphs are traversed means that the<br>
NodeVisitor's that are doing the traversal will collect the full<br>
NodePath from the root of the scene graph down through the TerrainTile<br>
to the local subgraph, so if you want the parental chain then a<br>
visitor will provide this for you.<br>
<br>
Robert.<br>
______________________________<wbr>_________________<br>
osg-users mailing list<br>
<a href="mailto:osg-users@lists.openscenegraph.org">osg-users@lists.<wbr>openscenegraph.org</a><br>
<a href="http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org" rel="noreferrer" target="_blank">http://lists.openscenegraph.<wbr>org/listinfo.cgi/osg-users-<wbr>openscenegraph.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">trajce nikolov nick<br></div>
</div>