[DOC-12587] Position pass not rendering correctly

I’m trying to extract a position pass on a deforming mesh to be used in Nuke, without sucess.

I have an alembic animated mesh » unpacked » created rest from static mesh + animated mesh. Tried using pointReference from texSampler (saved as 32 bit lossless), imported in Nuke but the position isn’t using the rest, aka, it’s not sticking in place.
Tried using point / pointObject / pointCamera, without success. Tried packing the geo, same result.

Am i doing something wrong? The comper is manually placing the position pass right now, but ideally this should be fixed asap.

Can someone help me out? I can’t send a scene, it’s heavy.

I was not able to generate successful position pass that sticks to the geo for this use case, but we are also required to do so. The best idea is to bring the geo into substance painter and bake position to texture. Alternatively you can bake position into vertex color, then it will also work.

I see, problem is that i’m dealing with animals and fur hehe… Rendering a deep pass is the only solution right now. Why this pass doesn’t work in Houdini i don’t know, used to work in Maya and max

I’m getting my main fx td to look into it and we have some promising info for you. I’ll confirm with him tomorrow, but there is a way you can just create a rest attribute from static mesh copy it to deforming mesh and pass that into render aov (not sampled by sampler info). It worked a simple test for us, but I’ll get back to you.

That would be really helpful, let me know if you can share how it’s done.

After a few hours tinkering with this, it’s not bugged, but it’s not documented anywhere how this should work. It’s working both with animated geo and animated hair (tested in Nuke). So here it is:

Use pointReference » extraTex » force32 bit and lossless output

​

create a rest position for every geo node you want to sample. freeze the first frame as reference

​

Here’s one of the tricks

Set geometry type to Dynamic. The default “Default” does NOT work with rest.

​

Second trick, when sampling hair, be sure to NOT overwrite the W Coord on the rest attribute created for the hair.

​

That’s it. When using P_Matte in Nuke it works perfectly.

Those are great points specifically for hair, would be good to have Chaos add those to their help/manual!

same here in Maya, I believe we have had to create a texture reference object to get this to work. Last resort being baking :slight_smile:

There seems to be a bug with attributes in vray. Check the attached zip it has an mp4 inside showing the issue. If i don’t force the rest attribute, it’s not read by vray. but if i activate it and force rest, it works fine. What’s weird is that if i deactivate it after it still works.

Also this forced attribute parameter doesn’t exist in Solaris, so there’s no way for the point position to work at ALL in Solaris, making it not viable for production for us. Can a dev please have a look? @Gosho.Genchev
vray_rest.zip (5.45 MB)