Blender Git Loki

Git Commits -> Revision 1170f5f

Revision 1170f5f by Ton Roosendaal (master)
January 5, 2004, 20:25 (GMT)
Displacement map

- changed code to make use of actual textures, not the hackish
'externtex', which is only for tools
- added a 'displacement' vector in ShadeInput, and moved calculation of
displacement vector to texture.c itself. So it works with stencil, but
also for options as 'add', 'mult' and 'sub'.
- for RGB textures it uses the brightness value of color for displace
- for stucci, and plugin textures returning a normal, it uses that

- Also: wrote call in end of preparing renderfaces, to split non-flat
quad faces in triangles. gives a lot fewer errors in displace textures,
but also raytracing irregular subsurfs goes better now.

- texture mapping that works for displace: orco, sticky, global, obj, normal.
UV not yet. Reflection-displace? uhh! :)

Commit Details:

Full Hash: 1170f5f6ed0dff4bc43380efa72cf39d46c80603
SVN Revision: 1837
Parent Commit: f78c047
Lines Changed: +165, -119

4 Modified Paths:

/source/blender/blenkernel/intern/material.c (+0, -10) (Diff)
/source/blender/render/extern/include/render_types.h (+1, -1) (Diff)
/source/blender/render/intern/source/texture.c (+48, -1) (Diff)
/source/blender/renderconverter/intern/convertBlenderScene.c (+116, -107) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021