GaijinEntertainment / DagorEngine

Dagor Engine and Tools source code from Gaijin Games KFT
Other
2.14k stars 267 forks source link

Questions about Texture Loads #38

Closed vmintf closed 4 months ago

vmintf commented 4 months ago

I'm creating a custom model and I'm posting questions about the texture.

I finished the blk coding and saw this error in the Asset Viewer. Despite writing the tga file, these errors came up, and I'm asking you a question because I'm wondering exactly how to solve them.

For your information, I modeled it using a blender.

image

NicSavichev commented 4 months ago

.tga extension is ignored (just is reported as is from DAG references in materials) but su_r_77_rocket_texture asset is missing in asset base, so asset manager cannot resolve all references needed for dynModel (su_r_rocket asset). if you just put *.tga to the folder then maybe out default .folder.blk doesn't match .tga extension with regexp. dabuild handles any texture format (TGA, PNG, JPG, TIFF) but .folder.blk may be setup to match only .tif like

virtual_res_blk{
  find:t="^(.*)\.tif$"
  className:t="tex"
  contents{
    convert:b=yes;fmt:t="DXT1|BC7"
...
vmintf commented 4 months ago

It wasn't loading due to different textures, I solved it, thank you. image