Breve IDE Command Line Options

Is there a way to specify that the windows version of the breve IDE should open and then run a tz file from the command line? I would like to execute a script, running the same tz file with different command line parameters, and take a PNG screenshot as the last action before calling end simulation. Similarly, is the a way to close the breveIDE program from within a simulation, rather than just ending the run and leaving the environment open?

Also, will the movie pathname problem for windows (using unix pathname slashes instead of windows ones), be fixed in version 2.4?

Cheers,

Ed

Breve IDE Command Line Options

Is there a reason you need to use the IDE and not the command-line version of breve? The command-line version is intended for just what you describe. It can pass command-line arguments to the simulation and will quit completely when you end the simulation.

Quote:
Also, will the movie pathname problem for windows (using unix pathname slashes instead of windows ones), be fixed in version 2.4?

I'm having a bit of trouble with movie exporting on Windows in general, but I'm working on it and do intend to get all the Windows movie export issues worked out before releasing 2.4.

- jon

Breve IDE Command Line Options

The command line version does everything I want, apart from it doesn't export PNG files, because there is no visulation / openGL environment (at least in Windows). Does this differ for linux versions?

Forcing Screen Redraws

Perhaps this should be another thread, although it's all related to the same project. Is there a way to force the screen to redraw. Ideally, I would like to take PNG screenshots from a number of viewpoints. This can be achieved by

controller set-camera-offset to x.
controller save-snapshot to ("$screenshotcounter a.png").
controller set-camera-offset to y.
controller save-snapshot to ("$screenshotcounter b.png").

However, both screen shots are the same. I've tried calling

(controller get-main-camera) disable.
(controller get-main-camera) enable.

but this doesn't force a redraw. Any suggestions? Again, it's windows, although I can use linux if absolutely forced.

Ed

Breve IDE Command Line Options

I recommend you look at the VisionSwarm demo. It shows how to render more than one viewport at the same time.

Using that technique, you can render several viewports to different parts of the "real" viewport, and then save each section to different PNGs (or just save it all as one large image, that's what I'm doing)

Breve IDE Command Line Options

cardinal2k wrote:The command line version does everything I want, apart from it doesn't export PNG files, because there is no visulation / openGL environment (at least in Windows). Does this differ for linux versions?

The "command-line" breve package does include a version with visualization that is launched from the command-line. So there are actually three different breve programs: breveIDE, breve and breve_cli. Only breve_cli lacks the PNG export.

The naming is a bit confusing here because the names breve and breve_cli predate the release of breveIDE.

In any case, the "breve" program should do what you need. Sorry for the confusion!

- jon

Breve IDE Command Line Options

Thanks for all the advice guys. The approach I've decided on is to write a version of the simulation for running without graphical output, for speeds sake, and to archive the endstate to xml. Then I'll reload it with visualisation and take PNG screenshots as necessary. I'll keep you updated on how well this approach works.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.