Hello Moritz,
Maybe I should use glbitmap fonts, since my annotations are screen
aligned anyway. The node core Experimental/Text/OSGScreenAlignedText
basically offers what I need. However, font bitmaps starting outside
of the viewport are clipped. :(
There is a workaround to avoid glbitmap clipping in 2D:
http://graphics.ethz.ch/Downloads/Documents/OpenGL_pitfalls.pdf
Chapter 9
But I can't figure out a suitable workaround for glRasterPos3f in
ScreenAlignedText::drawPrimitves(...)
- You should not use the code in Experimental/Text. It is deprecated
and will be removed from future OpenSG versions.
- As far as I know, glBitmap is a slow operation, compared to the TXF
technique.
My recommendation is:
- Create a viewport on top of your rendering viewport.
- Use an orthographic camera, and setup the model-view and
projections matrices so that one pixel of the text is mapped to one
pixel on the screen.
But there remains one problem: How do you determine the positions of
your annotations on the screen?
Bye,
Patrick
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users