Search - User list
Full Version: Modify packedlocaltransform (prim intrinsic) ?
Root » Technical Discussion » Modify packedlocaltransform (prim intrinsic) ?
olivierth
Hi!

I'm using the wParallax osl shader to fake 3D rooms inside of buildings. When I import the building with an alembic sop and apply the shader, it all works. If I unpack, or even re-pack the building, the wParallax shader only looks good when my camera faces the world negative Z direction. in any other direction, It becomes mostly black.

I noticed the primitive intrinsic packedlocaltranform on the alembic sop has lots of different values. When I unpack and re-pack, all values are set to the default matrix values.

So, I wanted change those values to what they were before but it's greyed out (meaning I cant change it).

What to do?
Heileif
You can set it with vex using setprimintrinsic.

If you search setprimintrinsic in Google AI-mode, you get a example code of how it works.

You maybe need to do a inverse transform of the points first tough before the repack, or you get a double transform.

Probably a better way to do it. The inverse part can be annoying.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB