[Bf-blender-cvs] CVS commit: blender/source/blender/renderconverter/intern convertBlenderScene.c blender/source/blender/render/intern/source renderHelp.c
Ton Roosendaal
ton at blender.org
Sat May 29 18:14:35 CEST 2004
ton (Ton Roosendaal) 2004/05/29 18:14:34 CEST
Modified files:
blender/source/blender/renderconverter/intern
convertBlenderScene.c
blender/source/blender/render/intern/source renderHelp.c
Log:
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.
Revision Changes Path
1.66 +28 -112 blender/source/blender/renderconverter/intern/convertBlenderScene.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/renderconverter/intern/convertBlenderScene.c.diff?r1=1.65&r2=1.66&cvsroot=bf-blender>
1.7 +17 -16 blender/source/blender/render/intern/source/renderHelp.c
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/render/intern/source/renderHelp.c.diff?r1=1.6&r2=1.7&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list