Particle System and Shader problem?
by Jackie Hayes · in Torque Game Engine Advanced · 10/30/2007 (9:49 am) · 2 replies
Is there a way to see particles, like smoke, through a refracting shader?
example... useing the BLOB and CHIMNEYFIRE examples.
If you position the BLOB in front of you and position the CHIMNEYFIRE behind the BLOB the smoke particles are not seen through the BLOB untill they rise above it. You get the same effect if you use Precipitation or even another BLOB.
I am new to shaders and just trying to understand how they work...
Thanks for any help!
example... useing the BLOB and CHIMNEYFIRE examples.
If you position the BLOB in front of you and position the CHIMNEYFIRE behind the BLOB the smoke particles are not seen through the BLOB untill they rise above it. You get the same effect if you use Precipitation or even another BLOB.
I am new to shaders and just trying to understand how they work...
Thanks for any help!
#2
It's not that important for me to do this. I was just trying to follow the logic and try and understand why it was doing it. I really do appreciate the quick response.
Thanks...again...
10/30/2007 (11:37 am)
Hey...Thanks Marc! It's not that important for me to do this. I was just trying to follow the logic and try and understand why it was doing it. I really do appreciate the quick response.
Thanks...again...
Torque 3D Owner Marc Dreamora Schaerer
Gayasoft
You have to change the rendering order in the renderInstMgr.h
right now refract rendering is done before particles. You would need to make sure particles are rendered before.
But be aware that the general performance will decrease due to it.