Add obj models to fix weird rendering.

This commit is contained in:
Ben Spiers 2013-09-22 01:43:10 +01:00
parent 095355418a
commit f53c129c10
8 changed files with 826 additions and 10 deletions

Binary file not shown.

View file

@ -0,0 +1,692 @@
# Blender v2.66 (sub 1) OBJ File: 'wire.blend'
# www.blender.org
mtllib wire.mtl
g southInsulation
v -0.187500 0.687500 -0.187500
v -0.187500 0.312500 -0.187500
v 0.187500 0.312500 -0.187500
v 0.187500 0.687500 -0.187500
v -0.187500 0.687500 -0.500000
v -0.187500 0.312500 -0.500000
v 0.187500 0.312500 -0.500000
v 0.187500 0.687500 -0.500000
v -0.187500 0.312500 -0.375000
v -0.187500 0.687500 -0.375000
v 0.187500 0.312500 -0.375000
v 0.187500 0.687500 -0.375000
v -0.187500 0.687500 -0.312500
v 0.187500 0.687500 -0.312500
v 0.187500 0.312500 -0.312500
v -0.187500 0.312500 -0.312500
v 0.125000 0.312500 -0.500000
v -0.125000 0.687500 -0.500000
v -0.125000 0.312500 -0.500000
v 0.125000 0.687500 -0.500000
v -0.125000 0.375000 -0.500000
v -0.125000 0.625000 -0.500000
v 0.125000 0.625000 -0.500000
v 0.125000 0.375000 -0.500000
vt 0.000058 0.000058
vt 0.999942 0.000058
vt 0.999942 0.333353
vt 0.000058 0.333353
vt 0.000058 0.333352
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.166667 0.000000
vt 0.166667 0.174442
vt 0.166667 0.833330
vt 0.166667 1.000000
vt 0.833333 1.000000
vt 0.833333 0.833355
vt 0.833333 0.000000
vt 0.833333 0.174517
vt 0.833333 0.833318
vt 0.000058 1.001022
vt 0.000058 0.656250
vt 0.999942 0.656250
vt 0.999942 1.001023
vt 0.749971 1.001023
vt 0.250029 1.001022
vt 0.999942 0.666758
vt 0.999942 1.000053
vt 0.000058 1.000053
vt 0.000058 0.666758
vt 0.250029 0.666758
vt 0.749971 0.666758
vt 1.000000 0.656250
vt 0.000000 0.656250
vn -1.000000 0.000000 -0.000000
vn 0.000000 -1.000000 -0.000000
vn 1.000000 0.000000 0.000000
vn 0.000000 1.000000 0.000000
vn 0.000000 0.000000 1.000000
vn 0.000000 0.000000 -1.000000
usemtl None
s off
f 13/1/1 16/2/1 2/3/1 1/4/1
f 16/1/2 15/2/2 3/3/2 2/4/2
f 15/3/3 14/5/3 4/1/3 3/2/3
f 14/3/4 13/5/4 1/1/4 4/2/4
f 1/6/5 2/7/5 3/8/5 4/9/5
f 6/6/6 5/7/6 18/10/6 22/11/6 21/12/6 19/13/6
f 17/14/6 19/13/6 21/12/6 24/15/6
f 22/11/6 18/10/6 20/16/6 23/17/6
f 8/8/6 7/9/6 17/14/6 24/18/6 23/17/6 20/16/6
f 5/19/4 10/20/4 12/21/4 8/22/4 20/23/4 18/24/4
f 7/25/2 11/26/2 9/27/2 6/28/2 19/29/2 17/30/2
f 9/9/5 11/6/5 12/7/5 10/8/5
f 6/25/1 9/26/1 10/27/1 5/28/1
f 11/9/3 7/31/3 8/32/3 12/6/3
f 14/8/6 15/9/6 16/6/6 13/7/6
g eastInsulation
v 0.187500 0.687500 0.187500
v 0.187500 0.687500 -0.187500
v 0.187500 0.312500 -0.187500
v 0.187500 0.312500 0.187500
v 0.500000 0.687500 0.187500
v 0.500000 0.687500 -0.187500
v 0.500000 0.312500 -0.187500
v 0.500000 0.312500 0.187500
v 0.375000 0.687500 -0.187500
v 0.375000 0.687500 0.187500
v 0.375000 0.312500 -0.187500
v 0.375000 0.312500 0.187500
v 0.312500 0.687500 0.187500
v 0.312500 0.312500 0.187500
v 0.312500 0.312500 -0.187500
v 0.312500 0.687500 -0.187500
v 0.500000 0.375000 -0.187500
v 0.500000 0.625000 0.187500
v 0.500000 0.625000 -0.187500
v 0.500000 0.375000 0.187500
v 0.500000 0.625000 -0.125000
v 0.500000 0.625000 0.125000
v 0.500000 0.375000 0.125000
v 0.500000 0.375000 -0.125000
vt 0.000058 0.000058
vt 0.999942 0.000058
vt 0.999942 0.333353
vt 0.000058 0.333353
vt 0.000058 0.333352
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.166667 0.000000
vt 0.166667 0.174442
vt 0.166667 0.833330
vt 0.166667 1.000000
vt 0.833333 1.000000
vt 0.833333 0.833355
vt 0.833333 0.000000
vt 0.833333 0.174517
vt 0.833333 0.833318
vt 0.000058 1.001022
vt 0.000058 0.656250
vt 0.999942 0.656250
vt 0.999942 1.001023
vt 0.749971 1.001023
vt 0.250029 1.001022
vt 0.999942 0.666758
vt 0.999942 1.000053
vt 0.000058 1.000053
vt 0.000058 0.666758
vt 0.250029 0.666758
vt 0.749971 0.666758
vt 1.000000 0.656250
vt 0.000000 0.656250
usemtl None
s off
f 37/33/4 40/34/4 26/35/4 25/36/4
f 40/33/6 39/34/6 27/35/6 26/36/6
f 39/35/2 38/37/2 28/33/2 27/34/2
f 38/35/5 37/37/5 25/33/5 28/34/5
f 25/38/1 26/39/1 27/40/1 28/41/1
f 30/38/3 29/39/3 42/42/3 46/43/3 45/44/3 43/45/3
f 41/46/3 43/45/3 45/44/3 48/47/3
f 46/43/3 42/42/3 44/48/3 47/49/3
f 32/40/3 31/41/3 41/46/3 48/50/3 47/49/3 44/48/3
f 29/51/5 34/52/5 36/53/5 32/54/5 44/55/5 42/56/5
f 31/57/6 35/58/6 33/59/6 30/60/6 43/61/6 41/62/6
f 33/41/1 35/38/1 36/39/1 34/40/1
f 30/57/4 33/58/4 34/59/4 29/60/4
f 35/41/2 31/63/2 32/64/2 36/38/2
f 38/40/3 39/41/3 40/38/3 37/39/3
g westInsulation
v -0.187500 0.312500 0.187500
v -0.187500 0.312500 -0.187500
v -0.187500 0.687500 -0.187500
v -0.187500 0.687500 0.187500
v -0.500000 0.312500 0.187500
v -0.500000 0.312500 -0.187500
v -0.500000 0.687500 -0.187500
v -0.500000 0.687500 0.187500
v -0.375000 0.312500 -0.187500
v -0.375000 0.312500 0.187500
v -0.375000 0.687500 -0.187500
v -0.375000 0.687500 0.187500
v -0.312500 0.312500 0.187500
v -0.312500 0.687500 0.187500
v -0.312500 0.687500 -0.187500
v -0.312500 0.312500 -0.187500
v -0.500000 0.625000 -0.187500
v -0.500000 0.375000 0.187500
v -0.500000 0.375000 -0.187500
v -0.500000 0.625000 0.187500
v -0.500000 0.375000 -0.125000
v -0.500000 0.375000 0.125000
v -0.500000 0.625000 0.125000
v -0.500000 0.625000 -0.125000
vt 0.000058 0.000058
vt 0.999942 0.000058
vt 0.999942 0.333353
vt 0.000058 0.333353
vt 0.000058 0.333352
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.166667 0.000000
vt 0.166667 0.174442
vt 0.166667 0.833330
vt 0.166667 1.000000
vt 0.833333 1.000000
vt 0.833333 0.833355
vt 0.833333 0.000000
vt 0.833333 0.174517
vt 0.833333 0.833318
vt 0.000058 1.001022
vt 0.000058 0.656250
vt 0.999942 0.656250
vt 0.999942 1.001023
vt 0.749971 1.001023
vt 0.250029 1.001022
vt 0.999942 0.666758
vt 0.999942 1.000053
vt 0.000058 1.000053
vt 0.000058 0.666758
vt 0.250029 0.666758
vt 0.749971 0.666758
vt 1.000000 0.656250
vt 0.000000 0.656250
usemtl None
s off
f 61/65/2 64/66/2 50/67/2 49/68/2
f 64/65/6 63/66/6 51/67/6 50/68/6
f 63/67/4 62/69/4 52/65/4 51/66/4
f 62/67/5 61/69/5 49/65/5 52/66/5
f 49/70/3 50/71/3 51/72/3 52/73/3
f 54/70/1 53/71/1 66/74/1 70/75/1 69/76/1 67/77/1
f 65/78/1 67/77/1 69/76/1 72/79/1
f 70/75/1 66/74/1 68/80/1 71/81/1
f 56/72/1 55/73/1 65/78/1 72/82/1 71/81/1 68/80/1
f 53/83/5 58/84/5 60/85/5 56/86/5 68/87/5 66/88/5
f 55/89/6 59/90/6 57/91/6 54/92/6 67/93/6 65/94/6
f 57/73/3 59/70/3 60/71/3 58/72/3
f 54/89/2 57/90/2 58/91/2 53/92/2
f 59/73/4 55/95/4 56/96/4 60/70/4
f 62/72/1 63/73/1 64/70/1 61/71/1
g downInsulation
v -0.187500 0.312500 -0.187500
v -0.187500 0.312500 0.187500
v 0.187500 0.312500 0.187500
v 0.187500 0.312500 -0.187500
v -0.187500 0.000000 -0.187500
v -0.187500 0.000000 0.187500
v 0.187500 0.000000 0.187500
v 0.187500 0.000000 -0.187500
v -0.187500 0.125000 0.187500
v -0.187500 0.125000 -0.187500
v 0.187500 0.125000 0.187500
v 0.187500 0.125000 -0.187500
v -0.187500 0.187500 -0.187500
v 0.187500 0.187500 -0.187500
v 0.187500 0.187500 0.187500
v -0.187500 0.187500 0.187500
v 0.125000 0.000000 0.187500
v -0.125000 0.000000 -0.187500
v -0.125000 0.000000 0.187500
v 0.125000 0.000000 -0.187500
v -0.125000 0.000000 0.125000
v -0.125000 0.000000 -0.125000
v 0.125000 0.000000 -0.125000
v 0.125000 0.000000 0.125000
vt 0.000058 0.000058
vt 0.999942 0.000058
vt 0.999942 0.333353
vt 0.000058 0.333353
vt 0.000058 0.333352
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.166667 0.000000
vt 0.166667 0.174442
vt 0.166667 0.833330
vt 0.166667 1.000000
vt 0.833333 1.000000
vt 0.833333 0.833355
vt 0.833333 0.000000
vt 0.833333 0.174517
vt 0.833333 0.833318
vt 0.000058 1.001022
vt 0.000058 0.656250
vt 0.999942 0.656250
vt 0.999942 1.001023
vt 0.749971 1.001023
vt 0.250029 1.001022
vt 0.999942 0.666758
vt 0.999942 1.000053
vt 0.000058 1.000053
vt 0.000058 0.666758
vt 0.250029 0.666758
vt 0.749971 0.666758
vt 1.000000 0.656250
vt 0.000000 0.656250
usemtl None
s off
f 85/97/1 88/98/1 74/99/1 73/100/1
f 88/97/5 87/98/5 75/99/5 74/100/5
f 87/99/3 86/101/3 76/97/3 75/98/3
f 86/99/6 85/101/6 73/97/6 76/98/6
f 73/102/4 74/103/4 75/104/4 76/105/4
f 78/102/2 77/103/2 90/106/2 94/107/2 93/108/2 91/109/2
f 89/110/2 91/109/2 93/108/2 96/111/2
f 94/107/2 90/106/2 92/112/2 95/113/2
f 80/104/2 79/105/2 89/110/2 96/114/2 95/113/2 92/112/2
f 77/115/6 82/116/6 84/117/6 80/118/6 92/119/6 90/120/6
f 79/121/5 83/122/5 81/123/5 78/124/5 91/125/5 89/126/5
f 81/105/4 83/102/4 84/103/4 82/104/4
f 78/121/1 81/122/1 82/123/1 77/124/1
f 83/105/3 79/127/3 80/128/3 84/102/3
f 86/104/2 87/105/2 88/102/2 85/103/2
g northInsulation
v -0.187500 0.312500 0.187500
v -0.187500 0.687500 0.187500
v 0.187500 0.687500 0.187500
v 0.187500 0.312500 0.187500
v -0.187500 0.312500 0.500000
v -0.187500 0.687500 0.500000
v 0.187500 0.687500 0.500000
v 0.187500 0.312500 0.500000
v -0.187500 0.687500 0.375000
v -0.187500 0.312500 0.375000
v 0.187500 0.687500 0.375000
v 0.187500 0.312500 0.375000
v -0.187500 0.312500 0.312500
v 0.187500 0.312500 0.312500
v 0.187500 0.687500 0.312500
v -0.187500 0.687500 0.312500
v 0.125000 0.687500 0.500000
v -0.125000 0.312500 0.500000
v -0.125000 0.687500 0.500000
v 0.125000 0.312500 0.500000
v -0.125000 0.625000 0.500000
v -0.125000 0.375000 0.500000
v 0.125000 0.375000 0.500000
v 0.125000 0.625000 0.500000
vt 0.000058 0.000058
vt 0.999942 0.000058
vt 0.999942 0.333353
vt 0.000058 0.333353
vt 0.000058 0.333352
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.166667 0.000000
vt 0.166667 0.174442
vt 0.166667 0.833330
vt 0.166667 1.000000
vt 0.833333 1.000000
vt 0.833333 0.833355
vt 0.833333 0.000000
vt 0.833333 0.174517
vt 0.833333 0.833318
vt 0.000058 1.001022
vt 0.000058 0.656250
vt 0.999942 0.656250
vt 0.999942 1.001023
vt 0.749971 1.001023
vt 0.250029 1.001022
vt 0.999942 0.666758
vt 0.999942 1.000053
vt 0.000058 1.000053
vt 0.000058 0.666758
vt 0.250029 0.666758
vt 0.749971 0.666758
vt 1.000000 0.656250
vt 0.000000 0.656250
usemtl None
s off
f 109/129/1 112/130/1 98/131/1 97/132/1
f 112/129/4 111/130/4 99/131/4 98/132/4
f 111/131/3 110/133/3 100/129/3 99/130/3
f 110/131/2 109/133/2 97/129/2 100/130/2
f 97/134/6 98/135/6 99/136/6 100/137/6
f 102/134/5 101/135/5 114/138/5 118/139/5 117/140/5 115/141/5
f 113/142/5 115/141/5 117/140/5 120/143/5
f 118/139/5 114/138/5 116/144/5 119/145/5
f 104/136/5 103/137/5 113/142/5 120/146/5 119/145/5 116/144/5
f 101/147/2 106/148/2 108/149/2 104/150/2 116/151/2 114/152/2
f 103/153/4 107/154/4 105/155/4 102/156/4 115/157/4 113/158/4
f 105/137/6 107/134/6 108/135/6 106/136/6
f 102/153/1 105/154/1 106/155/1 101/156/1
f 107/137/3 103/159/3 104/160/3 108/134/3
f 110/136/5 111/137/5 112/134/5 109/135/5
g upInsulation
v -0.187500 0.687500 0.187500
v -0.187500 0.687500 -0.187500
v 0.187500 0.687500 -0.187500
v 0.187500 0.687500 0.187500
v -0.187500 1.000000 0.187500
v -0.187500 1.000000 -0.187500
v 0.187500 1.000000 -0.187500
v 0.187500 1.000000 0.187500
v -0.187500 0.875000 -0.187500
v -0.187500 0.875000 0.187500
v 0.187500 0.875000 -0.187500
v 0.187500 0.875000 0.187500
v -0.187500 0.812500 0.187500
v 0.187500 0.812500 0.187500
v 0.187500 0.812500 -0.187500
v -0.187500 0.812500 -0.187500
v 0.125000 1.000000 -0.187500
v -0.125000 1.000000 0.187500
v -0.125000 1.000000 -0.187500
v 0.125000 1.000000 0.187500
v -0.125000 1.000000 -0.125000
v -0.125000 1.000000 0.125000
v 0.125000 1.000000 0.125000
v 0.125000 1.000000 -0.125000
vt 0.000058 0.000058
vt 0.999942 0.000058
vt 0.999942 0.333353
vt 0.000058 0.333353
vt 0.000058 0.333352
vt 0.000000 1.000000
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.166667 0.000000
vt 0.166667 0.174442
vt 0.166667 0.833330
vt 0.166667 1.000000
vt 0.833333 1.000000
vt 0.833333 0.833355
vt 0.833333 0.000000
vt 0.833333 0.174517
vt 0.833333 0.833318
vt 0.000058 1.001022
vt 0.000058 0.656250
vt 0.999942 0.656250
vt 0.999942 1.001023
vt 0.749971 1.001023
vt 0.250029 1.001022
vt 0.999942 0.666758
vt 0.999942 1.000053
vt 0.000058 1.000053
vt 0.000058 0.666758
vt 0.250029 0.666758
vt 0.749971 0.666758
vt 1.000000 0.656250
vt 0.000000 0.656250
usemtl None
s off
f 133/161/1 136/162/1 122/163/1 121/164/1
f 136/161/6 135/162/6 123/163/6 122/164/6
f 135/163/3 134/165/3 124/161/3 123/162/3
f 134/163/5 133/165/5 121/161/5 124/162/5
f 121/166/2 122/167/2 123/168/2 124/169/2
f 126/166/4 125/167/4 138/170/4 142/171/4 141/172/4 139/173/4
f 137/174/4 139/173/4 141/172/4 144/175/4
f 142/171/4 138/170/4 140/176/4 143/177/4
f 128/168/4 127/169/4 137/174/4 144/178/4 143/177/4 140/176/4
f 125/179/5 130/180/5 132/181/5 128/182/5 140/183/5 138/184/5
f 127/185/6 131/186/6 129/187/6 126/188/6 139/189/6 137/190/6
f 129/169/2 131/166/2 132/167/2 130/168/2
f 126/185/1 129/186/1 130/187/1 125/188/1
f 131/169/3 127/191/3 128/192/3 132/166/3
f 134/168/4 135/169/4 136/166/4 133/167/4
g centerInsulation
v -0.187500 0.312500 0.187500
v -0.187500 0.312500 -0.187500
v 0.187500 0.312500 -0.187500
v 0.187500 0.312500 0.187500
v -0.187500 0.687500 0.187500
v -0.187500 0.687500 -0.187500
v 0.187500 0.687500 -0.187500
v 0.187500 0.687500 0.187500
vt 0.000100 0.000100
vt 0.999900 0.000100
vt 0.999900 0.999900
vt 0.000100 0.999900
vt 0.000000 0.000000
vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
usemtl None
s off
f 149/193/1 150/194/1 146/195/1 145/196/1
f 150/193/6 151/194/6 147/195/6 146/196/6
f 151/197/3 152/198/3 148/199/3 147/200/3
f 152/195/5 149/196/5 145/193/5 148/194/5
f 145/196/2 146/193/2 147/194/2 148/195/2
f 152/194/4 151/195/4 150/196/4 149/193/4
g down
v -0.125000 0.000000 0.125000
v 0.125000 0.000000 0.125000
v 0.125000 0.375000 0.125000
v -0.125000 0.375000 0.125000
v -0.125000 0.000000 -0.125000
v 0.125000 0.000000 -0.125000
v 0.125000 0.375000 -0.125000
v -0.125000 0.375000 -0.125000
vt 0.453125 0.828125
vt 0.390625 0.828125
vt 0.390625 0.765625
vt 0.453125 0.765625
vt 0.453125 0.671875
vt 0.515625 0.671875
vt 0.515625 0.765625
vt 0.515625 0.828125
vt 0.578125 0.671875
vt 0.578125 0.765625
vt 0.390625 0.671875
vt 0.328125 0.671875
vt 0.328125 0.765625
usemtl None_Wire
s off
f 157/201/2 158/202/2 154/203/2 153/204/2
f 158/204/3 159/205/3 155/206/3 154/207/3
f 159/208/4 160/201/4 156/204/4 155/207/4
f 160/207/1 157/206/1 153/209/1 156/210/1
f 153/204/5 154/203/5 155/211/5 156/205/5
f 160/212/6 159/211/6 158/203/6 157/213/6
g up
v -0.125000 1.000000 -0.125000
v 0.125000 1.000000 -0.125000
v 0.125000 0.625000 -0.125000
v -0.125000 0.625000 -0.125000
v -0.125000 1.000000 0.125000
v 0.125000 1.000000 0.125000
v 0.125000 0.625000 0.125000
v -0.125000 0.625000 0.125000
vt 0.453125 0.828125
vt 0.390625 0.828125
vt 0.390625 0.765625
vt 0.453125 0.765625
vt 0.453125 0.671875
vt 0.515625 0.671875
vt 0.515625 0.765625
vt 0.515625 0.828125
vt 0.578125 0.671875
vt 0.578125 0.765625
vt 0.390625 0.671875
vt 0.328125 0.671875
vt 0.328125 0.765625
usemtl None_Wire
s off
f 165/214/4 166/215/4 162/216/4 161/217/4
f 166/217/3 167/218/3 163/219/3 162/220/3
f 167/221/2 168/214/2 164/217/2 163/220/2
f 168/220/1 165/219/1 161/222/1 164/223/1
f 161/217/6 162/216/6 163/224/6 164/218/6
f 168/225/5 167/224/5 166/216/5 165/226/5
g west
v -0.500000 0.375000 0.125000
v -0.500000 0.375000 -0.125000
v -0.125000 0.375000 -0.125000
v -0.125000 0.375000 0.125000
v -0.500000 0.625000 0.125000
v -0.500000 0.625000 -0.125000
v -0.125000 0.625000 -0.125000
v -0.125000 0.625000 0.125000
vt 0.312500 0.734375
vt 0.250000 0.734375
vt 0.250000 0.671875
vt 0.312500 0.671875
vt 0.156250 0.671875
vt 0.156250 0.734375
vt 0.093750 0.734375
vt 0.093750 0.671875
vt 0.000000 0.671875
vt 0.000000 0.734375
vt 0.218750 0.828125
vt 0.156250 0.828125
vt 0.218750 0.734375
vt 0.093750 0.828125
usemtl None_Wire
s off
f 173/227/1 174/228/1 170/229/1 169/230/1
f 174/231/6 175/229/6 171/228/6 170/232/6
f 175/232/3 176/233/3 172/234/3 171/231/3
f 176/235/5 173/234/5 169/233/5 172/236/5
f 169/237/2 170/238/2 171/232/2 172/239/2
f 176/233/4 175/232/4 174/238/4 173/240/4
g east
v 0.500000 0.375000 -0.125000
v 0.500000 0.375000 0.125000
v 0.125000 0.375000 0.125000
v 0.125000 0.375000 -0.125000
v 0.500000 0.625000 -0.125000
v 0.500000 0.625000 0.125000
v 0.125000 0.625000 0.125000
v 0.125000 0.625000 -0.125000
vt 0.312500 0.734375
vt 0.250000 0.734375
vt 0.250000 0.671875
vt 0.312500 0.671875
vt 0.156250 0.671875
vt 0.156250 0.734375
vt 0.093750 0.734375
vt 0.093750 0.671875
vt 0.000000 0.671875
vt 0.000000 0.734375
vt 0.218750 0.828125
vt 0.156250 0.828125
vt 0.218750 0.734375
vt 0.093750 0.828125
usemtl None_Wire
s off
f 181/241/3 182/242/3 178/243/3 177/244/3
f 182/245/5 183/243/5 179/242/5 178/246/5
f 183/246/1 184/247/1 180/248/1 179/245/1
f 184/249/6 181/248/6 177/247/6 180/250/6
f 177/251/2 178/252/2 179/246/2 180/253/2
f 184/247/4 183/246/4 182/252/4 181/254/4
g north
v 0.125000 0.375000 0.500000
v -0.125000 0.375000 0.500000
v -0.125000 0.375000 0.125000
v 0.125000 0.375000 0.125000
v 0.125000 0.625000 0.500000
v -0.125000 0.625000 0.500000
v -0.125000 0.625000 0.125000
v 0.125000 0.625000 0.125000
vt 0.484375 0.937500
vt 0.546875 0.937500
vt 0.546875 0.875000
vt 0.484375 0.875000
vt 0.640625 0.937500
vt 0.640625 0.875000
vt 0.328125 0.937500
vt 0.390625 0.937500
vt 0.390625 0.875000
vt 0.328125 0.875000
vt 0.484375 1.000000
vt 0.578125 1.000000
vt 0.578125 0.937500
vt 0.390625 1.000000
usemtl None_Wire
s off
f 189/255/5 190/256/5 186/257/5 185/258/5
f 190/256/1 191/259/1 187/260/1 186/257/1
f 191/261/6 192/262/6 188/263/6 187/264/6
f 192/262/3 189/255/3 185/258/3 188/263/3
f 185/255/2 186/265/2 187/266/2 188/267/2
f 192/255/4 191/265/4 190/268/4 189/262/4
g south
v -0.125000 0.375000 -0.500000
v 0.125000 0.375000 -0.500000
v 0.125000 0.375000 -0.125000
v -0.125000 0.375000 -0.125000
v -0.125000 0.625000 -0.500000
v 0.125000 0.625000 -0.500000
v 0.125000 0.625000 -0.125000
v -0.125000 0.625000 -0.125000
vt 0.484375 0.937500
vt 0.546875 0.937500
vt 0.546875 0.875000
vt 0.484375 0.875000
vt 0.640625 0.937500
vt 0.640625 0.875000
vt 0.328125 0.937500
vt 0.390625 0.937500
vt 0.390625 0.875000
vt 0.328125 0.875000
vt 0.484375 1.000000
vt 0.578125 1.000000
vt 0.578125 0.937500
vt 0.390625 1.000000
usemtl None_Wire
s off
f 197/269/6 198/270/6 194/271/6 193/272/6
f 198/270/3 199/273/3 195/274/3 194/271/3
f 199/275/5 200/276/5 196/277/5 195/278/5
f 200/276/1 197/269/1 193/272/1 196/277/1
f 193/269/2 194/279/2 195/280/2 196/281/2
f 200/269/4 199/279/4 198/282/4 197/276/4
g center
v -0.125000 0.375000 0.125000
v -0.125000 0.375000 -0.125000
v 0.125000 0.375000 -0.125000
v 0.125000 0.375000 0.125000
v -0.125000 0.625000 0.125000
v -0.125000 0.625000 -0.125000
v 0.125000 0.625000 -0.125000
v 0.125000 0.625000 0.125000
vt 0.187500 1.000000
vt 0.125000 1.000000
vt 0.125000 0.937500
vt 0.187500 0.937500
vt 0.000000 0.937500
vt 0.000000 0.875000
vt 0.062500 0.875000
vt 0.062500 0.937500
vt 0.125000 0.875000
vt 0.187500 0.875000
vt 0.062500 1.000000
vt 0.250000 0.875000
vt 0.250000 0.937500
usemtl None_ 1
s off
f 205/283/1 206/284/1 202/285/1 201/286/1
f 206/287/6 207/288/6 203/289/6 202/290/6
f 207/286/3 208/285/3 204/291/3 203/292/3
f 208/290/5 205/289/5 201/291/5 204/285/5
f 201/284/2 202/293/2 203/290/2 204/285/2
f 208/292/4 207/294/4 206/295/4 205/286/4

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -0,0 +1,26 @@
package resonantinduction.render;
import codechicken.lib.vec.Matrix4;
import codechicken.lib.vec.Transformation;
import codechicken.lib.vec.VariableTransformation;
import codechicken.lib.vec.Vector3;
public class InvertX extends VariableTransformation {
public InvertX() {
super(new Matrix4(
-1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1));
}
@Override
public void apply(Vector3 vec) {
this.mat.apply(vec);
}
@Override
public Transformation inverse() {
return this;
}
}

