Editing Modding:How To Find A Virtual Texture

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
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
}}{{Modding box}}{{Modding sidebar}}
}}{{NavModding}}


A virtual texture is essentially a digital box that BG3 uses to store textures in so they load quicker. This is good for the game's performance, but not so good if you want to extract and edit them. So here is how to extract them.
A virtual texture is essentially a digital box that BG3 uses to store textures in so they load quicker. This is good for the game's performance, but not so good if you want to extract and edit them. So here is how to extract them.


This tutorial requires Modder's Multitool, LSLib v19 and a knowledge of how to find things with the multitool.
This tutorial requires Modder's Multitool, LSLib v19 and a knowledge of how to find things with the multitool.
You may also find [https://docs.google.com/spreadsheets/d/135XWkGCZ1A7hn4yW1Gt3i7MGfx-RsgKfLPGbHdXKbNg/edit?usp=sharing this spreadsheet] helpful.


===How to find the mesh name===
===How to find the mesh name===
Line 21: Line 19:
You will need to find the GTexFileName in order to find the correct virtual texture to extract. So search the mesh name in the search index in Multitool.  
You will need to find the GTexFileName in order to find the correct virtual texture to extract. So search the mesh name in the search index in Multitool.  


You may need to append it with HUM_M_ instead of whatever race you are looking for, as '''most of the universal gtex are under HUM M meshes.''' The same applies with HUM F and meshes that are different on the female to the male.  
You may need to append it with HUM_M_ instead of whatever race you are looking for, as most of the universal gtex are under HUM M meshes. The same applies with HUM F and female specific meshes. Some meshes also share textures with other versions of the mesh, so you may need to remove the ''_a'' or ''_broken'' (for example) appendage if you aren't getting any matches.
 
Some meshes also share textures with other versions of the mesh, so you may need to remove the ''_a'' or ''_broken'' (for example) appendage if you aren't getting any matches.


For example, we like ''''HUM_M_ARM_Bandit_C_Body'''<nowiki/>' so we search this in the multitool.
For example, we like ''''HUM_M_ARM_Bandit_C_Body'''<nowiki/>' so we search this in the multitool.
Line 112: Line 108:
=== Remember Mipmaps ===
=== Remember Mipmaps ===
The extracting process strips the virtual textures of their mipmaps! Even if you are not editing some maps, you need to import them into GIMP(or any similar program) and resave with mipmaps to generate new ones if you are including them with your mod. [[Modding:Creating Outfit Textures|See here for save settings.]]
The extracting process strips the virtual textures of their mipmaps! Even if you are not editing some maps, you need to import them into GIMP(or any similar program) and resave with mipmaps to generate new ones if you are including them with your mod. [[Modding:Creating Outfit Textures|See here for save settings.]]
{{Modding navbox}}
[[Category:Modding guides]]
[[Category:Modding guides]]
[[Category:Armor modding]]
Please note that all contributions to Baldur's Gate 3 Wiki are considered to be released under the CC BY-NC-SA license, except when noted otherwise (see BG3Wiki:Copyrights for details). If you do not want your writing to be edited and redistributed at will, do not submit it here. Per our Content Rules, you are promising that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)