Andreas Bauer wrote: > me. For example, when the text was 10 pixel huge, you needed a Overlay area > of at least 30 pixel, or the text wasn't painted. > > LabelOverlay test = new LabelOverlay(theCanvas,new > Rectangle(100,100,100,100),"Test"); > test.setRelativePosition(Overlay.PLACE_LEFT,Overlay.PLACE_TOP); > test.setVisibleLength(4); > test.setVisible(true); > test.update(); > YourCameraBG.addChild(test.getRoot()); > test.initialize();
I've started to fix a lot of these issues. The latest code in CVS had done away with a lot of the relative position stuff and works entirely fixed position. The idea is to then use a layout-manager style class to move them around, in much the same way as you would with traditional 2D GUI classes. While the layout manager code is not part of the j3d.org work, we do have a few examples of this in the Xj3D codebase, which uses the overlays for the rendering. I intend to migrate some of this through at a later date, but not for now. There will eventually be a lot more serious stuff going into the overlay code so that you could create a full 2D GUI over the top of the 3D space. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