View file

@ -1,11 +1,25 @@
package resonantinduction.render;
import java.util.Map;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.Icon;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.common.ForgeDirection;
import org.lwjgl.opengl.GL11;
import codechicken.multipart.TMultiPart;
import codechicken.lib.colour.Colour;
import codechicken.lib.colour.ColourRGBA;
import codechicken.lib.lighting.LightModel;
import codechicken.lib.render.CCModel;
import codechicken.lib.render.CCRenderState;
import codechicken.lib.render.ColourMultiplier;
import codechicken.lib.render.IconTransformation;
import codechicken.lib.render.TextureUtils;
import codechicken.lib.vec.Rotation;
import codechicken.lib.vec.Translation;
import resonantinduction.ResonantInduction;
import resonantinduction.model.ModelInsulation;
import resonantinduction.model.ModelWire;
@ -23,14 +37,28 @@ import cpw.mods.fml.relauncher.SideOnly;
*
*/
@SideOnly(Side.CLIENT)
public class RenderWirePart
public class RenderPartWire
{
private static final ResourceLocation WIRE_TEXTURE = new ResourceLocation(ResonantInduction.DOMAIN, ResonantInduction.MODEL_TEXTURE_DIRECTORY + "wire.png");
private static final ResourceLocation INSULATION_TEXTURE = new ResourceLocation(ResonantInduction.DOMAIN, ResonantInduction.MODEL_TEXTURE_DIRECTORY + "insulation.png");
public static final ModelWire WIRE_MODEL = new ModelWire();
public static final ModelInsulation INSULATION_MODEL = new ModelInsulation();
public static final Map<String, CCModel> models;
public static Icon wireIcon;
public static Icon insulationIcon;
public void renderModelAt(PartWire part, double x, double y, double z, float f)
static
{
models = CCModel.parseObjModels(new ResourceLocation("resonantinduction", "models/wire.obj"), 7, new InvertX());
for (CCModel c : models.values()) {
c.apply(new Translation(.5, 0, .5));
c.computeLighting(LightModel.standardLightModel);
c.shrinkUVs(0.0005);
}
}
public void renderModelAt(PartWire part, double x, double y, double z, float f)
{
if (part != null)
{
@ -127,4 +155,49 @@ public class RenderWirePart
GL11.glPopMatrix();
}
}
public static void registerIcons(IconRegister iconReg)
{
wireIcon = iconReg.registerIcon("resonantinduction:models/wire");
insulationIcon = iconReg.registerIcon("resonantinduction:models/insulation");
}
public void renderStatic(PartWire wire)
{
TextureUtils.bindAtlas(0);
CCRenderState.reset();
CCRenderState.useModelColours(true);
CCRenderState.setBrightness(wire.world(), wire.x(), wire.y(), wire.z());
renderSide(ForgeDirection.UNKNOWN, wire);
wire.adjacentConnections = null;
TileEntity[] adjacentTiles = wire.getAdjacentConnections();
for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
{
if (adjacentTiles[side.ordinal()] != null)
renderSide(side, wire);
}
}
public void renderSide(ForgeDirection side, PartWire wire)
{
String name = side.name().toLowerCase();
name = name.equals("unknown") ? "center" : name;
Vector3 materialColour = wire.getMaterial().color;
Colour colour = new ColourRGBA(materialColour.x, materialColour.y, materialColour.z, 1);
renderPart(wireIcon, models.get(name), wire.x(), wire.y(), wire.z(), colour);
if (wire.isInsulated())
{
Vector3 vecColour = ResonantInduction.DYE_COLORS[wire.dyeID];
Colour insulationColour = new ColourRGBA(vecColour.x, vecColour.y, vecColour.z, 1);
renderPart(insulationIcon, models.get(name+"Insulation"), wire.x(), wire.y(), wire.z(), insulationColour);
}
}
public void renderPart(Icon icon, CCModel cc, double x, double y, double z, Colour colour) {
cc.render(0, cc.verts.length,
Rotation.sideOrientation(0, Rotation.rotationTo(0, 2)).at(codechicken.lib.vec.Vector3.center)
.with(new Translation(x, y, z)), new IconTransformation(icon), new ColourMultiplier(colour));
}
}

