Modding:Fixing UV errors: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 3: Line 3:
|description=This page is a hub for everything related to Modding Baldur's Gate 3. Check out the following guides to learn how to mod BG3.
|description=This page is a hub for everything related to Modding Baldur's Gate 3. Check out the following guides to learn how to mod BG3.
|image=Modding_resources.webp
|image=Modding_resources.webp
}}Main page: [[Modding Resources]]
}}{{NavModding}}
As of Full Release and the making of [https://github.com/Norbyte/dos2de_collada_exporter this] plugin by Norbyte the below steps are not required when directly exporting as GR2 from blender. However if you wish to export as DAE and come across UV errors the below will work.
 
This tutorial is from a post shared by [https://www.nexusmods.com/baldursgate3/users/73681713 tyvianpear] in the DbtR Discord server.
This tutorial is from a post shared by [https://www.nexusmods.com/baldursgate3/users/73681713 tyvianpear] in the DbtR Discord server.
== Steps ==
== Steps ==
# Open two instances of Blender; 2.79b and 3.X (latest)
# Open two instances of Blender; 2.79b and 3.X (latest)
Line 18: Line 21:
# Click on the vertical '''Helpers tab''' and make sure that the '''Select All Problems''' box is checked
# Click on the vertical '''Helpers tab''' and make sure that the '''Select All Problems''' box is checked
# Click on '''Check UV Triangles'''
# Click on '''Check UV Triangles'''
<gallery>
[[File:Uv_error_2.webp]]
Uv_error_2.webp|Caption1
</gallery>
# At the very top of Blender, you'll see a notification telling you how many UV problems were found. They will also highlight them in orange on your mesh and in the graph on the right
# At the very top of Blender, you'll see a notification telling you how many UV problems were found. They will also highlight them in orange on your mesh and in the graph on the right
<gallery>
[[File:Uv_error_3.webp]]
Uv_error_3.webp|Caption1
</gallery>
# To the left of your model, you'll see '''Remove Doubles''' in the '''Tools tab'''
# To the left of your model, you'll see '''Remove Doubles''' in the '''Tools tab'''
# Click on it and you'll see a message at the top, ''Removed 0 vertices'' because the merge distance is too short to combine any of the overlapping vertices
# Click on it and you'll see a message at the top, ''Removed 0 vertices'' because the merge distance is too short to combine any of the overlapping vertices
Line 30: Line 29:
# Keep an eye on your mesh and make sure it's not getting too distorted
# Keep an eye on your mesh and make sure it's not getting too distorted
# After each vertex removal/merge, select and deselect (CTRL-A in edit mode) the mesh and repeat the earlier steps of '''Check UV Triangles''' and '''Remove Doubles''' of vertices
# After each vertex removal/merge, select and deselect (CTRL-A in edit mode) the mesh and repeat the earlier steps of '''Check UV Triangles''' and '''Remove Doubles''' of vertices
<gallery>
[[File:Uv_error_4.webp]]
Uv_error_4.webp|Caption1
</gallery>
# Not all UV errors will show up on the graph, so keep an eye on the notification at the top that tells you how many UV errors you have
# Not all UV errors will show up on the graph, so keep an eye on the notification at the top that tells you how many UV errors you have
# When you've merged all the vertices causing problems, you'll see ''No UV problems found'' at the top
# When you've merged all the vertices causing problems, you'll see ''No UV problems found'' at the top
<gallery>
[[File:Uv_error_5.webp]]
Uv_error_5.webp|Caption1
</gallery>
# After you have done this for each mesh in your model, copy and paste the entire thing back into 3.X
# After you have done this for each mesh in your model, copy and paste the entire thing back into 3.X
# Export as <code>.DAE</code>
# Export as <code>.DAE</code>
[[Category:Modding]]
[[Category:Modding resources]]

Latest revision as of 10:18, 8 November 2023

Bgwiii.png CommunityGuidesModding

Modding guides
Modding resources

As of Full Release and the making of this plugin by Norbyte the below steps are not required when directly exporting as GR2 from blender. However if you wish to export as DAE and come across UV errors the below will work.

This tutorial is from a post shared by tyvianpear in the DbtR Discord server.

Steps[edit | edit source]

  1. Open two instances of Blender; 2.79b and 3.X (latest)
  2. Install LaughingLeaders' Blender Helpers for 2.79b into 2.79b
  3. Open your model in 3.X first
  4. Copy and paste the entire model and all its meshes into 2.79b
  5. Minimize (or close) 3.X, we won't need it again until the end
  6. Open up another window next to the Properties Tab by pulling on one of the stripped triangles in the top corner
  7. In the new window, click on the Properties button under the Project Outline, choose UV/Image Editor

Uv error 1.webp

  1. Click on the mesh you want to check first (to be on the safe side go through each mesh one by one)
  2. Hit TAB to go into Edit mode
  3. Click on the vertical Helpers tab and make sure that the Select All Problems box is checked
  4. Click on Check UV Triangles

Uv error 2.webp

  1. At the very top of Blender, you'll see a notification telling you how many UV problems were found. They will also highlight them in orange on your mesh and in the graph on the right

Uv error 3.webp

  1. To the left of your model, you'll see Remove Doubles in the Tools tab
  2. Click on it and you'll see a message at the top, Removed 0 vertices because the merge distance is too short to combine any of the overlapping vertices
  3. Try changing the merge distance incrementally as small as possible. Somewhere around 0.0004 you'll see Removed X vertices at the top
  4. Keep an eye on your mesh and make sure it's not getting too distorted
  5. After each vertex removal/merge, select and deselect (CTRL-A in edit mode) the mesh and repeat the earlier steps of Check UV Triangles and Remove Doubles of vertices

Uv error 4.webp

  1. Not all UV errors will show up on the graph, so keep an eye on the notification at the top that tells you how many UV errors you have
  2. When you've merged all the vertices causing problems, you'll see No UV problems found at the top

Uv error 5.webp

  1. After you have done this for each mesh in your model, copy and paste the entire thing back into 3.X
  2. Export as .DAE