SteamVR

SteamVR

SteamVR Workshop
Customize your SteamVR experience by finding new backgrounds, 3D environments, controllers and base station models.
Learn More
Mantas T 1 19 Mar, 2020 @ 6:30am
particles for water and candle flame.. or any better solution?
Hello. So i want to build candle flame.
When you take a candle and move it the flame has to be afected by the motion.
I would assume one would build a particle system here, right?
I would suppose someone has already build that can someone point me to some flames?


Next i would like to make liquid poring from a tea pot. does that exist? i suppose i need some colission
for particles to be contained in a 3d model?
Also i would like to make a situation where i can spill water from teapot to say a cup. I would imagine that's
not possible, but could i somehow just make it so that then particles from a teapot
touch a trigger box on a cup, we enable another particle system that already exist in a tea cup...
how would i go on doing this?
< >
Showing 1-2 of 2 comments
Rectus 13 19 Mar, 2020 @ 9:08am 
For the flame you would need a particle system. The particle editor has very limited documentation though.

I have a simple flame particle here, although it does not move with its parent:
https://github.com/Rectus/destinations_range/tree/master/beach/particles

There are a lot more examples available here, including fuse particles that do move with their parents:
https://github.com/Rectus/destinations_range/tree/master/range/particles


If you want liquid pouring physics, that would be a tricky thing to implement. Particles can do tracing and collisions, but that would only be useful for the visual effects part of where to point the stream and spawn the splash.

I've thought a bit before on if it would be possible to do a system like that, and I think it would be possible to make at least a very simple one using VScript to calculate when the teapot is tilted (or a cup overflows) and where to spawn the particles. When it does you would have to trace down to see if it hits another container, and start filling it. While it might be possible to use particles for the liquid in the containers, it might be better to make a a model with an animated plane of liquid inside, and control that plane with pose parametrs.

All in all that would take a lot of reseeach effort and skill to set up, and with the limited scripting interface available, it would likely be very glitchy.
Last edited by Rectus; 19 Mar, 2020 @ 9:11am
Mantas T 1 19 Mar, 2020 @ 9:17am 
thanks for your input. i will try out the flames. for water it seems ill go back to drawing board and change my scenario :)
< >
Showing 1-2 of 2 comments
Per page: 1530 50