Unity-Technologies / com.unity.demoteam.digital-human

Library of tech features used to realize the digital human from 'The Heretic' and 'Enemies'.
Other
518 stars 91 forks source link

Mesh attachments working, but transform attachments don't if using GPU #12

Open pauldrummond opened 1 year ago

pauldrummond commented 1 year ago

We're using SkinAttachments with AttachmentType of Mesh without any problems, but SkinAttachments with AttachmentType of Transform simply won't work. We'd like to use these empty transforms to drive occlusion markers for eyes, as in the Enemies demo, but the attached transforms don't move. Are we missing something?

Mesh attachment updates with target: Screenshot 2023-07-14 at 4 37 50 pm

Transform attachment does not update position with target: Screenshot 2023-07-14 at 4 38 00 pm

Skin Attachment settings: Screenshot 2023-07-14 at 4 38 20 pm

pauldrummond commented 1 year ago

Transform attachments don't seem to work if the Skin Attachment Target is using the GPU option. I tested this in the Digital Human Sample package and the eye occlusion markers work until Execute On GPU = true. Is there any way to get Transform attachments working with the GPU option?

The Readback Transform positions options looks like it might be helpful but it just generates NaN errors.