Unable to load texture errors
le-invoker opened this issue · 2 comments
le-invoker commented
It looks like the loader is using absolute paths and windows style path separator breaks on a linux machine.
This is the error when clicking on the New Game
Shader compiled!
font cache loaded! 7
FBX: Trying to load "data/models/dm6.fbx"
FBX: Parsing - 31 ms
FBX: DOM Prepare - 2 ms
Unable to load texture data/textures/..\textures\metal5.tga! Reason No such file or directory (os error 2)
Unable to load texture data/textures/..\..\..\..\..\Users\mrDIMAS\Desktop\xcsv_bq3hi-res\textures\gothic_block\blocks9.tga! Reason No such file or directory (os error 2)
Unable to load texture data/textures/..\textures\largeblockfloor3.tga! Reason No such file or directory (os error 2)
Looking at the hdex dump of data/models/dm6.fbx
I can see that absolute paths is used to reference the other assets.
000c8c70: 0001 0000 003c 0000 0008 4669 6c65 4e61 .....<....FileNa
000c8c80: 6d65 5337 0000 0043 3a5c 446d 6974 7279 meS7...C:\Dmitry
000c8c90: 7345 6e67 696e 655c 5368 6f6f 7465 725c sEngine\Shooter\
000c8ca0: 6269 6e5c 6461 7461 5c74 6578 7475 7265 bin\data\texture
000c8cb0: 735c 6d65 7461 6c31 5f31 2e74 6761 f88c s\metal1_1.tga..
000c8cc0: 0c00 0100 0000 1d00 0000 1052 656c 6174 ...........Relat
000c8cd0: 6976 6546 696c 656e 616d 6553 1800 0000 iveFilenameS....
000c8ce0: 2e2e 5c74 6578 7475 7265 735c 6d65 7461 ..\textures\meta
000c8cf0: 6c31 5f31 2e74 6761 298d 0c00 0200 0000 l1_1.tga).......
000c8d00: 1200 0000 124d 6f64 656c 5556 5472 616e .....ModelUVTran
000c8d10: 736c 6174 696f 6e44 0000 0000 0000 0000 slationD........
000c8d20: 4400 0000 0000 0000 0056 8d0c 0002 0000 D........V......
mrDIMAS commented
Oh, that is very strange because I always use file name from the path stored in FBX, and then just concat it with textures
path. Will investigate that
mrDIMAS commented
Fixed.