How to use "updateNormals and VertexNormals"?

Blitz3D Forums/Blitz3D Programming/How to use "updateNormals and VertexNormals"?

Happy Sammy(Posted 2006) [#1]
Hi all,

"updateNormals": according to help manual...
Recalculates all normals in a mesh. This is necessary
for correct lighting if you have not set surface normals
using 'VertexNormals' commands


When I do lighting in gile[s], I haven't used these
2 commands. Are they important?

Thanks in advance
Sammy
:)


Beaker(Posted 2006) [#2]
You shouldn't need to use them with models from gile[s].


jfk EO-11110(Posted 2006) [#3]
when you import a model in giles and it's looking really crazy then you should try that. If the shading is looking ok then you don't need to do this in giles.


Happy Sammy(Posted 2006) [#4]
I see.
Is it the fact that some 3d modellers may change
the normals of models? That's why we sometime need to
use these 2 commands?

Sammy
:)


jfk EO-11110(Posted 2006) [#5]
you will need them especially if a modeller saved a mesh without normals, or with bad or wrong normals. Basicly the normals give the orientation of each Triangle in space. based on this information it will be shaded and smoothed. The Normals are calculated and thenstored in the mesh file. They should be stored in every mesh file, but the world isn't perfect, so giles allows to recalculate them.


Happy Sammy(Posted 2006) [#6]
Thank you.

:)