paintings

master
D00Med 2017-11-25 11:43:05 +10:00
parent c7bec8bf9b
commit 8b871fd05e
6 changed files with 42 additions and 4 deletions

View File

@ -1,16 +1,18 @@
--texture format: paintings_[name].png, must be the same as the node name (NOT the description)
--sizes are: 1X1, 1X2, 2X2
--sizes are: 1X1, 1X2 (wide), 2X1 (tall), 2X2
local paintings = {
--{"name/texture", "description", "size"}
{"small", "Small Painting (test)", "1X1"},
{"medium", "Medium Painting (test)", "1X2"},
{"large", "Large Painting (test)", "2X2"},
{"monalisa", "Mona Lisa", "2X2"},
{"hummingbird", "Hummingbird Painting", "2X2"},
{"dragon", "Dragon Painting", "2X1"},
{"landscape", "Landscape Painting", "1X2"},
{"forest", "Forest Painting", "1X2"},
}
local small = {-0.5, -0.5, 0.4375, 0.5, 0.5, 0.5}
local medium = {-1.5, -0.5, 0.4375, 0.5, 0.5, 0.5}
local tall = {-0.5, -0.5, 0.4375, 0.5, 1.5, 0.5}
local large = {-0.5, -0.5, 0.4375, 1.5, 1.5, 0.5}
for _, row in ipairs(paintings) do
@ -22,6 +24,8 @@ for _, row in ipairs(paintings) do
box = medium
elseif size == "2X2" then
box = large
elseif size == "2X1" then
box = tall
end
minetest.register_node("paintings:"..name, {
description = description,

View File

@ -0,0 +1,34 @@
# Blender v2.72 (sub 0) OBJ File: '1X2.blend'
# www.blender.org
mtllib 2X1.mtl
o Shape1
v 1.000000 3.000000 0.872898
v 1.000000 -1.000000 0.872898
v -1.000000 -1.000000 0.872899
v -1.000000 3.000000 0.872899
v 1.000000 -1.000000 0.997898
v 1.000000 3.000000 0.997898
v -1.000000 3.000000 0.997899
v -1.000000 -1.000000 0.997899
vt 0.007813 0.734375
vt 0.257813 0.734375
vt 0.257813 0.984375
vt 0.007813 0.984375
vt 0.265625 0.734375
vt 0.515625 0.734375
vt 0.515625 0.984375
vt 0.265625 0.984375
vt 0.257813 1.000000
vt 0.007813 1.000000
vt 0.507813 0.984375
vt 0.507813 1.000000
vt 0.000000 0.734375
vt 0.000000 0.984375
usemtl None
s off
f 1/1 2/2 3/3 4/4
f 5/5 6/6 7/7 8/8
f 4/4 3/3 8/9 7/10
f 6/3 5/11 2/12 1/9
f 6/13 1/1 4/4 7/14
f 2/2 5/5 8/8 3/3

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB