Ase Material Transparency Issue

Hi,

I am trying to load a model with transparency and having problems. The problem is not the alpha - that part is working fine and I can see bits of the underlying model - but my Diffuse map isn’t shown, instead it’s just white where the texture should be.

This is a snippet of my ase file:


      *MATERIAL 1 {
            *MATERIAL_NAME "Material #2"
            *MATERIAL_CLASS "Standard"
            *MATERIAL_AMBIENT 0.5880      0.5880      0.5880
            *MATERIAL_DIFFUSE 0.5880      0.5880      0.5880
            *MATERIAL_SPECULAR 0.9000      0.9000      0.9000
            *MATERIAL_SHINE 0.1000
            *MATERIAL_SHINESTRENGTH 0.0000
            *MATERIAL_TRANSPARENCY 0.0000
            *MATERIAL_WIRESIZE 1.0000
            *MATERIAL_SHADING Blinn
            *MATERIAL_XP_FALLOFF 0.0000
            *MATERIAL_SELFILLUM 0.0000
            *MATERIAL_FALLOFF In
            *MATERIAL_XP_TYPE Filter
            *MAP_DIFFUSE {
                  *MAP_NAME "Map #0"
                  *MAP_CLASS "Bitmap"
                  *MAP_SUBNO 1
                  *MAP_AMOUNT 1.0000
                  *BITMAP "rustycan.jpg"
                  *MAP_TYPE Screen
                  *UVW_U_OFFSET 0.0000
                  *UVW_V_OFFSET 0.0000
                  *UVW_U_TILING 1.0000
                  *UVW_V_TILING 1.0000
                  *UVW_ANGLE 0.0000
                  *UVW_BLUR 1.0000
                  *UVW_BLUR_OFFSET 0.0000
                  *UVW_NOUSE_AMT 1.0000
                  *UVW_NOISE_SIZE 1.0000
                  *UVW_NOISE_LEVEL 1
                  *UVW_NOISE_PHASE 0.0000
                  *BITMAP_FILTER Pyramidal
            }
            *MAP_OPACITY {
                  *MAP_NAME "Map #1"
                  *MAP_CLASS "Bitmap"
                  *MAP_SUBNO 6
                  *MAP_AMOUNT 1.0000
                  *BITMAP "tred.png"
                  *MAP_TYPE Screen
                  *UVW_U_OFFSET 0.0000
                  *UVW_V_OFFSET 0.0000
                  *UVW_U_TILING 1.0000
                  *UVW_V_TILING 1.0000
                  *UVW_ANGLE 0.0000
                  *UVW_BLUR 1.0000
                  *UVW_BLUR_OFFSET 0.0000
                  *UVW_NOUSE_AMT 1.0000
                  *UVW_NOISE_SIZE 1.0000
                  *UVW_NOISE_LEVEL 1
                  *UVW_NOISE_PHASE 0.0000
                  *BITMAP_FILTER Pyramidal
            }
      }

Here is a screenshot:

Any thoughts?

Will.

bump

Any ideas? Is anyone using transparent textures with the Ase loader?

Have I exported somthing incorrectly?

Wil.

[quote]bump

Any ideas? Is anyone using transparent textures with the Ase loader?

Have I exported somthing incorrectly?
[/quote]
Unfortunately I can’t help yet. I’m about to do something similar with my Lightwave import and maybe I’ll experience a similar problem…

Btw how did you solve that normal generator problem, which in Java3d is being solved by com.sun.j3d.utils.geometry.NormalGenerator ?
This I haven’t solved entirely yet (I am no Math champ).

Good luck with your lightwave import.

For my Normal generation, I am using the “calculateFaceNormals()” method of TriangleArray for my terrain, and just exporting normals as part of the ASE file from MAX :slight_smile: - it adds to the file size but I can tollerate that.

Cheers,

Will.

[quote]Good luck with your lightwave import.
[/quote]
Thanks, I need luck for this. :slight_smile:

[quote]For my Normal generation, I am using the “calculateFaceNormals()” method of TriangleArray for my terrain, and just exporting normals as part of the ASE file from MAX :slight_smile: - it adds to the file size but I can tollerate that.
[/quote]
Well, that’s clever. Wished I could do this too for LW. But AFAIK the format doesn’t support this.

Sorry for going off-topic in your thread. In case I’m going to see a similar problem to yours and see a solution I’ll come back. :slight_smile: