Making models for mods

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

Making models for mods

by 12Me21 » Mon Apr 06, 2015 21:46

EDIT: This post originally started a sub-thread on the Home Decor topic, and has been split off to it's own subject.
--VanessaE

VanessaE wrote:For any new objects I add to this mod, if they're complex shapes, they're best done with meshes rather than nodeboxes.

I don't know how to make meshes, what program do you use?
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Modpack] Home Decor [git] [homedecor_modpack]

by Don » Tue Apr 07, 2015 00:06

12Me21 wrote:
VanessaE wrote:For any new objects I add to this mod, if they're complex shapes, they're best done with meshes rather than nodeboxes.

I don't know how to make meshes, what program do you use?

Blender. There are a number of tutorials on youtube and the forum has a few.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: [Modpack] Home Decor [git] [homedecor_modpack]

by ExeterDad » Tue Apr 07, 2015 00:07

12Me21 wrote:
VanessaE wrote:For any new objects I add to this mod, if they're complex shapes, they're best done with meshes rather than nodeboxes.

I don't know how to make meshes, what program do you use?

If you build your nodeboxes with nodebox editor it can export as a mesh. Or you can use Blender. But the learning curve is very high.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Modpack] Home Decor [git] [homedecor_modpack]

by Don » Tue Apr 07, 2015 00:34

ExeterDad wrote:
12Me21 wrote:
VanessaE wrote:For any new objects I add to this mod, if they're complex shapes, they're best done with meshes rather than nodeboxes.

I don't know how to make meshes, what program do you use?

If you build your nodeboxes with nodebox editor it can export as a mesh. Or you can use Blender. But the learning curve is very high.

I can confirm that the learning curve is high. One day I will learn. Until then.......ExeterDad.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

Re: [Modpack] Home Decor [git] [homedecor_modpack]

by 12Me21 » Tue Apr 07, 2015 01:09

ExeterDad wrote:If you build your nodeboxes with nodebox editor it can export as a mesh.

Does this have any advantage over using regular nodeboxes?
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

Re: Making models for mods

by VanessaE » Tue Apr 07, 2015 07:39

You can UV-map the model in Blender or so, allowing you to precisely define what parts of your texture images are applied to which parts of the model. This means more flexibility in image layouts.

Plus, with a mesh node (regardless of how it was initially created), you can use multiple materials per model (up to 6 anyway), allowing you to use multiple images in different resolutions to texture your model, or even place two or more images in the same general area of the model (say, the top), but on different sets of polygons, in ways that are impossible with nodeboxes.

You could, for example, display the default animated water in a depressed hole in the middle of a face that's covered in non-moving default steel block texture if you wanted, as long as your model, UV maps, and materials are set up properly, without having to make new imagery.

Were it saved as just a plain set of nodeboxes, you'd be stuck with all of that method's usual limits.

For example, nodeboxes always "project" the textures onto the sides of the object from fixed locations in the images, e.g. a nodebox that occupies the quarter-node section of the lower-right corner of the "front" of the node gets its imagery from the lower-right 4x4 pixels of the -Z image (assuming a 16x16 pixel texture), no negotiation. :-)

Another limit of regular nodeboxes is that if you have two or more of them at the same coordinates on two axes, but different coordinates on the third axis, say 8,8,8 and 8,8,12 (four units apart on the Z axis but at the same X and Y position), the texture applied to one will be echoed through to the others on the same face. In this example, the Z faces would share a texture.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

Re: Making models for mods

by prestidigitator » Tue Apr 07, 2015 10:17

VanessaE wrote:You can UV-map the model in Blender or so, allowing you to precisely define what parts of your texture images are applied to which parts of the model...you can use multiple materials per model (up to 6 anyway), allowing you to use multiple images in different resolutions to texture your model, or even place two or more images in the same general area of the model (say, the top), but on different sets of polygons, in ways that are impossible with nodeboxes.

Huh. Sounds useful. How does that work? Is each texture used for a different assigned material?
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Making models for mods

by ExeterDad » Tue Apr 07, 2015 11:34

No need really. Just assign a grouping of faces to the desired texture in the UV editor. Then before export unlink the image/images so irrlicht doesn't look for them and complain if they are missing. The textures are then fed to the mesh with lua one by one.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

Re: Making models for mods

