Loading multiple textures from mtl file

Software: Away3D 4.x

Krappt, Newbie
Posted: 01 November 2012 12:03 PM   Total Posts: 27

Hello!

I had a problem. I have a human model, which consists of 7 textures. When trying to load a model in away3d is parsing mtl file and superimposed texture coordinates. But the problem is that as a texture for the parts of the body is only one image. A string specifying the image is in the beginning of the file.

Can you please tell how to load multiple textures?

Thanks.

   

My Wireframe Shoe, Newbie
Posted: 01 November 2012 12:56 PM   Total Posts: 6   [ # 1 ]

This is already solved.

Find answer here:
———————————

“Load .obj with more than two materials”

http://away3d.com/forum/viewthread/3423/

———————————————-
OR
————

Fabrice Closier - 26 October 2012 01:10 PM

This issue has been fixed. Use the ObjParser from dev branch.

   

Krappt, Newbie
Posted: 01 November 2012 01:14 PM   Total Posts: 27   [ # 2 ]

Thank you! smile

   

Krappt, Newbie
Posted: 02 November 2012 11:54 AM   Total Posts: 27   [ # 3 ]

My problem is not solved: (

I replaced the file objParser, but the model uses only one texture.

My model is a single mesh. This can be a problem?

   

Avatar
Fabrice Closier, Administrator
Posted: 02 November 2012 12:09 PM   Total Posts: 1265   [ # 4 ]

There is no support in ObjParser for meshes with multiple materials yet.

   

Krappt, Newbie
Posted: 02 November 2012 12:22 PM   Total Posts: 27   [ # 5 ]

Then what to do? How to use a model with multiple textures?

   

Avatar
Fabrice Closier, Administrator
Posted: 02 November 2012 12:46 PM   Total Posts: 1265   [ # 6 ]

Until we have added this feature, you’ll have to split your model in your editor or merge its materials. So that there is only one material per mesh.

   

Krappt, Newbie
Posted: 02 November 2012 12:48 PM   Total Posts: 27   [ # 7 ]

Understand that as long as I can use only summarized in the file texture?

Adding this functionality is planned?

   

Avatar
Fabrice Closier, Administrator
Posted: 02 November 2012 01:12 PM   Total Posts: 1265   [ # 8 ]

you can have for now only one “usemtl ref_in_mtl” per mesh.
The mesh construct starts at first F tag. till next v tag the last occurance of “usemtl ref_in_mtl” is being used for the mesh.

Adding this functionality is planned?
It’s not on the 4.1 planning, but it would be nice to have this feature.
Would you mind send me the file (or more) with mtl’s so I can take a shot at this. Please send them to fabrice3d at gmail dot com.
No garanty it would make it for 4.1, all depends on howmuch impact this can have on the current construct loop. So it could be sometimes after.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X