Forum

Author Topic: Metashape to Substance Painter with UDIMs  (Read 6006 times)

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Metashape to Substance Painter with UDIMs
« on: November 12, 2022, 01:34:01 PM »
Default export separates each UDIM tile into a separate Texture Sets, does anyone have any tips for this?

EDIT: If I Import/Export it through Zbrush it will load up properly in Painter. Something is off in how the .obj is formatted going out of Metashape it seems.

EDIT2: Depends how many Tiles there is so it's not a good solution.

EDIT3: I think something is broken and it may be related to this: https://www.agisoft.com/forum/index.php?topic=14860.0
« Last Edit: November 12, 2022, 03:16:10 PM by wojtek »

renevg

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Metashape to Substance Painter with UDIMs
« Reply #1 on: February 12, 2023, 10:13:26 PM »
I had this problem and found the solution in editing the obj with udims from metashape in c4D with arnold. (redshift will work as well probably). Then the obj will be imported in Painter correctly.

renevg

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Metashape to Substance Painter with UDIMs
« Reply #2 on: February 13, 2023, 10:46:54 PM »
some new information;
metashape doesn't really export obj with udim, but the program exports mesh with submeshes. These submeshes get their own materials applied. Painter creates a texture set for each material.
My solution:
edit the obj and delete all lines with mtl  (like in newmtl) and save as a new .obj.
That you can import in painter and you get 1 texture set with a number of UV tiles.
Hope this helps
Regards,
René v G

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Re: Metashape to Substance Painter with UDIMs
« Reply #3 on: February 16, 2023, 11:59:55 AM »
some new information;
metashape doesn't really export obj with udim, but the program exports mesh with submeshes. These submeshes get their own materials applied. Painter creates a texture set for each material.
My solution:
edit the obj and delete all lines with mtl  (like in newmtl) and save as a new .obj.
That you can import in painter and you get 1 texture set with a number of UV tiles.
Hope this helps
Regards,
René v G

This is what I've been doing too but it will break after N amount of tiles too (9 I think).

renevg

  • Newbie
  • *
  • Posts: 39
    • View Profile
Re: Metashape to Substance Painter with UDIMs
« Reply #4 on: February 16, 2023, 10:37:14 PM »
@wojcek
I've tried it with 10 tiles and with 20 tiles, and I can get them opened perfectly, after editing the obj. I use metashape 1.8.5 and substance painter 8.3.0 build 2094 with "use UVtile workflow"checked.
« Last Edit: February 17, 2023, 10:13:01 PM by renevg »

bassistas

  • Newbie
  • *
  • Posts: 42
    • View Profile
Re: Metashape to Substance Painter with UDIMs
« Reply #5 on: July 12, 2023, 06:14:21 PM »
I had this problem and found the solution in editing the obj with udims from metashape in c4D with arnold. (redshift will work as well probably). Then the obj will be imported in Painter correctly.

I'm trying to import an obj which has 65x 8K textures from metashape 2.0.2 to substance painter and I get this error:
''Errors have been found while splitting meshes per UV tile: Mesh 'defaultobject' has faces in out of bounds UDIM indices: [10,5].''

Also I tried to delete all lines with mtl from the obj but still does the same. I can open the obj in 3dsmax or any other viewer without any errors and the model looks fine. I checked also the uv tiles and they seem fine. Can you describe what you did exactly in cinema4d or if there is any tutorial about how to fix udims in C4D with arnold please let me know.