by VanessaE » Tue Apr 07, 2015 15:13

Actually yes that's exactly it. For each material in the model, you assign polygons to it, and perhaps give it a color (purely for reference in Blender), then in your Lua code, you specify a filename for each material in your tiles={} field in your node def.

The order of items matters in the tiles={} field, but just what that order is is a total mystery to me so far (it's not alpha-order by material name, it's not in order by creation time, nor by last-edited time, and it doesn't appear to be by position in the model). You'll have to guess at it and re-arrange your tiles={} entries until the model renders correctly in-game. Once they're right, they'll probably stay right even if you edit your model again.

When you export to .obj, turn on "material groups" in your export dialog, and disable writing of the materials file, as Minetest does not use it.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

Re: Making models for mods

by prestidigitator » Tue Apr 07, 2015 15:55

Excellent. Thank you VE.
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Making models for mods

by ExeterDad » Tue Apr 07, 2015 16:53

Apparently more then one way to go about this. None of my blender models ever require materials to apply textures. Interesting.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

Re: Making models for mods

by VanessaE » Tue Apr 07, 2015 20:20

I may be wrong, but from what I can tell, materials are only needed if you want to apply more than one texture onto a model, and then probably only if you're exporting to .obj.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

Re: Making models for mods

by prestidigitator » Tue Apr 07, 2015 20:29

While textured viewport rendering may take the image currently loaded in the UV image editor into consideration (no idea about the OBJ export plug-in), textures are only truly applied to objects in Blender through materials. You'll discover this quickly if you do a render, bake textures, etc. See Applying Textures in the Blender manual.
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

Re: Making models for mods

by prestidigitator » Thu Apr 09, 2015 18:08

Oh. Question. Does the same application of textures to multiple materials apply to objects like the player model and entities with "mesh" visuals?
 

User avatar
VanessaE
Member
 
Posts: 3894
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaEzekowitz

Re: Making models for mods

by VanessaE » Thu Apr 09, 2015 18:35

That, I am not sure of.
You might like some of my stuff:
Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (16-512px)
Tips (BTC): 13LdcdUFcNCFAm7HfvAXh5GHTjCnnQj6KE
 

User avatar
Nathan.S
Member
 
Posts: 679
Joined: Wed Sep 24, 2014 17:47
GitHub: NathanSalapat
IRC: NathanS21
In-game: NathanS21

Re: Making models for mods

by Nathan.S » Thu Apr 09, 2015 19:10

Somewhat alike Prestidigitator, the order you put them in doesn't matter, what does matter is that you use the right name for the textures in Blender. You need to have the same texture names in Blender that you will in Minetest.
Example in my More_fire here: https://github.com/NathanSalapat/more_fire/blob/master/init.lua

Edit:
Maybe I'm wrong about that, ExeterDad certain has more experience with it than I do.
Last edited by Nathan.S on Thu Apr 09, 2015 21:36, edited 2 times in total.
I record Minetest videos, Mod reviews, Modding tutorials, and Lets plays.
Check out my website.
 

User avatar
ExeterDad
Member
 
Posts: 1121
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad

Re: Making models for mods

by ExeterDad » Thu Apr 09, 2015 20:35

With player models (and entities) the texture name is not important actually. You do however need a material for each texture you wish to use. Once you have finished texturing and are content with the results. You may unlink the texture from the materials AND from within the UV editor in Blender before you export. Then you assign the textures via lua. The order is in the same order the materials are listed within blender. Removing the textures will keep irrlicht from complaining it can't find the texture the model was built with. You may use any texture name you wish, as long as the stack order is the same.
٩(̾●̮̮̃̾•̃̾)۶

Kibbie and I have a beautiful public server now! HOMETOWN
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

Re: Making models for mods

by prestidigitator » Thu Apr 09, 2015 21:39

ExeterDad wrote:With player models (and entities) the texture name is not important actually. You do however need a material for each texture you wish to use. Once you have finished texturing and are content with the results. You may unlink the texture from the materials AND from within the UV editor in Blender before you export. Then you assign the textures via lua. The order is in the same order the materials are listed within blender. Removing the textures will keep irrlicht from complaining it can't find the texture the model was built with. You may use any texture name you wish, as long as the stack order is the same.

Excellent. Thanks for the info.
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 12 guests

cron