Jump to content

Errors Loading FBX with embedded Textures


Recommended Posts

There are a series of problems when loading an FBX with embedded textures.

  • Textures are extracted to a new directory, but the directory is never view-able in the editor
    • If you manually try to find the texture using the material editor it will show in the file picker.
    • 1.5: If you drag a folder with an naming scheme of *.* (hello.world) into the folder from explorer it will not see it
      • If you create the folder in Leadworks using the built in folder maker it will load the folder. (did not test if it will load on an editor restart)

    [*]You don't see the model in the model editor.

    • If you put the model in the scene window, it will not appear, even if you click goto.. or frame selected.
    • The model has a black icon.
    • If you load the texture, the icon loads, but not on the model

    [*]The material does not load any of the textures on load, probably because it doesn't see the folder

 

The Editor Log:

 

Failed to load thumbnail 6 for C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl
Loading model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Failed to read file C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl
Deleting model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Error: Failed to load model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl".
Failed to load thumbnail 6 for C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat
Loading material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"...
Error: Failed to load material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat".
Failed to load thumbnail 6 for C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat
Loading material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"...
Error: Failed to load material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat".
Converting "models/props/health/health pack.fbx"...
Input: C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbx
Output: C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl
FBX: Initializing scene...
FBX: File version: 7.3.0
FBX: Importing scene...
FBX: found null: health pack.fbx
FBX: found mesh: Health Pack
FBX: found animation: health pack_anim_intervals, fps: 30.000, start: 0.0000, end: 1.0000, length: 1.0000
MDL: total vertices: 234, total faces: 464
MDL: exporting as static mesh
MDL: writing C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/\health pack_PtexPlane0.mat
Conversion: success
Loading model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Loading material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"...
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"
Deleting model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Deleting material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"
File does not exist: C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_color.tex
Converting "models/props/health/health pack.fbm/health pack_ptexplane0_color.png"...
Successfully converted "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_color.png".
File does not exist: C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_nmap.tex
Converting "models/props/health/health pack.fbm/health pack_ptexplane0_nmap.png"...
Successfully converted "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_nmap.png".
File does not exist: C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_specular.tex
Converting "models/props/health/health pack.fbm/health pack_ptexplane0_specular.png"...
Successfully converted "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_specular.png".
File does not exist: C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_disp.tex
Converting "models/props/health/health pack.fbm/health pack_ptexplane0_disp.png"...
Successfully converted "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.fbm/health pack_PtexPlane0_disp.png".
Failed to load thumbnail 6 for C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl
Loading model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Loading material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"...
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"
Deleting model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Deleting material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"
Saving thumbnail C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl
Failed to load thumbnail 6 for C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat
Loading material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"...
Loading shader "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Shaders/Model/diffuse.shader"...
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"
Saving thumbnail C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat
Deleting material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"
Deleting shader "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Shaders/Model/diffuse.shader"
Failed to load thumbnail 6 for C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl
Loading model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Loading material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"...
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_color.tex"
Loading texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"...
Error: Failed to load texture "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0_nmap.tex"
Deleting model "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl"
Deleting material "C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack_PtexPlane0.mat"
Saving thumbnail C:/Users/Einlander/Documents/Leadwerks/Projects/Holdout/Models/props/health/health pack.mdl

 

Image:

post-7960-0-38476700-1402823272_thumb.jpg

 

File:

health pack.fbx

Link to comment
Share on other sites

I can't speak for Leadwerks, but when textures are embedded in a FBX file, a new directory (*.fbm) is always created when extracting them. This directory is automatically created by the FBX SDK, so it can't be changed.

 

But, the problem I see is that the textures are not located where the MAT file thinks they are located.

 

MAT file thinks they are here:

texture0="./health pack_PtexPlane0_color.tex"

texture1="./health pack_PtexPlane0_nmap.tex"

 

But, since the textures are embedded, they are actually found here:

texture0="./health pack_embedded.fbm/health pack_PtexPlane0_color.tex"

texture1="./health pack_embedded.fbm/health pack_PtexPlane0_nmap.tex"

 

A temporary workaround is to not embed textures in FBX files until the fbx2mdl converter is updated.

Ultimate Unwrap 3D: http://www.unwrap3d.com

Link to comment
Share on other sites

  • 2 months later...
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...