
3. Real-Time Deformation of Subdivision Surfaces on Object Collisions 37
Figure 3.5. Generation of the OBB for voxelization: a new OBB is derived from the
intersecting OBBs of the deformable and the penetrating object.
at least one of the faces is completely outside of the penetrating object OBB. The
voxelization is then performed toward the opposite direction of the face, which is
on the outside. We use either of two kernels to perform the voxelization and fill
the adaptively scaled voxel grid forward or backward, respectively, as shown in
Listing 3.5.
RWByteAddressBuffer g_voxels : register ( u1 );
float4 PS_VoxelizeSolid ( in OutputVertex input ): ...