Getting hair implicit uvs in a custom OSL shader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying to access the the implicit uvs of xgen curves exported to .ass from maya from a custom osl shader.
I'm trying to replicate the behavior of the maya ramp node in a custom OSL shader. It provides access to the implicit curve uvs (basically root to tip mapping). I've looked in the docs and found this:
https://support.solidangle.com/display/A5NodeRef/curves
I've exported 1 strand of xgen hair for testing as an ASCII .ass file and I reimported it in maya for testing
1- I don't see the uvs parameter mentioned in the link above in my .ass file.
2- getattribute("uvs", hair_uv); in my shader is returning 0.
3- The maya ramp seems to work regardless of the above.
As a side note: I'm also wondering if there is a shader in KtoA that can replicate the Maya ramp behaviour.
Thanks in advance!