[Bf-blender-cvs] CVS commit: blender/source/blender/makesdna DNA_lamp_types.h blender/source/blender/render/intern/include render_types.h blender/source/blender/render/intern/source convertblender.c shadbuf.c zbuf.c blender/source/blender/src buttons_shading.c

Ton Roosendaal ton at blender.org
Thu Aug 31 12:36:46 CEST 2006


ton (Ton Roosendaal) 2006/08/31 12:36:46 CEST

  Modified files:
    blender/source/blender/makesdna DNA_lamp_types.h 
    blender/source/blender/render/intern/include render_types.h 
    blender/source/blender/render/intern/source convertblender.c 
                                                shadbuf.c zbuf.c 
    blender/source/blender/src buttons_shading.c 
  
  Log:
  Render feature request:
  
  Auto-clip Lamp Buffer
  
  Setting a good range for clipping start/end for Lamp buffers is important
  for good quality shadow (depth details). That can be quite a hassle, when
  many lamps or animated objects are involved.
  
  This option allows to have the clipping range calculated based on the
  visible vertices in the spotbundle. For clip start and clip end it can
  be set individually. Typically the clip start defines quality most.
  
  The shadow buffer 'bias' value is corrected for this automatic clipping
  too, to ensure that ranges that differ give same biasing appearance.
  (If this wasn't done, you would see lighted areas become darker or
  lighter, or even artefacts, when the range changes suddenly
  
  NOTE: since it only checks for vertices, be aware that large planes can
  give errors.
  
  Implementation note: zbuffer values are non-linear (1/z) because that
  allows linear interpolation while filling scanlines. That's the main
  reason for the precision to be highest close to the eye (or lamp).
  It's even a useful feature, since you want details to be precise
  when they're closeby.
  Since these values are also in the -1 to 1 range, using floats here
  wouldn't solve problems a lot. Maybe trying a 64 bits Z once might
  be an interesting coding job.
  
  Revision  Changes    Path
  1.16      +6 -2      blender/source/blender/makesdna/DNA_lamp_types.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/makesdna/DNA_lamp_types.h.diff?r1=1.15&r2=1.16&cvsroot=bf-blender>
  1.17      +3 -1      blender/source/blender/render/intern/include/render_types.h
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/render/intern/include/render_types.h.diff?r1=1.16&r2=1.17&cvsroot=bf-blender>
  1.54      +4 -7      blender/source/blender/render/intern/source/convertblender.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/render/intern/source/convertblender.c.diff?r1=1.53&r2=1.54&cvsroot=bf-blender>
  1.20      +95 -2     blender/source/blender/render/intern/source/shadbuf.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/render/intern/source/shadbuf.c.diff?r1=1.19&r2=1.20&cvsroot=bf-blender>
  1.64      +3 -2      blender/source/blender/render/intern/source/zbuf.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/render/intern/source/zbuf.c.diff?r1=1.63&r2=1.64&cvsroot=bf-blender>
  1.209     +21 -10    blender/source/blender/src/buttons_shading.c
    <http://projects.blender.org/viewcvs/viewcvs.cgi/blender/source/blender/src/buttons_shading.c.diff?r1=1.208&r2=1.209&cvsroot=bf-blender>



More information about the Bf-blender-cvs mailing list