backspaces
Junior Member
Offline
Posts: 66
Re: Python Integration
Reply #2 - Mar 24th , 2006, 1:19am
> I'm not quite sure what you're suggesting. You want to use Python > and send the data to Processing for rendering? Why not use Python > itself and the multitude of graphics libraries there are for it to > render your stuff? I think I'm a bit confused. > How does Blender factor into it?? Our group tends to use a "pipeline" approach, several independent programs used in a synergistic way, just like, for example, the Unix shell lets you use several independent programs (sed, grep, awk, etc) in a constructive way. Recently we've been pursuing more sophisticated graphics. Our work is in simulation, statistical analysis and visualization. We generally use NetLogo for initial work, and then use some additional environment for analysis (R, Excel, Octave) and visualization the resulting simulation runs (Quicktime for movie capture, LandSerf for "draping" the 2D images over DEM GIS elevation files, and Blender for adding visuals like fire and flying over the simulation landscape). In a current wildfire and evacuation simulation, we are using Python for the agent based evacuation model (ABM) running on top of the road GIS shape files for Santa Fe NM. But the difficulty is that when this is slurped into blender, it does not do fast simple visualization of the ABM. We can get 1000 cars zipping along at 20 fps in Processing, but .3 or so in blender. (Note: We use an on-line blender render farm for nice high quality rendering .. but the simple fast rendering just is not the goal of blender. We're looking into the game engine, but haven't cracked that nut yet.) None the less, we'd like the Python ABM to be independent, but to be able to see the results visually, without going to the final visualization environment, blender. We have not really found good Python graphics, but we're not all that hip to Python, so any pointers much appreciated! So this made us think of Processing. Jython could be used to let us "drive" Processing from the Python code, but we've found some difficulties with the version differences .. Jython is several major releases back from CPython. We have used, in the past, nifty stunts with Java where a servlet talks to PHP talks to Flash .. a loose collection of servers. Worked great! Fast and wonderful for splitting up the task into environments well suited to their specialty. This got us thinking about a "Processing Server" .. basically a way for *any* programming language to use Processing, by figuring out a reasonable server protocol for the Processing API. As I say, this sounds kinda nuts, but boy would it be cool if Python, Ruby, etc could have a nice Processing environment for 2D/3D display. Does this clarify what we're up to? Owen