multiple uv sets from maya to houdini
3012 5 1- shadyellaithy
- Member
- 3 posts
- Joined: 5月 2022
- Offline
hello all , i have a model with 2 uv sets , one for fur and other for texture , when i export to Houdini , it only read the texture uv m how can i make it jump between the 2 uv sets ? is there a attribute wrangler , when i export from maya i tick on the write uv wets and write uv , am i missing something in exporting from maya ?
thanks all
thanks all
- GlenD
- Member
- 118 posts
- Joined: 12月 2013
- Offline
- shadyellaithy
- Member
- 3 posts
- Joined: 5月 2022
- Offline
- tamte
- Member
- 8833 posts
- Joined: 7月 2007
- Offline
that menu shows only 2 types of attributes
- attributes named uv, uv1, uv2, ...
- attributes with arbitrary name marked as "Texture Coordinate"
so first thing to do is to have a look what attributes your geo has (MMB on the node)
you may see something like this
if you see your custom uv attribute, in this example it's a vertex attribute myCustomUV then all you need to do is make sure it's marked as "Texture Coord" which will appear as (Tex) next to the name like uv attrib has in screenshot
to do that you can either do Attrib Create SOP (match the name, type, size, set to Texture Coordinate) and uncheck Write Values
(in case your attribute is point attribute instead of vertex, or if the size is float 2 instead 3, then adjust accordingly):
or alternatively you can do Attrib Wrangle in Detail mode:
and then you should see (Tex) next to your attribute and also it should appear in the UV view:
- attributes named uv, uv1, uv2, ...
- attributes with arbitrary name marked as "Texture Coordinate"
so first thing to do is to have a look what attributes your geo has (MMB on the node)
you may see something like this
if you see your custom uv attribute, in this example it's a vertex attribute myCustomUV then all you need to do is make sure it's marked as "Texture Coord" which will appear as (Tex) next to the name like uv attrib has in screenshot
to do that you can either do Attrib Create SOP (match the name, type, size, set to Texture Coordinate) and uncheck Write Values
(in case your attribute is point attribute instead of vertex, or if the size is float 2 instead 3, then adjust accordingly):
or alternatively you can do Attrib Wrangle in Detail mode:
setattribtypeinfo(0, "vertex", "myCustomUV", "texturecoord");
and then you should see (Tex) next to your attribute and also it should appear in the UV view:
Edited by tamte - 2023年7月31日 05:38:14
Tomas Slancik
FX Supervisor
Method Studios, NY
FX Supervisor
Method Studios, NY
- shadyellaithy
- Member
- 3 posts
- Joined: 5月 2022
- Offline
helloo tamte
thanks for the replay , the issue is that i cannot find from my imported file the secound uv set on my geo , so i guess something missing while i export my maya file , i dont know what is the step , it always read my first uv set not the secound one , and i am sure i checked the uvset option in the maya export for the usd file
thanks for the replay , the issue is that i cannot find from my imported file the secound uv set on my geo , so i guess something missing while i export my maya file , i dont know what is the step , it always read my first uv set not the secound one , and i am sure i checked the uvset option in the maya export for the usd file
- DaiXiaonan
- Member
- 3 posts
- Joined: 9月 2023
- Offline
shadyellaithy
the issue is that i cannot find from my imported file the secound uv set on my geo , so i guess something missing while i export my maya file
I guess it is because maya exports uv attribute in vector2, and Houdini will only recognize uv attribute in vector3. I export my uv sets in alembic(check write uv and uv sets), I am not sure if the same thing happens in USD. Houdini will not treat a vector2 attribut as a uv attribute even it was named with 'uv' prefix or marked with 'texturecoord', as tamte mentioned, thanks by the way.
Just create a attribute wrangle and run in vertices mode.
v@uv1; @uv1[0]=u@myCustomUV[0]; @uv1[1]=u@myCustomUV[1]; @uv1[2]=0;
Hope it will help you.
Edited by DaiXiaonan - 2024年8月17日 16:55:04
-
- Quick Links