Re: Breve as engine in other apps
jon klein <[email protected]> Sun, 25 Sep 2005 11:45:36 -0400
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
On Sep 24, 2005, at 8:59 PM, Wesley Smith wrote: > Hi, > I've recently found out about Breve and have looked through the source > code a bit. I'm curious if it's possible to use Breve as a simulation > engine within another app. I don't want the gui (this I know is > possible as I saw a command line distro) and I don't really want Breve > to do any rendering for me either. I just want data back and/or > opengl commands that I can then process on my own. This should be possible. You can actually use the command-line distribution program breve_cli.cc as an example of how to setup and iterate the breve engine. No GUI is used in that program, and there's no reason that the same code couldn't be embedded in another application. Passing data back and forth could be done using the plugin API, which would allow you to call steve methods from another applications source, or to allow steve code to call native C/C++ functions. > I imagine the easiest way to integrate Breve into another app would be > to run the simultaneously and send data between the apps using UDP > sockets or something similar. Has anyone tried this? Does anyone > have an idea as to how difficult this would be? breve does have basic support for running over as a webserver, allowing you to use a browser to connect to a running simulation and execute methods. This would be a simple way to interface with a breve simulation (running locally or remotely) without digging in to the breve source. - jon klein _______________________________________________ breve mailing list [email protected] http://lists.spiderland.org/mailman/listinfo/breve