Multi textured obj with blender how to.

Post Reply
User avatar
pithy
Member
Posts: 251
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Multi textured obj with blender how to.

by pithy » Post

1: First you will make the mesh.
Image

2: Then make each part that needs its own texture a separate object.
Image

3: Export as OBJ. Minetest does not use materials and disabling it will save a bit or two. Check "Objects as OBJ Groups" and uncheck "Objects as OBJ Objects". I don't know why but it is needed for multi texture support.
Image

If you do not need texture syntax compatibility you can stop now.

4: Rename top to f, bottom to e, right to d, left to c, back to b, and front to a.
Image

5: Export as DAE. Check "Sort by Object name", it is needed for texture syntax compatibility. Watch out for "Triangulate" but you don't really need to.
Image

6: Import the .dae and export it as OBJ following step 3 again.

Then you can use it in minetest.
Image

P.S. If you are a maintainer of moreblocks you should look at the pull requests.
Last edited by pithy on Fri Dec 02, 2016 17:55, edited 1 time in total.

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: Multi textured obj with blender how to.

by stu » Post

I might add that you can also use multiple materials to do the same thing with a single object, that's how I usually do it anyway.

btw, I do not understand the need to export as .dae and then re-import, that should not really be necessary.

User avatar
pithy
Member
Posts: 251
Joined: Wed Apr 13, 2016 17:34
GitHub: pithydon

Re: Multi textured obj with blender how to.

by pithy » Post

stu wrote:I might add that you can also use multiple materials to do the same thing with a single object, that's how I usually do it anyway.

btw, I do not understand the need to export as .dae and then re-import, that should not really be necessary.
That works in blender but does Minetest really read materials?

The order of the textures is +Y, -Y, +X, -X, +Z, -Z and in some use cases the object order needs to match.

User avatar
stu
Member
Posts: 923
Joined: Sat Feb 02, 2013 02:51
GitHub: stujones11
Location: United Kingdom

Re: Multi textured obj with blender how to.

by stu » Post

pithy wrote:That works in blender but does Minetest really read materials?
Maybe not in the case of .obj, I've not actually tried it to be honest. It does, however, work for animated formats like directx or b3d.

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests