Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Texture Loading with ASE  (Read 686 times)
0 Members and 1 Guest are viewing this topic.
Offline Cristianbs

Senior Newbie




Java games rock!


« Posted 2004-07-25 09:02:03 »

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:

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  
*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  Huh
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2004-07-25 10:19:32 »

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.

Offline Cristianbs

Senior Newbie




Java games rock!


« Reply #2 - Posted 2004-07-25 14:46:07 »

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

Thanks for your answer and your patience  Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #3 - Posted 2004-07-25 19:51:35 »

no worries Smiley

Will.

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

 

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

The first screenshot will be displayed as a thumbnail.

Dwinin (28 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (74 views)
2014-09-10 06:39:09

Tekkerue (38 views)
2014-09-09 02:24:56

mitcheeb (57 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (28 views)
2014-09-07 01:12:14

Longarmx (34 views)
2014-09-07 01:11:22

Longarmx (34 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!