Game Development Community

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


#1
12/31/2010 (11:49 am)
Cool stuff, or maybe I should say wet ...
#2
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
img507.imageshack.us/img507/2302/fluidtop1.jpg

img195.imageshack.us/img195/2534/fluidsidegood2.jpg

img227.imageshack.us/img227/1660/fluidsidegood1.jpg


the bad
img412.imageshack.us/img412/7691/fluidsidebad2.jpg


and the ugly
img440.imageshack.us/img440/881/fluidsidebad1.jpg

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
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
01/01/2011 (3:56 pm)
models: "BB" billboard "BBZ" zbillboard..
or are you using a new gfxdrawutil ?