Access vertex maps inside .ass procedural

Access vertex maps inside .ass procedural

Anonymous
Not applicable
374 Views
2 Replies
Message 1 of 3

Access vertex maps inside .ass procedural

Anonymous
Not applicable

I've exported geometry with vertex maps as .ass and need to access the tags after loading them in as a procedural for shading. Can't find how that works.

0 Likes
375 Views
2 Replies
Replies (2)
Message 2 of 3

Stephen.Blair
Community Manager
Community Manager

vertex maps would be user data

if you check the ass file, there should be a line that starts with "declare" and then the name of the vertex map.

declare my_vertex_map

So you would use a user data shader to get that



// Stephen Blair
// Arnold Renderer Support
0 Likes
Message 3 of 3

peter.horvath6V6K3
Advisor
Advisor

Exactly, it's exported as user data parameter. The parameter has the vmap prefix, so it's something like:

 declare vmap_my_vertex_map varying FLOAT
 vmap_my_vertex_map 114 1 b85FLOAT 

Use that name (vmap_my_vertex_map) in a user_data shader, as Stephen said.

0 Likes