Jump to content

Houdini Transforming Alembic Instances Exporting to .ass


Recommended Posts

Found an annoying problem recently in regards to rendering .ass files with instanced packed alembics. 


So the basic set up is packed alembic geometries being sent through a "Copy to Points" sop and are packed and instanced. These are then being manipulated a bit, and then being sent through an Arnold ROP to export a .ass file. These .ass files are then being sent to Maya to render and they have rendered great.
The issue I have discovered is after I pack and instance my packed alembics. I added a little processing to the "transform" prim intrinsic to give the instances a little rotation and scale the instance from 0 to 1. Rotating the instances through the "transform" prim intrinsic works great and renders fine. However, scaling the "transform" prim intrinsic matrix causes the render to send the instances to go all over the place randomly. The Houdini viewport shows the instances scaling correctly, but after exporting the .ass and rendering in Maya the instances go all over the place randomly. 

This is all I am doing to scale the instances. f@grow is just an animated attribute to drive the scaling of the instances.

matrix3 transform = primintrinsic(0,"transform",@primnum);

matrix3 scaleMatrix = ident();

scale(scaleMatrix,set(f@grow,f@grow,f@grow));

setprimintrinsic(0,"transform",@primnum,transform*scaleMatrix);

Does anyone have any experience with this? I cant upload a file just yet because its a work thing, but its possible I can recreate it. This is really driving me crazy so any suggestions would be great to just try something fresh!

Edited by Grezzybear
Added Transforming to title
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...