Blender Git Loki

Git Commits -> Revision c492729

Revision c492729 by Ton Roosendaal (master)
December 8, 2005, 22:05 (GMT)
New feature: "Stress" texture input channel

(As usual movies disappears after while)

Face example showing stress values on a blend. White is stretch, black
is squeeze
http://www.blender.org/bf/0001_0014.avi

Quick test with softbody stretch
http://www.blender.org/bf/0001_0100.avi

Based on the difference of the "Orco" (original undeformed coordinate)
and the actual render coordinate, a stress value is computed to make
textures react to stretching or wrinking skin.

The texture coordinate is neutral (0) on relaxed state. -1 is squeezed
to zero, +1 is stretched to infinity.
Note that scaling (object itself or parent) also will result in
stress values.

The reason for the huge commit is a cleanup in allocating memory for
the vertices. These were growing too large with new options, so now it
allocates the optional coordinates dynamically.
Saves about 20 MB memory per 1M vertices already. But best of all is that
I now can add much more fun... so tangents, here we come!

Commit Details:

Full Hash: c492729b3a0d52ae01ee67e5ad92bdb02f6585df
SVN Revision: 6062
Parent Commit: 13d638c
Lines Changed: +388, -287

14 Modified Paths:

/source/blender/blenkernel/intern/material.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_material_types.h (+1, -0) (Diff)
/source/blender/radiosity/intern/source/radrender.c (+24, -100) (Diff)
/source/blender/render/extern/include/render.h (+10, -1) (Diff)
/source/blender/render/extern/include/render_types.h (+5, -6) (Diff)
/source/blender/render/intern/source/envmap.c (+1, -1) (Diff)
/source/blender/render/intern/source/initrender.c (+5, -3) (Diff)
/source/blender/render/intern/source/rendercore.c (+49, -23) (Diff)
/source/blender/render/intern/source/renderdatabase.c (+145, -25) (Diff)
/source/blender/render/intern/source/renderHelp.c (+1, -1) (Diff)
/source/blender/render/intern/source/texture.c (+9, -0) (Diff)
/source/blender/render/intern/source/zbuf.c (+1, -3) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+131, -119) (Diff)
/source/blender/src/buttons_shading.c (+5, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021