Blender Git Commit Log
Git Commits -> Revision 03e1ec9
Revision 03e1ec9 by Ton Roosendaal (master) September 29, 2005, 13:19 (GMT) |
- Added "anisotropic" rendering for static particle hair strands. This means the diffuse and specular shaders don't use the normal for hair (which is actually undefined, a hair is micro cylinder) but it uses the tangent vector (vector in direction of hair). For Diffuse, it computes a fake normal now, representing the optimal hair normal pointing towards the light. All current builtin shaders work with this, including ramps. For Specular, it uses another formula to remap dot products for all lines that now use the tangent vector instead of the normal: dot = vector * tangent dot = sqrt(1.0 - dot*dot) Gives better results than using the 'fake' normal for diffuse. Officially (according the papers) this could be used for diffuse too, but then hair becomes very flat. Now you can control the flatness easily with ramps or using Oren-Nayer for example. Example image (disappears in some weeks) http://www.blender.org/bf/rt9.jpg - Added new texture channel "Strand" to apply textures on hairs over the length of hair (1 dimensional). Orco now gives 1 fixed coordinate for the entire hair, based on where it starts. Note; UV doesn't work yet. Nor vertexcolor. http://www.blender.org/bf/rt10.jpg |
Commit Details:
Full Hash: 03e1ec988b0b652ae4ecbbbd5b3214740c29f2e8
SVN Revision: 5388
Parent Commit: c4b8a43
Lines Changed: +318, -283
15 Modified Paths:
/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+7, -5) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+7, -5) (Diff)
/source/blender/blenkernel/intern/displist.c (+5, -5) (Diff)
/source/blender/blenkernel/intern/material.c (+3, -1) (Diff)
/source/blender/makesdna/DNA_material_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+4, -1) (Diff)
/source/blender/render/extern/include/render.h (+7, -5) (Diff)
/source/blender/render/extern/include/render_types.h (+3, -2) (Diff)
/source/blender/render/intern/source/rendercore.c (+65, -44) (Diff)
/source/blender/render/intern/source/renderHelp.c (+6, -5) (Diff)
/source/blender/render/intern/source/texture.c (+9, -0) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+168, -184) (Diff)
/source/blender/src/buttons_object.c (+3, -5) (Diff)
/source/blender/src/buttons_shading.c (+20, -15) (Diff)
/source/blender/src/previewrender.c (+8, -5) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+7, -5) (Diff)
/source/blender/blenkernel/intern/displist.c (+5, -5) (Diff)
/source/blender/blenkernel/intern/material.c (+3, -1) (Diff)
/source/blender/makesdna/DNA_material_types.h (+3, -1) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+4, -1) (Diff)
/source/blender/render/extern/include/render.h (+7, -5) (Diff)
/source/blender/render/extern/include/render_types.h (+3, -2) (Diff)
/source/blender/render/intern/source/rendercore.c (+65, -44) (Diff)
/source/blender/render/intern/source/renderHelp.c (+6, -5) (Diff)
/source/blender/render/intern/source/texture.c (+9, -0) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+168, -184) (Diff)
/source/blender/src/buttons_object.c (+3, -5) (Diff)
/source/blender/src/buttons_shading.c (+20, -15) (Diff)
/source/blender/src/previewrender.c (+8, -5) (Diff)