View file

@ -4,6 +4,7 @@ import java.util.List;
import resonantinduction.ResonantInduction;
import resonantinduction.TabRI;
import resonantinduction.render.RenderPartWire;
import resonantinduction.wire.EnumWireMaterial;
import universalelectricity.core.electricity.ElectricityDisplay;
import universalelectricity.core.electricity.ElectricityDisplay.ElectricUnit;
@ -65,8 +66,10 @@ public class ItemPartWire extends JItemMultiPart
{
for (int i = 0; i < EnumWireMaterial.values().length; i++)
{
this.icons[i] = iconRegister.registerIcon(this.getUnlocalizedName(new ItemStack(this.itemID, 1, i)).replaceAll("item.", ""));
this.icons[i] = iconRegister.registerIcon(this.getUnlocalizedName(new ItemStack(this.itemID, 1, i)).replaceAll("item.", "").replaceAll("multi",""));
}
RenderPartWire.registerIcons(iconRegister);
}
@Override
@ -82,5 +85,12 @@ public class ItemPartWire extends JItemMultiPart
listToAddTo.add(new ItemStack(itemID, 1, mat.ordinal()));
}
}
@Override
@SideOnly(Side.CLIENT)
public int getSpriteNumber()
{
return 0;
}
}

View file

@ -11,7 +11,7 @@ import java.util.Set;
import resonantinduction.PacketHandler;
import resonantinduction.ResonantInduction;
import resonantinduction.base.IPacketReceiver;
import resonantinduction.render.RenderWirePart;
import resonantinduction.render.RenderPartWire;
import resonantinduction.wire.EnumWireMaterial;
import resonantinduction.wire.IInsulatedMaterial;
import resonantinduction.wire.IInsulation;
@ -41,6 +41,7 @@ import universalelectricity.core.vector.VectorHelper;
import buildcraft.api.power.PowerHandler;
import codechicken.lib.data.MCDataInput;
import codechicken.lib.data.MCDataOutput;
import codechicken.lib.lighting.LazyLightMatrix;
import codechicken.lib.raytracer.IndexedCuboid6;
import codechicken.lib.render.CCRenderState;
import codechicken.lib.render.IconTransformation;
@ -64,7 +65,7 @@ public class PartWire extends PartUniversalConductor implements IPacketReceiver,
public static final int DEFAULT_COLOR = 16;
public int dyeID = DEFAULT_COLOR;
public boolean isInsulated = false;
public static RenderWirePart renderer = new RenderWirePart();
public static RenderPartWire renderer = new RenderPartWire();
public static IndexedCuboid6[] sides = new IndexedCuboid6[7];
public EnumWireMaterial material = EnumWireMaterial.COPPER;
public byte currentConnections;
@ -142,6 +143,7 @@ public class PartWire extends PartUniversalConductor implements IPacketReceiver,
@Override
public void refresh()
{
this.adjacentConnections = null;
if (!this.world().isRemote)
{
if (isInsulated() || this.world().isBlockIndirectlyGettingPowered(this.x(), this.y(), this.z()))
@ -160,9 +162,7 @@ public class PartWire extends PartUniversalConductor implements IPacketReceiver,
}
}
}
this.adjacentConnections = null;
for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
{
if (this.canConnect(side))
@ -182,6 +182,7 @@ public class PartWire extends PartUniversalConductor implements IPacketReceiver,
this.getNetwork().refresh();
}
tile().markRender();
}
@Override
@ -325,12 +326,20 @@ public class PartWire extends PartUniversalConductor implements IPacketReceiver,
}
@Override
@SideOnly(Side.CLIENT)
public void renderStatic(codechicken.lib.vec.Vector3 pos, LazyLightMatrix olm, int pass)
{
if (pass ==0)
renderer.renderStatic(this);
}
/* @Override
@SideOnly(Side.CLIENT)
public void renderDynamic(codechicken.lib.vec.Vector3 pos, float frame, int pass)
{
renderer.renderModelAt(this, pos.x, pos.y, pos.z, frame);
}
*/
@Override
public void drawBreaking(RenderBlocks renderBlocks)
{
@ -467,4 +476,10 @@ public class PartWire extends PartUniversalConductor implements IPacketReceiver,
{
setInsulated(true);
}
@Override
public void onNeighborChanged()
{
refresh();
}
}