3DS

Software: Away3D 4.x

Songoo, Newbie
Posted: 18 April 2012 07:13 PM   Total Posts: 5

Hello, am new here, nice to meet you all.

First moments with away3d was superb! I could load .3ds models in instant without any previous flash knowledge. Only all models i loaded was just gray with no textures, i thought it will by short story, but smile

4th day passed and am still pretty bad stuck , there was many similar topics, tutorials and guides but to get it short.

Am really not much into 3d models so few newb questions :

1.  .3ds model file alone is not enough to get textures loaded from it in away3d 4, i have to extract somehow .jpg from it so i can load it into code? (i downloaded a lot of models that was containing only .3ds file and nothing more, do i have to open it in 3dmax and export in some special way to get .3ds and external single texture.jpg?).

2.  .3ds model file can have only one texture, not more to get model sucessfully loaded?

i did not found any working example with textured model loaded just from .3ds file alone.

In case of .3ds + 1 texture:
https://github.com/away3d/away3d-examples-fp11/blob/master/src/Basic_Load3DS.as

- But unfortunately i have very low knowledge about what signature.swf is, how to create it and also still how to extract single texture from .3ds model.

Second :

http://cperea.com/programming/3d/away3d/loading-a-model-in-away3d-4-0/#more-215

Also nice example with .3ds + 1texture, but failed at rows with

hulkMaterial.lights = [light0, light1];
loader.parseData(TankMesh, null, new AssetLoaderContext(false));

I guess since of new away3d 4 version.


I would be i 8th heaven if someone could post example with sucessfuly loaded model from just .3ds model or .3ds+textureimage that works with latest away3d 4.

Some of models i tried to load.
http://archive3d.net/?a=download&id=bec930a2  (.3ds alone)
http://www.3dvalley.com/3d-models/weapons/ (katana)
Are those models in some way incompatible ?

For any help, one big Arigatou!

 

   

Songoo, Newbie
Posted: 19 April 2012 09:21 PM   Total Posts: 5   [ # 1 ]

a1. Ant demo is the way, still dont know what signature.swf is but after comennted out nothing changed.

.3ds models with no textures will be displayed as gray models.

.3ds models with textures will not be shown at all, if texturs are not atached.

textures can be atached as in demo :
assetLoaderContext.mapUrlToData(“texture.jpg”, new AntTexture());

where texture.jpg is name of needed texture, name is set in .3ds model and can be get by simply run in debug mode in eclipse and at the end of error message is name of needed texture. As texture can be used even image with different size as original but width and height have to be /2 and not bigger as 2024 .

Tnx all that helped my, god bless you :D

a2. can have more textures.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X