Return to Overview

GroIMP Project Gallery

renderHeadlessDemo

renderHeadlessDemo.png

ID: 67053a41256715cda41c87d2

Uploader: dforys

Short Description: Run GroIMP headless

Description: Demonstrates how to run GroIMP headless (without a GUI) and how the internal model can be automatically run several steps.<br/> Furthermore at each step the actual scene will be rendered form two viewing directions and the result images will be saved. <p>The command line to run GroIMP headless is:</p> <p><i>java -cp BASE/XL-Core/build:BASE/Utilities/build:BASE/Graph/build:BASE/Platform-Core/build -Xmx1000m -Djava.util.prefs.userRoot=USERDIR de.grogra.pf.boot.Main --project-tree --headless --debug=INFO MODEL.gsz 2> ~/render_out.txt</i></p> <p>where you have to insert for</p> BASE ... the GroIMP path<br> USERDIR ... your root directory <br> MODEL ... the name of the model you want to start<br>

How It Works: <p>To run GroIMP headless you have to insert two methods. The <i>startup()</i>-method, which is run automatically when a GroIMP-model runs and the <i>run(Object info)</i>-method, which is our "new" run-method. </p> <p>The <i>run(Object info)</i>-method mainly just calls another method where the real work will be done. In this other method we have got a loop where we derive one step and call the render-method for several times.</p> <p>The <i>renderImages()</i>-method finally calls twice the renderer from two different viewing directions and saves each result image as exr-file.</p><br><br> To insert a additional cameras open the Camera panel by Panels -> Explorers -> 3D -> Cameras and add a new camera by choosing Object -> new. The new camera can be afterwards used and identified by his name.

Related Models: 67053a41256715cda41c87d8
67053a40256715cda41c872e

Categories: 6705382e256715cda41c7e08

Version: