Multiple UVs export from Houdini to Blender

   355   2   2
User Avatar
Member
3 posts
Joined: Aug. 2024
Offline
Hello!

I'm currently having an issue where multiple UV maps will not import into blender from the USD format. With some testing I found that if I created both UVs inside blender, exported as USD, imported it into Houdini and processed it there before sending it back to Blender they would both import correctly and be named the same as when I first exported them.

However, I need to create them inside houdini for export. They work just fine with a USD import SOP, so I understand that this might be a Blender problem. But any insight is valued. Thank you!


Attachments:
Two_UVs_in_Houdini.png (11.9 KB)
Imports_only_the_first_UV_in_Blender.png (5.7 KB)

User Avatar
Member
108 posts
Joined: Aug. 2017
Offline
Blender uses Vector2 for UVs and Houdini uses Vector3 and I believe this is where the problem stems from.

I just gave it a try and I found that if you save your UVs as Vector2 attributes, Blender loads them as UVs.

One quick way to achieve it: (Assuming we have a Houdini-made vector3 uv called "uv2") drop down a vertex wrangle and type:
u@uv3 = set(v@uv2.x, v@uv2.y);

u@ gives a vector2, v@ gives a vector3. It's possible there's a cleaner way to do it.

Attachments:
working_extra_uvs.png (380.1 KB)

User Avatar
Member
3 posts
Joined: Aug. 2024
Offline
I was not notified of your reply, so I did not see it!
But thank you so much! I will try this out. I really appreciate you taking the time to figure it out.
  • Quick Links