RepaintManagers + Java 3D

J

jon.mithe

Hi,

I am interested in mapping JPanels to Java 3D objects. I can do it by
creating a BufferedImage, getting the graphics, invoke paint on a
JPanel and then creating a Texture from that to which I can map to my
3D object. However, this does not seem good solution, quite simply to
get any "live" images would be a horrible hacked mess, espically as
the panels would not be on the swing tree.

I'm guessing a better solution would to implement some sort of
RepaintManager / TextureManager and assign components to it? Then it
JPanels wouldnt need to be on the swing tree and changes to the panels
could be picked up and retextured? Never really delved that deep into
swing.

Just wandering if anyone could spot a better solution or point me
towards some usefult information / offer some advice to how this could
work

Any help be great cheers - Jon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top