I'm struggling with frame #2 of an off-screen rendered canvas.

I build a driveway image by creating a Java3D scene and rendering it to an
off-screen buffer, then compositing it onto another image. It works well the
first, third, and nth time, where n != 2. When I render the second time, the
original texture map from the interior of the driveway shows up in the
border (as you can see in the 2nd image). Ignore the fact that the interior
looks different on frame 2 - I just changed the interior to trigger a
re-render. The same thing happens no matter what causes it to re-render.
I've tested this 40-50 times and it's always the same effect regardless of
the trigger. The first interior texture gets mapped to the second border
texture.

This happens consistently. Before I upgraded to Java3 1.3 beta 2 (I was
using beta 1), it was broken on both the 2nd and 3rd frame (in fact, in the
third frame the border showed a combination of the border texture and the
interior texture in a way that would be impossible to reproduce unless I
combined the textures into a single image.

As I said before, it's fixed by the third frame and there don't seem to be
problems after that. I don't have time to give you demo code and I'm not
going to upload the application, but I thought that the Java3D team would be
interested in seeing this bug.

My workaround is to render twice before outputting the image to be
composited whenever I hit render #2.

I'd love to see this one fixed.

John Barrus

<<attachment: 1stRender_sim.jpg>>

<<attachment: 2ndRender_sim.jpg>>

Reply via email to