I have copied the general idea of the ks signal set, which has one mesh but multiple textures applied. This works fine for the ks main signal, but I can't figure out how to make it work for mine!
The textures are applied correctly in Blender and UV-unwrapped. Important note: I am using Blender 2.8. There are 3 materials: one for each light, and currently they are three different meshes. I have tried them as one mesh with three materials and as three meshes with one material each. The settings are similar for each:
Screenshot blender UV wrapping and material setup
I then export to .obj which I understand minetest (i.e. irrlicht) is supposed to support, but I find that the same texture is applied to all three components. Is a custom export plugin required? I had tried the b3d exporter python script for 2.79 (yes, with 2.79 installed) but it didn't appear in the export menu - regardless, obj should work.
In lua, the textures are defined as a table of 3 textures as property 'tiles' (code excerpt):
Code: Select all
...
RY = {
asp = {
main = {free = true, speed = 40},
dst = {free = false},
shunt = {free = false}
},
tex = {"vss_3pos-texture.png", "vss_lampred.png", "vss_lampyellow.png"}
}
}) do
minetest.register_node("vss:home_"..signalType --[[.."_"..rot--]], {
description = "Victorian Home Signal ("..signalType..")",
drawtype = "mesh",
mesh = "threepos-home.obj",
tiles = siginf.tex,
...
Can someone with more expertise please let me know what I'm doing wrong?