Roland Posted October 5, 2014 Share Posted October 5, 2014 Importing a fbx with embedded textures ends up in a material with empty texture slots. This because when the fbx is unpacked the textures are always placed in a folder called <modelname>.fbm. The material produced assumes that the textures should be in same folder as the fbx-file. Wouldn't this be easy solved by adding a code snipped that looks for the textures in that folder if they cant be found in the fbx folder. Here is some images showing this Here is the model in a modeling program Exported as FBX with embedded textures Drag and drop for import We can see that the material tiles03.mat comes up black (as also the model of course) Checking the material shows that no textures have been added The textures cant be found by the importer as they exist in box/box.fbm. Here I selected them by hand Here is the importers material file tiles03.mat which is faulty. Texture path is wrong and also the shader Here I have corrected this to be as the importer should work And here is the result after the correction 1 Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Einlander Posted October 5, 2014 Share Posted October 5, 2014 http://www.leadwerks.com/werkspace/topic/10060-errors-loading-fbx-with-embedded-textures/ 1 Link to comment Share on other sites More sharing options...
Roland Posted October 5, 2014 Author Share Posted October 5, 2014 Okay. Thanks. Did not notice that one. However ... really strange to not support that. I mean... come on. How hard can it be to load model.fbx find texture in ./ if texture not found find texture in ./model.fbm end process fbx & textures Well well... At least I know then. 1 Roland Strålberg Website: https://rstralberg.com Link to comment Share on other sites More sharing options...
Recommended Posts