Difference between revisions of "Houdini learning"

From Antoine Vienne | Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
</pre>
 
</pre>
  
=== Substract any VDB ===
+
=== Substract any VDB by another VDB ===
 
<pre>
 
<pre>
 
// In a volumewrangle
 
// In a volumewrangle

Revision as of 18:38, 9 March 2020

Houdini learning

Increase Volume Density

// In a volumewrangle

@density*=10;

Substract any VDB by another VDB

// In a volumewrangle

if (volumesample(1,"surface",@P)<0)@density=0;

//inverse:

if (volumesample(1,"surface",@P)>0)@density=0;