Hello

> At the moment I've got the commands that construct the simpleUniverse
> inside the paintComponent method, but I'm fairly certain that this is wrong

yes, it is.

> I think it's re-creating the universe and pasting it over the current one,

yes, that may be the case.

> So where should the universe constructing commands be put, or do I need
> some other refreshing command that'll rebuild the simpleUniverse?

usually you don't rebuild the Universe at all. The usual way is to create a
complet scenegraph (a BranchGroup with the stuff you want to show) and attach
it to the universe (Local.addBranchGraph()) before showing the canvas3d.
java3d won't change or remove it, it will stay put.

It's not like some DirectX-technices were you have to recreate everything for
every frame. It works more like display-lists: create once, use forever.

If you want something to change or move: use TransformGroup.setTransfrom() or
BranchGroup.detach(). But you have to set the right Capabilities for this to
work, like
TransformGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);

cu

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