Cycles code internals: add support for mesh voxel grid attributes.
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Sat, 29 Mar 2014 12:03:48 +0000 (13:03 +0100)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Sat, 29 Mar 2014 12:03:48 +0000 (13:03 +0100)
commit27043b8e40f74c8b0917850d1aefbd6315fa46a5
tree26360d0ab051bb94312e40fef974851f3c20f6e0
parent393216a6df934a78f541d98def7a948a89f9b5c8
Cycles code internals: add support for mesh voxel grid attributes.

These are internally stored as a 3D image textures, but accessible like e.g.
UV coordinates though the attribute node and getattribute().

This is convenient for rendering e.g. smoke objects where data like density is
really a property of the mesh, and it avoids having to specify the smoke object
in a texture node, instead the material will work with any smoke domain.
13 files changed:
intern/cycles/kernel/CMakeLists.txt
intern/cycles/kernel/geom/geom.h
intern/cycles/kernel/geom/geom_attribute.h
intern/cycles/kernel/geom/geom_primitive.h
intern/cycles/kernel/geom/geom_volume.h [new file with mode: 0644]
intern/cycles/kernel/kernel_types.h
intern/cycles/kernel/osl/osl_services.cpp
intern/cycles/kernel/svm/svm_attribute.h
intern/cycles/kernel/svm/svm_tex_coord.h
intern/cycles/render/attribute.cpp
intern/cycles/render/attribute.h
intern/cycles/render/mesh.cpp
intern/cycles/render/nodes.cpp