Particles Question

View previous topic View next topic Go down

Particles Question

Post  Muller on Fri Oct 16, 2009 3:07 am

Howdy!

Here's the requirement:
I'm trying to render a decent looking water effect. Only this isn't a pool of water, but rather a stream of water, dripping from the top of the screen. The stream will be interrupted by ramps and fans and wheels and all sorts of stuff, but basically it will stream down and sometimes go left and right, until it hits the bottom of the screen and vanishes...

Here's the plan:
I'll have an array of vec2, where each vec2 is the location of an invisible Bullet rigid body, basically. These rigid bodies interact with static objects in the screen (the ramps and fans and wheels), and such the location of the rigid bodies will change. These rigid bodies represent "links" in my "water".

Now what I want to do is render static particles on and between these vec2 locations. The number and density of both the links in my water chain, and the water particles will be determined by performance. Basically the particle won't need to move, I just destroy and create them according to the movement of the vec2 locations. I won't need to apply movement or physics or collision detection on the particles, only the water link chains / the vec2 locations.

Here's the question:
a) How would you accomplish this? 1 emitter and a fancy particle placement system, or several emitters? Or would you just do this outside of SIO2's system, manually creating the particles without emitters?
b) Does the plan sound sensible? Would you accomplish this differently?

Muller

Posts : 11
Join date : 2009-05-26

View user profile

Back to top Go down

Re: Particles Question

Post  sio2interactive on Fri Oct 16, 2009 3:54 am

You need fluid physic Wink

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Particles Question

Post  Muller on Fri Oct 16, 2009 4:21 am

Does Bullet offer fluid physics? If not, do you know where I should start looking?

Muller

Posts : 11
Join date : 2009-05-26

View user profile

Back to top Go down

Re: Particles Question

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum