|
![](/i/fill.gif) |
> I added support for smooth triangles but you
> have to provide all the formulae for the normal computatiom, so I'll be
> looking at a way to fix that, any suggestions would be appreciated.
If you have the formula for the object, the normal at a given point <x,y,z>
is
(<func(x+small_val,y,z),func(x,y+small_val,z),func(x,y,z+small_val)> -
<func(x,y,z),func(x,y,z),func(x,y,z)>) / small_val
Taken from memory, I might have screwed that up. It's basically just the
gradient of the function.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
![](/i/fill.gif) |