Page MenuHome

Volumetric: Debug Voxel Size

Authored by Jeroen Bakker (jbakker) on Oct 16 2019, 11:02 AM.



When displaying the voxel size for an adaptive domain the resolution of the adaptive domain was used to calculate the world size of the voxel.
This patch changes this to use the initial size of the domain.

Diff Detail

rB Blender

Event Timeline

Same as before. I just added a translation to the voxel indicator so that it stays inside the domain when resizes occur.

Jeroen Bakker (jbakker) planned changes to this revision.Oct 17 2019, 10:03 AM

Yes, just noticed that the matrix needed more changes to work correct.

This revision is now accepted and ready to land.Oct 17 2019, 10:24 AM
Jeroen Bakker (jbakker) requested review of this revision.Oct 17 2019, 11:54 AM

@Clément Foucault (fclem): mind having a second look at this patch :-) I just fixed a related issue T70868 :-)

This revision is now accepted and ready to land.Oct 17 2019, 12:07 PM

You can use DRW_shgroup_uniform_vec3_copy for theses. Might be faster and less error prone.

Jeroen Bakker (jbakker) marked an inline comment as done.Oct 17 2019, 12:13 PM
This revision was automatically updated to reflect the committed changes.