solved

Post Reply
User avatar
RHR
Member
Posts: 215
Joined: Mon Jan 27, 2014 20:07
GitHub: RHRhino

solved

by RHR » Post

This tutorial I made for GreenDimond and other voxelshop users is no longer needed, because the exported model and textures already worked without any other steps in blender, which I didn't recognized at the beginning. So feel free to ignore this topic. :)
Spoiler
Image
In the modding questions section there came up the question how to attach an UV map texture to an .obj-3d model in blender, so you can use it in a mod for minetest. Both texture and model have been created in voxelshop and aren't immediately ready to use for minetest.

Here is a little step-by-step tutorial for the blender part:
1) open blender
2) delete the default cube
3) file>import>.obj (the voxelshop model)
4) press tab to switch to the edit mode
5) change the view to "UV/Image Editor" (you only see the UV map lines if you are in edit mode)
6) then open your texture as image: image>open image (choose your UV texture)
The UV map looks really weird but works surprisingly well without changes.

Image

7) change back to 3D view
8) select your model and add a material to it
9) change to node editor
10) add>texture>image texture
11) press the little image icon in the "image texture node" to add your texture
12) connect the colors like in the screenshot

Image

13) Now your model is ready. Export it with file>export>obj
I suppose modders know how to add a new node to a minetest mod, but in the attatchments I added a little mod with model working. Have fun! :)
Attachments
batman.zip
(217.4 KiB) Downloaded 55 times
Last edited by RHR on Sat Nov 26, 2016 15:31, edited 1 time in total.

User avatar
Desour
Member
Posts: 1473
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

Re: [Tutorial] How to attach an UV map to an .obj in blender

by Desour » Post

i never use material and it works, too. i think, minetest doesnt need it
and this tutorial is a bit confusing to me
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
RHR
Member
Posts: 215
Joined: Mon Jan 27, 2014 20:07
GitHub: RHRhino

Re: [Tutorial] How to attach an UV map to an .obj in blender

by RHR » Post

DS-minetest wrote:i never use material and it works, too. i think, minetest doesnt need it
and this tutorial is a bit confusing to me
That would be even better then. :)
I rarely used meshes for mods, so this tutorial is just a list of steps I did to make greendiamon's model working. It didn't worked before and I didn't tested if it also works without materials, but it seems that you have to link it in a certain way. Maybe loading the texture into blender is already enough.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: [Tutorial] How to attach an UV map to an .obj in blender

by GreenXenith » Post

either i dont know how to set material or it wont let me set material...
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
RHR
Member
Posts: 215
Joined: Mon Jan 27, 2014 20:07
GitHub: RHRhino

Re: [Tutorial] How to attach an UV map to an .obj in blender

by RHR » Post

@ Greendiamond:
Did you tried if your others models also work without the blender steps as DS-minetest mentioned? Maybe they already work if you just add the textures and models into the right folders and replace them in the code.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: [Tutorial] How to attach an UV map to an .obj in blender

by GreenXenith » Post

When I attempt to apply the texture, all the options are greyed out and unusable. So I cant add the texture so the node editor has nothing in it. I still dont know how to apply material.
EDIT: Nevermind! I forgot to switch to cycles render. Fixed now!
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Tutorial] How to attach an UV map to an .obj in blender

by twoelk » Post

hmm - shall I copy this over to the Wiki?

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

Re: [Tutorial] How to attach an UV map to an .obj in blender

by pithy » Post

I don't see how this applies to minetest.

User avatar
RHR
Member
Posts: 215
Joined: Mon Jan 27, 2014 20:07
GitHub: RHRhino

Re: [Tutorial] How to attach an UV map to an .obj in blender

by RHR » Post

twoelk wrote:hmm - shall I copy this over to the Wiki?
No, I don't think that this is really needed, because I created it for GreenDimond's voxelshop model. If you are only working in blender and exporting it there, you don't need these steps. Except from that, I don't think that it is a good idea to fill minetest wiki with tutorials of other programms.

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

Re: [Tutorial] How to attach an UV map to an .obj in blender

by pithy » Post

RHR wrote:
twoelk wrote:hmm - shall I copy this over to the Wiki?
No, I don't think that this is really needed, because I created it for GreenDimond's voxelshop model. If you are only working in blender and exporting it there, you don't need these steps. Except from that, I don't think that it is a good idea to fill minetest wiki with tutorials of other programms.
Do voxelshop uv maps not work in minetest some reason?

Edit: I went back to the "Post your modding questions here" forum page and found the original model.

It works as is.
Image

User avatar
RHR
Member
Posts: 215
Joined: Mon Jan 27, 2014 20:07
GitHub: RHRhino

Re: [Tutorial] How to attach an UV map to an .obj in blender

by RHR » Post

pithy wrote: Edit: I went back to the "Post your modding questions here" forum page and found the original model.
It works as is.
Image
Oh good to know, this tutorial is redundant then. :D

Post Reply

Who is online

Users browsing this forum: No registered users and 23 guests