physx fluid working, need ideas for rendering. video included
by deepscratch · in Torque 3D Professional · 12/31/2010 (10:39 am) · 5 replies
hi all,
so I expanded the PxFluid so that it actually works.
problem is the rendering.
20000 cubes seems a bit much for T3D to render??
anyway, I thought to maybe render triangles, or discs(one face instead of six), and that where I get stuck. I dont know how.
also, there is a glitch, when the camerea is at some angles, the fluid stops rendering, culling issue? I dont know.
anyone game enough to help out on this??
so I expanded the PxFluid so that it actually works.
problem is the rendering.
20000 cubes seems a bit much for T3D to render??
anyway, I thought to maybe render triangles, or discs(one face instead of six), and that where I get stuck. I dont know how.
also, there is a glitch, when the camerea is at some angles, the fluid stops rendering, culling issue? I dont know.
anyone game enough to help out on this??
About the author
email me at medan121@gmail.com
Recent Threads
#2
I've gotten the fluid to render a texture instead of the cubes,
and the performance has tripled!
plus, its starting to look more like real fluid.
still some problems though;
1; it still culls at certain angles (see in the video).
2; I cant find how to align the textures to the terrain, or any object, for that matter, as shown in the images, it looks good from one side, but terrible from the other.
any ideas or suggestions with these issues?
I am using a modified supplied pxFluid.cpp, if that helps any.
the good



the bad

and the ugly

see the problem with the orientation of the textures?
sorry if its a bit dark, I had HDR on.
thanks
12/31/2010 (7:21 pm)
ok then,I've gotten the fluid to render a texture instead of the cubes,
and the performance has tripled!
plus, its starting to look more like real fluid.
still some problems though;
1; it still culls at certain angles (see in the video).
2; I cant find how to align the textures to the terrain, or any object, for that matter, as shown in the images, it looks good from one side, but terrible from the other.
any ideas or suggestions with these issues?
I am using a modified supplied pxFluid.cpp, if that helps any.
the good



the bad

and the ugly

see the problem with the orientation of the textures?
sorry if its a bit dark, I had HDR on.
thanks
#3
01/01/2011 (3:18 am)
Maybe make them billboards?
#4
how??
EDIT:
right, got them to billboard, and it sorts out the clipping too,
it still needs some work, I'm trying now to align them in Z,
which I believe will give quite an acceptable simulation.
01/01/2011 (9:22 am)
yes!!how??
EDIT:
right, got them to billboard, and it sorts out the clipping too,
it still needs some work, I'm trying now to align them in Z,
which I believe will give quite an acceptable simulation.
#5
or are you using a new gfxdrawutil ?
01/01/2011 (3:56 pm)
models: "BB" billboard "BBZ" zbillboard..or are you using a new gfxdrawutil ?
Associate Steve Acaster
[YorkshireRifles.com]