Hi.
I've been using Java-3d for a while, but have never really posted a question
to the interest Group.
I think the java 3d design and structure is great. I'm sure that once the
teething problem have been sorted out it will vastly improve most people's
perceptions of Java is capable of.
I was hoping that someone could answer the 2 following questions for me:
Can I terminate a Canvas3d Render from preRender()?
I am building a construction tool, in which I need to have 3 canvas3d
objects on a Panel. Whenever one canvas is rendered, the other 2 do as well.
I am currently trying to slow down the 2 non-active canvases with:
public void preRender()
{
if ( BGlobal.RENDER_LOCK != this)
{
Thread.currentThread().yield();
}
}
But it does not seem to have much affect.
My second Question is:
I seem to be losing memory when I unload all my objects from a canvas
in one panel to another canvas in another panel. ( Not yet sure wether this
is due to my code or J3d, so we will ignore it for now)
But I am trying to save memory by having one Canvas3d, I am trying to
add the Canvas to the panel when the panel is set to visible, and remove the
canvas then the canvas is invisible,
eg:
setVisible(b boolean)
{
if (b) this.add(Global.Canvas)
else this.remove(Global.Canvas)
}
Adding the canvas seems to increase memory use as well? Does adding the
Canvas to a panel start some static threads or something? What can I do?
Any comments would be appreciated.
Thanks
Young.
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/