Jasmine Kwok wrote:
Hi all,

I need to draw a 2D circle on the 3D canvas. Is there any way I can put the
shape into a Shape3D and transform it like a 3D shape, and what class should
I use to draw the circle. Would appreciate some help on this. Thanks!

Regards, Jasmine

Hi, there are a number of ways, if you want it on top of everything else, like a HUD style then you can get canvas.getGrahpics2D(), this returns you something that you can draw directly on to, but it's notorious for being slow. www.j3d.org have an overlay system, I've not tried it myself, check out their website. I've implemented my own HUD using 3d components and dynamic textures, you place a PhysicalHUD in your world (just add it to the view branchgroup), and you ask it for a component, then you draw what you want and call update, next frame it will be there, i've used to to do a FPS counter and it didn't seem to effect the framerate much, it can deal with alphad textures too so you can create circular or any irregular shaped component, components can have fixed position and size, or they can be relative if you resize your canvas on the fly. It does have some things to be wary of, but if you know about them you can work round them.

Cheers

Jeremy

--

PGP key: http://www.computerbooth.com/pgp.html
Homepage: http://www.computerbooth.com/

===========================================================================
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".

Reply via email to