[Sidefx-houdini-list] Shading artifact when really close to surface

Ivan DeWolf ivan at martian-labs.com
Wed Oct 21 14:19:15 EDT 2009


another problem you seem to have is floating point error.
Your are a couple of meters above sea level, but the center of your  
geometry is at the center of the earth, thousands of kilometers away.  
If you move your scene closer to the centroid, you will have fewer  
issues.


To understand a bit about floating point error, put down a"box" sop  
(in an empty scene) and hit space-g and tumble it. Nice and happy.
Now set it's X center to 1000000 and hit space-g
tumble and its all jumpy... and one more zero and tumble and it  
doesn't even look like a cube.....

in a computer, if you a really far from the origin and moving small  
distances, you get floating point errors.

The difference betweeen 1000000.036 and 1000000.037 is very different
from .036 and .037 in the computer....




_______________________________________________________
Perfection is achieved when nothing else can be removed
-Yvon Chouinard

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the Sidefx-houdini-list mailing list