Showing posts with label Scripting. Show all posts
Showing posts with label Scripting. Show all posts

Tuesday, August 17, 2010

particles using OpenFrameworks






Hey....so I was just fiddling with openFrameworks and finally I have something crappy which I could put
up online :D
This is just a rough test of a very basic Particle system, I did just to make myself comfortable with programming using OpenFrameworks....
Total number of particles = 50000..
Ok, i did work quite a bit to get something as crappy as this....so be warned of how crappy it could have been
had I put in my 100% of crappyness :P
Yea..I get it..I got a real bad sense of tumor....errrr humor....or so I have been told..anyways..

I found it very much analogous to working with Houdini..
Houdini ==> Create an Emitter, Set the Parameters for Particles.. ie. Life, color, spee, position etc..
and then copy spheres or circles to those Points....simple :)

OpenFrameworks ==> Create a Emitter Class, a Particle class....initialize and set the values of variables used.....write a main() funtion to start the application..thats about it....I had position data in an array....so finally i just created circles using the x,y position data at draw time....(which is analogous to copying circles to points!)

before amnesia kicks in allow me to put some images....(video would have been cooler...but screencapture's not working..)

finally I managed to get OpenFrameworks to write out each frame to an image sequence before drawing anything....I then stitched them together using ffmpeg..
here's it goes :)


I think if I could come up with some nice interactivity using OpenFrameworks with Houdini, it would be pure awesomeness!

gotta test more.....

Saturday, August 14, 2010

volumetric ramblings....!!

Its been so long since i published my last post....i have a feeling i've forgotten how to type..
which is well reflected in my degraded sense of humour :D

Well nothing much to put up as of now....been scripting and experienting with different stuff..
just started dabbling with OpenFrameworks and already loving it..I hope i'll be able to put up something better and more entertaining next time :)

I have been thinking about writing/implementing Fluid solvers, crowd simulations etc for some time now..and i believe soon i shall have enough confidence to take up the challenge head on..

Work has been keeping me super busy ;) so dont really have nice renders with me....what i do have are some flipbooks and stuff...speaking of which..i recall..






i wrote a Houdini python SOP for reading Volume data stored in binary format..and since I have nothing else to put up right now..i guess i'll publish it..
I would also like to implement the same using the HDK..

At the moment, i'm trying to focus on OpenFrameworks....so here i go back to my linux box..
until next time..