Volume Display and transformation matrices

Volume Display and transformation matrices

kresimir2
Contributor Contributor
212 Views
0 Replies
Message 1 of 1

Volume Display and transformation matrices

kresimir2
Contributor
Contributor

Hello!

It seems we've found one potential issue with the Volume API.

 

Our FumeFX uses UpdatePerNodeItems to display different voxel grids, geometry etc.. which are all set to display in world space.

Thus, we set the node display tm to identity.

 

Matrix44 m;

m.MakeIdentity();

nodeContext.GetRenderNode().SetWorldMatrix(m);

 

 

This works well with all other object instead of volumes – actually volume bounding boxes.

mVolumeDisplayParams.mNodeTM and mObjectTM are used to transform voxels display and they are properly positioned in the world space.

However, the bounding box is not transformed so we get clipping as the mNodeTm and mObjectTM are set to identity.

 

In short, those matrices are used to transform voxel positions but not bounding box.

 

For a test, we’ve set nodeContext.GetRenderNode().SetWorldMatrix(m); to the TM of the voxel grid and the grid was no longer clipped, but that's not an option here.

 

Maybe we got something wrong here?


Thank you!

 

 

 

0 Likes
213 Views
0 Replies
Replies (0)