Blender Git Loki

Git Commits -> Revision 59dad6a

Revision 59dad6a by Ton Roosendaal (master)
May 29, 2004, 16:14 (GMT)
Recoded the methods how normals get corrected and flipped during render
conversion. Old method tried to solve it per object, detecting a flipped
matrix. Since we have displacemapping and raytracing this is too inaccurate.
Also, flipping normals should alsways result i correct flipped vertex-
normals too.

Solution is to completely recalcuate the 'puno' (vertex normal) flags in
renderHelp.c now (set_normal_flags). The face normals themselves are not
flipped until that stage.

Second major improvement involves the calculation of correct splitted
triangles, when a quad is not flat. It now creates triangles based on the
vertex normals, which have actual information on surrounding geometry, thus
resulting in much smoother results.
Without this you get errors in ray-shadow, with light shining almost
parallel to a face. But again, displacement mapping improves with it too.

Third fix is that by removing normal flipping from displace code the result
is much better now.

Commit Details:

Full Hash: 59dad6aefc950443cbe18c39b662de912b6fb3e0
SVN Revision: 2600
Parent Commit: 993a89e
Lines Changed: +43, -126

2 Modified Paths:

/source/blender/render/intern/source/renderHelp.c (+16, -15) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+27, -111) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021