Difference between revisions of "Houdini learning"

From Antoine Vienne | Wiki
Jump to navigation Jump to search
Line 4: Line 4:
 
// In a volumewrangle
 
// In a volumewrangle
  
@density*=10;
+
@density *= 10;
  
 
</pre>
 
</pre>
Line 31: Line 31:
 
centroid(opinputpath('.',0),D_Y)
 
centroid(opinputpath('.',0),D_Y)
 
centroid(opinputpath('.',0),D_Z)
 
centroid(opinputpath('.',0),D_Z)
 +
 +
</pre>
 +
 +
=== UVs ===
 +
<pre>
 +
// In this order : uvautoseam - uvflatten - uvlayout
 +
In uvflatten : Seams = seams
  
 
</pre>
 
</pre>

Revision as of 00:48, 27 July 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;

Get bound & centroid

// In a null object

bbox(opinputpath('.',0),D_XSIZE)
bbox(opinputpath('.',0),D_YSIZE)
bbox(opinputpath('.',0),D_ZSIZE)

centroid(opinputpath('.',0),D_X)
centroid(opinputpath('.',0),D_Y)
centroid(opinputpath('.',0),D_Z)

UVs

// In this order : uvautoseam - uvflatten - uvlayout
In uvflatten : Seams = seams