[Bf-blender-cvs] CVS commit: blender/source/blender/blenkernel/intern material.c blender/source/blender/render/extern/include render_types.h blender/source/blender/render/intern/source texture.c blender/source/blender/renderconverter/intern convertBlenderScene.c

Ton Roosendaal ton at blender.org
Mon Jan 5 21:25:07 CET 2004


ton (Ton Roosendaal) 2004/01/05 21:25:07 CET

  Modified files:
    blender/source/blender/blenkernel/intern material.c 
    blender/source/blender/render/extern/include render_types.h 
    blender/source/blender/render/intern/source texture.c 
    blender/source/blender/renderconverter/intern 
                                                  convertBlenderScene.c 
  
  Log:
  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! :)
  
  Revision  Changes    Path
  1.14      +1 -11     blender/source/blender/blenkernel/intern/material.c
  1.13      +3 -3      blender/source/blender/render/extern/include/render_types.h
  1.3       +49 -2     blender/source/blender/render/intern/source/texture.c
  1.26      +117 -108  blender/source/blender/renderconverter/intern/convertBlenderScene.c



More information about the Bf-blender-cvs mailing list