Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Ase Material Transparency Issue  (Read 872 times)
0 Members and 1 Guest are viewing this topic.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Posted 2003-12-01 23:02:44 »

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:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
      *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.

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2003-12-04 22:41:40 »

*bump*

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

Have I exported somthing incorrectly?

Wil.

Offline Preston

Senior Member


Medals: 2



« Reply #2 - Posted 2003-12-05 06:39:40 »

Quote
*bump*

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

Have I exported somthing incorrectly?


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).

Memento mori.
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #3 - Posted 2003-12-05 06:55:04 »

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 Smiley - it adds to the file size but I can tollerate that.

Cheers,

Will.


Offline Preston

Senior Member


Medals: 2



« Reply #4 - Posted 2003-12-05 07:10:22 »

Quote
Good luck with your lightwave import.

Thanks, I need luck for this. :)

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 :) - it adds to the file size but I can tollerate that.

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. :-)

Memento mori.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (81 views)
2013-05-17 21:29:12

alaslipknot (91 views)
2013-05-16 21:24:48

gouessej (122 views)
2013-05-16 00:53:38

gouessej (114 views)
2013-05-16 00:17:58

theagentd (126 views)
2013-05-15 15:01:13

theagentd (113 views)
2013-05-15 15:00:54

StreetDoggy (158 views)
2013-05-14 15:56:26

kutucuk (180 views)
2013-05-12 17:10:36

kutucuk (180 views)
2013-05-12 15:36:09

UnluckyDevil (187 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.166 seconds with 21 queries.