Hi Johannes,
Johannes Brunen wrote:
>> I'm not sure how to get those into OpenSG without writing a new
> RenderAction.
>
> Couldn't this be a general mechanism. Selection is one of the basic GL
> operations?
Well, not really. It was never supported in hardware, so it's just running
through the software emulation layer and is not all that fast. It will also
completely go away in OpenGL 3.
In general it's more efficient to do it in software, , if it's an important
operation.
> Maybe modifying the current RenderAction suffice? Probably not...
It could, but it might be painful.
But I just realized that there might be another way that's much more efficient
anyway.
Do you need to pick objects or really individual lines? If the former, you can
use a variant of the IDBuffer picking code that was added to the Tutorials for
1.8.
It renders the ids of all objects into an invisible buffer and does picking by
just reading the ID from that buffer. The tutorial only picks a point, but you
can also run it for a rectangle (or whatever shape you want).
The disadvantage is that it will only pick visible elements, so objects that
are
completely hidden will not be picked. Does that fit your requirements?
Dirk
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users