<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Christian,
<br>In tcl, the following lines enter you into an event loop:
<p># prevent the tk window from showing up then start the event loop
<br>wm withdraw .
<p>iren SetUserMethod {wm deiconify .vtkInteract}
<p>In your java code, however, you have no such mechanism to enter you
into an event loop. One way would be to
<br>add an "iren.Start()" somewhere after the "iren.Render()" statement.
In addition, you could set a user method
<br>which would write the file every time the user presses the "u"
key. I have done this and included it here.
<br>Good luck,
<br>-Jeff
<p>Christian Poecher wrote:
<blockquote TYPE=CITE>Hi,
<p>I would like to fly through a scenery and take several "snapshots" of
the
<br>scenery and export them to a RIB file, so I can render them and finally
make
<br>a high-quality video of it.
<br>I tested some TCL-examples and translated them into Java. There was
a
<br>strange difference between those versions: The TCL-version exports
a RIB and
<br>runs on and the Java-version exports the RIB and closes after the file
is
<br>exported. I checked the TCL and Java versions for differences and could
find
<br>none. Is this an error in the Java wrapper, or have I forgotten something?
<br>You might want to see the code:
<br>Java:
<br><a href="http://www.fortunecity.de/wolkenkratzer/silicon/613/RIBPropertyTest.java">http://www.fortunecity.de/wolkenkratzer/silicon/613/RIBPropertyTest.java</a>
<br>TCL: (start dentedTest.tcl)
<br><a href="http://www.fortunecity.de/wolkenkratzer/silicon/613/dented.tcl">http://www.fortunecity.de/wolkenkratzer/silicon/613/dented.tcl</a>
<br><a href="http://www.fortunecity.de/wolkenkratzer/silicon/613/dentedTest.tcl">http://www.fortunecity.de/wolkenkratzer/silicon/613/dentedTest.tcl</a>
<br><a href="http://www.fortunecity.de/wolkenkratzer/silicon/613/colors.tcl">http://www.fortunecity.de/wolkenkratzer/silicon/613/colors.tcl</a>
<br><a href="http://www.fortunecity.de/wolkenkratzer/silicon/613/vtkInt.tcl">http://www.fortunecity.de/wolkenkratzer/silicon/613/vtkInt.tcl</a>
<p>TIA, Chris
<p>_______________________________________________
<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: <<a href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</a>>
<br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a></blockquote>
<pre>--
J.A. Lee
Software Engineer
Computational Dynamics North America
3 Schoolhouse Lane
Etna NH, 03750
ph: 603-643-9993 x109, fax: 603-643-9994</pre>
</html>