Hi Vasilio,
> The problem with this solution is that after some time
> of random duration, the application freezes. The problem is
> probably the Appearance object. I made some tests where I
> was simply setting the texture of the Appearance object and
> it was also freezing after a number of times (usually after 10000 to
> 20000 times). There is a posibility that this is a bug of Java3D.
> Please let me know if you use this solution, if you face the
> same problems.
I am facing the same problem. I made a lot of tests and I made a dump
of the threads (using the closing button of the window). Here is what I
have:
My thread call:
at javax.media.j3d.Canvas3D.addZombieTextureList(Compiled Code)
at javax.media.j3d.TextureRetained.clearLive(Compiled Code)
at javax.media.j3d.AppearanceRetained.setTexture(Compiled Code)
at javax.media.j3d.Appearance.setTexture(Compiled Code)
....
The "J3D-Renderer-1" thread
at javax.media.j3d.Canvas3D.processZombieTextureList(Compiled Code)
at javax.media.j3d.Renderer.run(Compiled Code)
I reach the freeze much sooner than you, because I use two textures (one is
rendered ans the other is updated, then I swap). If I use more spare
textures, my application runs longer.
I think (the java3D team did not answered me yet so it is only my
considerations) that it's because when you set a texture, the previously set
texture is put in a list for a later treatment. As I swap fast from one to
the other, it may happen that the J3D-Renderer-1 wants to process a texture
which is already in the appearance or at the exact time I want to set it to
the appearance.
Another point is when do you update your texture ? Do you set it
asynchonously from the java3D thread ?
(a possible way could be to do the change in the postswap method of the
canvas 3D, because I saw that there a some interactions between a canvas3D
and the processzombies..)
any comments would be appreciated
cheers
renaud
===========================================================================
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".