GreenDimond wrote:How do I apply textures to an OBJ model?
with an uv map in the model?!
Ehm....wha?
I'm going to guess that you got an obj from someone and you want to apply a texture to it in minetest.
Minetest does not read obj textures instead it uses the texture data from the node def or entity def.
If you have added the texture data properly to the node def or entity def and there is still no texture then there is probably no uv map in the obj.
You could ask someone to add a uv map to the obj or learn Blender.
minetest.register_node("lottpotion:cauldron_full",{
on_punch = function(pos, node, player)
local player_inv = player:get_inventory()
local itemstack = player:get_wielded_item()
if itemstack:get_name() == "vessels:glass_bottle" then
But on_punch for cauldron not work until i not remove on_use for bottle, but i need to draw water into the bottle left mouse button as the bucket. Is any way force to draw water from sea in the bottle and to draw water from cauldron in the bottle with the left mouse button?
I am using VoxelShop, but I also have Blender...I just don't want to use blender. VoxelShop is a heck of a lot easier to use. VoxelShop includes a texture.png for each model, but idk if that is any help... This is the VoxelShop Minetest Forum post
I know that Minetest DOES use .obj models, because .x is for meshes for entities, and almost every mod that has custom models uses .obj.
I don't know how you create an UV map in Voxelshop or if this program even allows to create one, but you could export your model as an obj there, then import it into blender and create the UV map there.
EDIT: btw could you upload this obj and texture file you created in voxelshop? It would make it easier for us to find the problem. :)
@GreenDimond: Nodeboxes can do almost everything a voxel editor can do and you don't have to bother with uv maps.
To make a node box you can use any text editor or the graphical Node Box Editor.
I prefer the text editor method. Standard us keyboard is enough buttons for me.
@ pithy: I was hopping that I could apply a texture easily without having to type out how the texture is supposed to form...I don't even know how to do that :P
@ RHR: Zip file with model and texture is attached. When importing to Blender, yes the model shows up, but idk how to apply the texture from voxelshop and create a UV map with it and apply that UV map to the model. I am not that great a modder yet btw.
minetest.register_on_joinplayer(function(player)
local num = math.random(6) -- set number to number of messages.
minetest.chat_send_all(messages[num])
end)
minetest.register_on_joinplayer(function(player)
local num = math.random(6) -- set number to number of messages.
minetest.chat_send_player(player:get_player_name(), messages[num])
end)
Topic: How to I make a block see-through without seeing through the world?
Reason: I want to make a 3d printer in world....
More Info: I've tried a few drawtypes but I'm not getting anywhere.
Attachments
screenshot_20161123_181925.png (287.78 KiB) Viewed 1013 times
----------------------------------------------------------------------------------------------
Team Lead on "eidy- Love learning"
I like reading, walks on the beach and building edutech experiences in lua (Find out more in this post) "Coming together is a beginning; keeping together is progress; working together is success." - Henry Ford
With the nice “new” configuration UI with the human-readable and technical namens and the categories and the descriptions … is it possible for mods to add their own categories, human-readable namens and descriptions? If yes: can anyone link me a source? If no: why not and (when) will it be implemented?
And a second question. When I created the following helper function what the function does was not possible. Is there a built-in function that achieves the exact same thing as this function?