Trueform
by Martin Edmaier · in Torque Game Engine · 08/01/2002 (9:06 am) · 4 replies
I want to use Trueform for my models. Is it possible with the torque engine. If not where can I get the source code to integrate it.
Thankx,
M.E
Thankx,
M.E
About the author
#2
08/27/2002 (7:18 am)
Go to ATI's website and grab their sample code. It's very simple to integrate this yourself.
#3
You just need to build your models properly so that tris that share edges but not normals have degenerate tris between them to fill in the gaps. An enterprising coder could add the gap-filling system inline into the loading code when Truform is active, I just never had the chance.
Good luck!
d
08/27/2002 (7:51 pm)
Torque has basic truform support in, you just have to activate it (there's a flag in one of the ini files -- shouldn't be hard to find).You just need to build your models properly so that tris that share edges but not normals have degenerate tris between them to fill in the gaps. An enterprising coder could add the gap-filling system inline into the loading code when Truform is active, I just never had the chance.
Good luck!
d
#4
setNPatch(bool, int)
-Used to enable Npatching (quadratic Interpolation) at specified level
example: setNPatch(1, 1);
increase the Npatch LOD
increaseNPatch();
decrease the Npatch LOD
decreaseNPatch();
Used to toggle the state of Npatch
toggleNPatch();
09/18/2002 (2:32 am)
I found the Console Commands to activate Trueform in the Torque. setNPatch(bool, int)
-Used to enable Npatching (quadratic Interpolation) at specified level
example: setNPatch(1, 1);
increase the Npatch LOD
increaseNPatch();
decrease the Npatch LOD
decreaseNPatch();
Used to toggle the state of Npatch
toggleNPatch();
Torque Owner Bendik Stang
:)