Jump to content

[Apparently not supported] Import of FBX with embedded textures gives material errors


Roland
 Share

Recommended Posts

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

post-395-0-55407800-1412516264.png

 

Exported as FBX with embedded textures

Drag and drop for import

post-395-0-04245700-1412516274_thumb.png

 

We can see that the material tiles03.mat

comes up black (as also the model of course)

post-395-0-15580400-1412516284_thumb.png

 

Checking the material shows that no textures

have been added

post-395-0-51832100-1412516293_thumb.png

 

The textures cant be found by the importer as they

exist in box/box.fbm. Here I selected them by hand

post-395-0-53223400-1412516321_thumb.png

 

Here is the importers material file tiles03.mat which

is faulty. Texture path is wrong and also the shader

post-395-0-70861300-1412516329_thumb.png

 

Here I have corrected this to be as the importer should work

post-395-0-61132600-1412516338_thumb.png

 

And here is the result after the correction

post-395-0-40778700-1412516352_thumb.png

  • Upvote 1

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

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.

  • Upvote 1

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...