Hi Tobias,

> A fine thing, these masks, but they do not solve my problem:
> 
> I try to explain it again:
>  I got some leaf nodes in my LOD² (Leaf under Lod under Lod) Subgraph.
> These LeafNodes are only drawn if the camera is near enough. Fine.
> But I want to be able to only draw a subset of these leaf nodes (e.g. 
> the ones with Textures).
> As these are only a few (58 out of 400) they should always be visible.
> That has now been "solved" by costly setting all the LODs distances to 
> INFINITY / back to their desired Values, when switching visibility modes.

if I understand this correctly, there is no real need for the leaf nodes
with textures to be below the LOD's, yes ? Then you could put them in their
on (sub-)graph and make that a child of the node that is also the parent of
your top LOD, like this

                                      Node (with GroupCore or SwitchCore or
...) 
                                          |
      ------------------------------------|-------------------\
    /                                                          \
   |                                                            |
 Node (with GroupCore)                                        Node (with LOD
Core)
   |                                                             |
   |----------------|------------- ...                     (your current
LODs, ...)
 Leaf1            Leaf2
 (GeometryCore)   (GeometryCore)

> 
> I thought their would be a nicer way of doing this.
> I tried to have a second "root", where all the texturedNodes ADDITIONALY 
> get "listed" :
> beginEditCP(texturedCubesRoot);
>    texturedCubesRoot->setCore( Group::create() );
>    texturedCubesRoot->addChild( texturedCube);
> endEditCP(texturedCubesRoot);

that's basically what I describe above.

> and switch between the LOD structure and the flat texturedCubesRoot. 
> Here lies the problem: The nodes under texturedCubesRoot never get drawn.

Hm, (sorry, I know this may sound insulting, but I can't think of another
reason) did you add texturedCubesRoot to your graph, i.e. is there a line
like:
 someNode->addChild(texturedCubesRoot) ?

> Another thing:
> how do I "pick" objects correctly with LODs in my Graph? it seems that 
> sometimes a coarser detail level than is rendered is reported to have 
> been clicked upon.

sorry, don't know that one.
 
   Hope it helps,
         Carsten


-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to