Blender Git Loki

Git Commits -> Revision 1c6e9f6

Revision 1c6e9f6 by Brecht Van Lommel (render25)
April 1, 2010, 20:03 (GMT)
Render Branch: More work on displacement/subdivision.

* Displacement textures are now filtered with derivatives.
* Render subdivision is now a scene level setting, which is automatically
applied to all objects with displacement.
* Subdivision rate is now a scene level setting with per object relative
rates for more/less detail.
* The unsubdivided low resolution mesh for raytracing is now displaced as
well to match the high resolution better.
* Render previews now also do render subdivision.
* All texture coordinates should now work for displacement.

Implementation:
* Change shadeinput uv values to be interpolation weights, simplifies code
and is easier to understand for me.
* Shadeinput texture coordinates and material setup for displacement now
uses same code instead of it's own.
* Autosmooth and displacement are now moved from mesh to general postprocess.
* Autosmooth now uses orco's to stay stable under animation, which avoids
some hacky code to preserve original normals and works for more cases.
* Stress texture coordinates are now supported for nurbs/curves/metaballs too.

Still to do:
* Control over resolution for raytracing/shadows.
* Stitching up grid cracks.
* Smooth derivatives across boundaries.
* Automatic displacement bounds.

Commit Details:

Full Hash: 1c6e9f61f515653073a0d76ca3e1d3e0d68bbf5a
SVN Revision: 27937
Parent Commit: 4c78027
Lines Changed: +693, -650

29 Modified Paths:

/release/scripts/ui/properties_object.py (+4, -16) (Diff)
/release/scripts/ui/properties_render.py (+11, -7) (Diff)
/source/blender/blenkernel/BKE_blender.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/depsgraph.c (+2, -0) (Diff)
/source/blender/blenkernel/intern/object.c (+1, -2) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -1) (Diff)
/source/blender/blenlib/BLI_math_vector.h (+1, -0) (Diff)
/source/blender/blenlib/intern/math_vector.c (+8, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+14, -1) (Diff)
/source/blender/editors/render/render_preview.c (+3, -1) (Diff)
/source/blender/makesdna/DNA_object_types.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+4, -1) (Diff)
/source/blender/makesrna/intern/rna_object.c (+3, -13) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+44, -14) (Diff)
/source/blender/render/extern/include/RE_shader_ext.h (+1, -2) (Diff)
/source/blender/render/intern/include/object.h (+1, -0) (Diff)
/source/blender/render/intern/include/object_mesh.h (+7, -4) (Diff)
/source/blender/render/intern/source/bake.c (+3, -2) (Diff)
/source/blender/render/intern/source/convertblender.c (+1, -23) (Diff)
/source/blender/render/intern/source/diskocclusion.c (+8, -10) (Diff)
/source/blender/render/intern/source/object.c (+2, -0) (Diff)
/source/blender/render/intern/source/object_displace.c (+111, -155) (Diff)
/source/blender/render/intern/source/object_mesh.c (+330, -236) (Diff)
/source/blender/render/intern/source/object_particle.c (+1, -1) (Diff)
/source/blender/render/intern/source/object_subdivide.c (+42, -34) (Diff)
/source/blender/render/intern/source/path.c (+5, -3) (Diff)
/source/blender/render/intern/source/rayshade.c (+8, -5) (Diff)
/source/blender/render/intern/source/shadeinput.c (+71, -111) (Diff)
/source/blender/render/intern/source/texture_stack.c (+2, -4) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021