Raghavendra R wrote:
> Hi Kelvin,
>
> Thanks for the reply. I was able to resolve this issue. Thanks for the
> invaluable hints regarding the Renderer / Scene graph updations. I was
> able to fix this by firstly changing the text color of the
> Shape3D/Texture2D entities (called from the main class) and then
> changing the background color of the Canvas3D (preRender) and in the
> same rendering loop, exporting the image to JPEG (postSwap).
>
> However, the text color changes did not get reflected in the JPEG
> immediately after the scene graph updations nor in the first rendering
> loop but got reflected only after the second renderering loop was
> called. I was not able to understand this behavior. Also , i have not
> used behaviors to change the text color. Can you let me know any good
> references for the Renderer / Canvas3D / Scene graph which can throw
> more light on these features?
>
> Thanks
> Raghav

Only modifications to scene graph objects (not including geometry
by-reference or texture by-reference) made from the
processStimulus method of a single behavior instance
are guaranteed to take effect in the same rendering frame.
All modifications to scene graph objects (not including geometry
by-reference or texture by-reference) made from the
processStimulus methods of the set of behaviors that
wake up in response to a WakeupOnElapsedFrames(0) wakeup condition
are guaranteed to take effect in the same rendering frame.

For modification using user thread or in callback of
preRenderer/postRender it is possible that the change
not take effect immediately. i.e don't expect a change in
preRenderer() will take effect immediately in rendering
for the same time frame. It is possible for a frame delay.
The solution to workaround is to grap the image a
frame later.

- Kelvin
---------------
Java 3D Team
Sun Microsystems Inc.

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