[OBJ files] Do MTL is used ?

recreating units
Post Reply
D.Durand
Posts: 87
Joined: Sun Feb 07, 2010 11:21 am

[OBJ files] Do MTL is used ?

Post by D.Durand » Sat Sep 11, 2010 5:05 am

I always add the MTL file to the OBJ one in the "script" folder. It is necessary or do i don't need it ?




=> by the way, it will be pretty cool if TA3D can read the MTL and use it for texturing and color. Not the texturing directly rendered by the 3D software, mind you, but at least plain colors and files textures. After the MTL indicate what texture files are used and how.

That eliminate the need for UV work. Can you imagine ?

- You model your unit in the 3D modeller,
- You create the texture in 'toshop (or other 2D graphic software),
- You save the texture file as a PNG file,
- You apply the PNG file as a texture in the 3D modeller,
- You export/save in OBJ. The modeller save all the colors and texturing in the MTL file,
- You copy your texture PNG in a "textures".

And then, TA3D :

- Read the OBJ file,
- "Create" the model with it,
- Read the name textures (only the name, not necessary the path) in the MTL compagnon file, and how he need to apply it,
- Apply the texture.

And voilà, no need for UV mapping. For making a unit, yo ujust need a notepad, a 3D modeller and a 2D graphic software (and not even the last if you use downloaded textures from Internet).


DO you think it's possible ?

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Re: [OBJ files] Do MTL is used ?

Post by zuzuf » Sat Sep 11, 2010 11:18 am

Yes it is possible, just put your MTL file with your OBJ file in the objects3d folder :). TA3D will then look for textures in the textures folder
=>;-D Penguin Powered

D.Durand
Posts: 87
Joined: Sun Feb 07, 2010 11:21 am

Re: [OBJ files] Do MTL is used ?

Post by D.Durand » Sat Sep 11, 2010 11:46 am

That's insanely cool. I try it immediately

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests