as there is no dynamic text 2d node thingy in xith3d i just wrote my own … and like to share it 
will write some more lines when i get back in some hours … for now … i just attach the code
[EDIT]
ok … just a little ‘feature’ summary:
features:
- uses Java2D rendering to create Fonts, therefore supports all fonts and fg colors avaible to java
- allows dynamic text, this could be optimized but i the current implementation is working quite fast
- has ‘multiline’ support ( a feature i miss in java3d too ), means that you can set a string containing newlines and get text with multiple lines
‘bugs’:
- first of all i use a seperate face for every letter, which results in some rendering overhead but allows easier dynamic texts (on the other hand 100 faces for 50 letters aren’t that much on actual hardware, even on my gf4mx
- another very annoying thing when you use this as non gui text (eg as a label over something) is that this text disappears when the left border leaves the field of view … i’ve got no idea why
- extends BranchGroup … actually i wanted to extend Shape3D but afais it’s not possible to add several geometries and their appearances to a shape3d so i had to extend some kind of group
todos:
- add support for centered text (vertically and horizontally)
- optimize the setText method to change just the letters that change (which should result in less changing overhead)
- preloading of standard letters
hmm… that should be it …
[/EDIT]
[EDIT2]btw … this forum is not that frequented is it?[/EDIT2]
Florian
