Hi Adrian,
On Tue, 2005-10-04 at 17:29 +0100, Adrian Haffegee wrote:
> Having read that the FTGL text nodes may be a little iffy, I though I'd
> check the list before getting too bogged down.
>
> I've been looking at checking intersection with a FTGLText node without
> too much success. For starters I've just tried adding a text node
> alongside the torus in 11picking (tutorial). It runs fine, displaying
> both text + torus, but will not select any of the text (no hit). I'm
> still playing, but it looks like the text volumes may be invalid...
> should this be possible with the FTGL node as it stands? If not, any
> hints of possible fixes + potential pitfalls appreciated.
The volume should be ok (you can check it by calling mgr->getAction()-
>setVolumeDrawing(true);). But the FTGLText has no code for
intersection, mainly because FTGL is doing the rendering and I don't
have access to the actual polygons for intersection testing.
If you're happy with a rough test against the volume you can just copy
the code from Group::intersect and just set a hit (see
Geometry::intersect) instead of continuing.
Hope it helps
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users