Texture Loading with ASE

I have been trying to re-use the code from the ASE tutorial to load different models, but it seems that is unable to show the textures (only shows the shapes with white texture).
The textures are quite simple, dont use images that i need to copy to the directory, here you can see them from the ASE file:

*MATERIAL_LIST {
      *MATERIAL_COUNT 3
      *MATERIAL 0 {
            *MATERIAL_NAME "Material #2"
            *MATERIAL_CLASS "Standard"
            *MATERIAL_AMBIENT 0.9725      0.9765      0.9725
            *MATERIAL_DIFFUSE 0.2000      0.5529      0.1765
            *MATERIAL_SPECULAR 0.8980      0.8980      0.8980
            *MATERIAL_SHINE 0.0000
            *MATERIAL_SHINESTRENGTH 1.0000
            *MATERIAL_TRANSPARENCY 0.0000
            *MATERIAL_WIRESIZE 1.0000
            *MATERIAL_SHADING Phong
            *MATERIAL_XP_FALLOFF 0.0000
            *MATERIAL_SELFILLUM 0.0000
            *MATERIAL_FALLOFF In
            *MATERIAL_XP_TYPE Filter
      }
      *MATERIAL 1 {
            *MATERIAL_NAME "Material #3"
            *MATERIAL_CLASS "Standard"
            *MATERIAL_AMBIENT 0.7333      0.7255      0.7608
            *MATERIAL_DIFFUSE 0.2667      0.1922      0.5451
            *MATERIAL_SPECULAR 0.8980      0.8980      0.8980
            *MATERIAL_SHINE 0.2500
            *MATERIAL_SHINESTRENGTH 0.0500
            *MATERIAL_TRANSPARENCY 0.0000
            *MATERIAL_WIRESIZE 1.0000
            *MATERIAL_SHADING Phong
            *MATERIAL_XP_FALLOFF 0.0000
            *MATERIAL_SELFILLUM 0.0000
            *MATERIAL_FALLOFF In
            *MATERIAL_XP_TYPE Filter
      }
      *MATERIAL 2 {
            *MATERIAL_NAME "Material #27"
            *MATERIAL_CLASS "Architectural"
            *MATERIAL_AMBIENT 0.9490      0.3020      0.1255
            *MATERIAL_DIFFUSE 0.9490      0.3020      0.1255
            *MATERIAL_SPECULAR 0.5000      0.5000      0.5000
            *MATERIAL_SHINE 0.0000
            *MATERIAL_SHINESTRENGTH 1.0000
            *MATERIAL_TRANSPARENCY 0.0000
            *MATERIAL_WIRESIZE 1.0000
      }
}

I dont know whats wrong with them ???

textures by definition are images though!

It looks like you have defined so called Materials in 3DS MAX, but Xith3D doesn’t know what to do with them. Even if Xith3D was aware of these “Materials” it probably wouldn’t do much good considering how long a normal (even small) scene takes to render in MAX - how would you get 30 renders a second or more?

Make a texture out of the material and then you’ll be right. It’s annoying (and I had to do this very thing only an hour ago) but I’m afraid that’s what you just have to do for real time rendering.

There is one improvement that could be made to the ASE loader in that it could read the vertex colour data, but that is very different to MAX materials.

Will.

did i forgot to mention that i am totally newbie to 3D world? ;D

Thanks for your answer and your patience :slight_smile:

no worries :slight_smile:

Will.