Showing posts with label OF. Show all posts
Showing posts with label OF. Show all posts

Sunday, August 11, 2013

Psys demo 2: Location Emitter and Mesh Emission

So i fiddled around a bit more with the idea of having attributes but decided against it.
It added a lot of complexity and work-arounds into the mix and seemed like an overkill
for now.


Here's another video showing a comparison between location emitters and Mesh emissions.

Psys: demo 2: Location Emitter and Mesh Emitters from bhavesh pandey on Vimeo.


So for now I have decided to focus more efforts on implementing Ray-Triangle intersection
routines for the particles and hopefully implementing an accelerated data structure for fast neighbour
lookups (but nothing too elaborate).
Maybe another weekend.




Saturday, August 10, 2013

Psys demo 1: AABB

Ok, so I have added a kill() routine as well as another routine to compute an
Axis Aligned Bounding Box for the Particle system along with another routine to
draw this AABB.

Psys demo 1: AABB from bhavesh pandey on Vimeo.

Now, I would quite like to implement 2 more things into this.
1) Ray / Intersection capabilities akin to Houdini's Ray SOP for basic collision detection etc.
2) An accelerated data structure for fast neighbour lookups.

After this I'm pretty sure I'll have most of the things I'll need for the time ( :D )
I would like to spend some  time cleaning the code and then profiling + optimising it further
along with some other projects I have in mind.

Will post another update later..

Ciao.

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.....