arnold-usd icon indicating copy to clipboard operation
arnold-usd copied to clipboard

primvars on packed agents

Open martinkindl83 opened this issue 4 years ago • 5 comments

Describe the bug Im very sorry in advance, this will probably by the worst bug report ever. I have zero knowledge of USD, yet i have wound some bug that doesnt exist in Karma and its connected to primvars. If i have primvars on top of packed agents, those primvars are not visible to arnold. Only the primvars inside the packed agents are visible.

To Reproduce 1 Create 4 crowd agents, where primvar TEST is inside each agent and random valued TEST2 is on packed agents.

2 Import to Solaris with sopimport node and enable sourcing all attributes. In my sceneGraphDetails i will see both TEST and TEST2 primvars with values.

3 With Arnold i can get values from TEST, they will all be the same as values i can see when unpacking agents at SOP level. But if i try to access values from TEST2, primvars that are being added on top of packed agents, i will not get any values

Expected behavior In Karma, and thats what i would expect, i can get values TEST2 and use them at shader lever

Used Software Versions

  • Arnold: [6.0.3.0beta14]

martinkindl83 avatar Apr 02 '20 07:04 martinkindl83

See the ticket in HtoA https://trac.solidangle.com/htoa/ticket/1423, to investigate the scene.

jhodgson avatar Apr 03 '20 10:04 jhodgson

I added simple scene that is using houdini agents only, no custom thingy to above link. Trying to load attribute TEST2 which exists on packed agents. Can load them with Karma, cant use them with Arnold

martinkindl83 avatar Apr 06 '20 05:04 martinkindl83

This might be fixed now that #282

sebastienblor avatar Mar 10 '21 20:03 sebastienblor

needs confirmation of the fix

compso avatar Apr 08 '21 09:04 compso

The USER2 attribute is now coming through correctly, being picked up by user data in the scene.

There is a warning in the log related to skinning however, and the crowd animation isn't coming through:

00:00:32 3060MB WARNING | /sopimport1/agentdefinitions/definition_0/shapelibrary/default_geo_skin/mesh_0: varying user-data count wrong! (found 37460 expected 9365) -- disabling user-data 'skel:jointIndices'

jhodgson avatar May 21 '21 08:05 jhodgson

Issue synced internally to ARNOLD-13243