Skip to main content

J3DGraphics2D drawImage() layering

No replies
hrnick
Offline
Joined: 2010-12-23
Points: 0

I'm trying to create a Java3D overlay using postRender() and getGraphics2D() in Canvas3D. There are a couple of different images and rectangles I want to draw and I want to control the order they are added in (or really the layering of them). Is there any way to control this? Are there any workarounds? I've been thinking about combining the images before adding them to the overlay but that doesn't solve the problem with the rectangles.
Also I'm a little curious about the performance when drawing a lot of images and rectangles on the canvas. Does this affect it a lot?
Thank's in advance!