]> git.tdb.fi Git - r2c2.git/commitdiff
Recreate the icons in Blender using faces instead of lines
authorMikko Rasa <tdb@tdb.fi>
Wed, 20 Nov 2013 12:33:58 +0000 (14:33 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 20 Nov 2013 12:33:58 +0000 (14:33 +0200)
The OpenGL specification gives implementors enough leeway with line
drawing that they cannot be used for this sort of pixel-scale graphics.

icons.blend [new file with mode: 0644]
icons/beamgate.mesh
icons/flex.mesh
icons/signal.mesh
icons/trackcircuit.mesh
icons/turnout.mesh

diff --git a/icons.blend b/icons.blend
new file mode 100644 (file)
index 0000000..797e9b1
Binary files /dev/null and b/icons.blend differ
index 8db75e78960662b85901a1927536259c4b31af9a..99c649500c145220ec069019e899c2ed09bf8931 100644 (file)
@@ -1,17 +1,24 @@
-vertices VERTEX2
+vertices NORMAL3 VERTEX3
 {
-       vertex2 0.0 0.0;
-       vertex2 0.0 0.5;
-       vertex2 0.2 0.5;
-       vertex2 1.0 0.0;
-       vertex2 1.0 0.5;
-       vertex2 0.8 0.5;
+       normal3 0 0 1;
+       vertex3 0.1 0 0;
+       vertex3 0 0 0;
+       vertex3 0.1 0.4 0;
+       vertex3 0 0.5 0;
+       vertex3 0.2 0.4 0;
+       vertex3 0.2 0.5 0;
+       vertex3 0.9 0 0;
+       vertex3 1 0 0;
+       vertex3 0.9 0.4 0;
+       vertex3 1 0.5 0;
+       vertex3 0.8 0.4 0;
+       vertex3 0.8 0.5 0;
 };
-batch LINE_STRIP
+batch TRIANGLE_STRIP
 {
-       indices 0 1 2;
+       indices 1 0 3 2 5 4;
 };
-batch LINE_STRIP
+batch TRIANGLE_STRIP
 {
-       indices 3 4 5;
+       indices 6 7 8 9 10 11;
 };
index 2ad62b1468ab4c73cc01e40b8e67aaeb905fc6e9..54843ded82f18b24e16283c739607437a851427c 100644 (file)
@@ -1,19 +1,31 @@
-vertices VERTEX2
+vertices NORMAL3 VERTEX3
 {
-       vertex2 0.0 0.45;
-       vertex2 0.4 0.45;
-       vertex2 0.0 0.65;
-       vertex2 0.4 0.65;
-       vertex2 1.0 0.35;
-       vertex2 0.6 0.35;
-       vertex2 1.0 0.55;
-       vertex2 0.6 0.55;
+       normal3 0 0 1;
+       vertex3 0.4 0.3 0;
+       vertex3 0 0.3 0;
+       vertex3 0.4 0.4 0;
+       vertex3 0 0.4 0;
+       vertex3 0.4 0.6 0;
+       vertex3 0 0.6 0;
+       vertex3 0.4 0.7 0;
+       vertex3 0 0.7 0;
+       vertex3 1 0.3 0;
+       vertex3 0.6 0.3 0;
+       vertex3 1 0.4 0;
+       vertex3 0.6 0.4 0;
+       vertex3 1 0.6 0;
+       vertex3 0.6 0.6 0;
+       vertex3 1 0.7 0;
+       vertex3 0.6 0.7 0;
 };
-batch LINES
+batch TRIANGLES
 {
-       indices 0 1;
-       indices 2 3;
-       indices 4 5;
-       indices 6 7;
+       indices 1 0 2;
+       indices 1 2 3;
+       indices 5 4 6;
+       indices 5 6 7;
+       indices 9 8 10;
+       indices 9 10 11;
+       indices 13 12 14;
+       indices 13 14 15;
 };
-
index 8139f325d767e8686da8585c71a2f5c4afe9ad4a..f0bf662b70231982959c87f83158de7357b9d970 100644 (file)
@@ -1,10 +1,14 @@
-vertices VERTEX2
+vertices NORMAL3 VERTEX3
 {
-       vertex2 0.4 0.0;
-       vertex2 0.4 1.0;
-       vertex2 0.6 1.0;
+       normal3 0 0 1;
+       vertex3 0.5 0 0;
+       vertex3 0.4 0 0;
+       vertex3 0.5 0.9 0;
+       vertex3 0.4 1 0;
+       vertex3 0.7 0.9 0;
+       vertex3 0.7 1 0;
 };
-batch LINE_STRIP
+batch TRIANGLE_STRIP
 {
-       indices 0 1 2;
+       indices 1 0 3 2 5 4;
 };
index cea93f2dd6a16992a8109d8994a2fedbb031d200..ceb3828574c2d8a42dbaa09559e3b35b17a17dd1 100644 (file)
@@ -1,13 +1,35 @@
-vertices VERTEX2
+vertices NORMAL3 VERTEX3
 {
-       vertex2 0.0 0.45;
-       vertex2 0.3 0.45;
-       vertex2 1.0 0.45;
-       vertex2 0.7 0.45;
-       vertex2 0.3 0.65;
+       normal3 0 0 1;
+       vertex3 1 0.6 0;
+       vertex3 0 0.6 0;
+       vertex3 1 0.7 0;
+       vertex3 0 0.7 0;
+       vertex3 0.2 0.3 0;
+       vertex3 0 0.3 0;
+       vertex3 0.2 0.4 0;
+       vertex3 0 0.4 0;
+       vertex3 1 0.3 0;
+       vertex3 0.8 0.3 0;
+       vertex3 1 0.4 0;
+       vertex3 0.8 0.4 0;
+       vertex3 0.7 0.3 0;
+       vertex3 0.4 0.3 0;
+       vertex3 0.7 0.4 0;
+       vertex3 0.3 0.4 0;
+       vertex3 0.4 0.1 0;
+       vertex3 0.3 0.1 0;
 };
-batch LINES
+batch TRIANGLE_STRIP
 {
-       indices 0 1;
-       indices 2 3 3 4;
+       indices 12 14 13 15 16 17;
+};
+batch TRIANGLES
+{
+       indices 1 0 2;
+       indices 1 2 3;
+       indices 5 4 6;
+       indices 5 6 7;
+       indices 9 8 10;
+       indices 9 10 11;
 };
index 6eda269ed082fa88d5b7f3b28ac21362e9d222c1..6cd292a9d8c2c006afdf573f0c6403f190761787 100644 (file)
@@ -1,20 +1,22 @@
-vertices VERTEX2
+vertices NORMAL3 VERTEX3
 {
-       vertex2 0.0 0.3;
-       vertex2 1.0 0.3;
-       vertex2 0.34730 0.33038;
-       vertex2 0.68404 0.42061;
-       vertex2 1.0 0.56795;
-       vertex2 0.0 0.5;
-       vertex2 1.0 0.5;
-       vertex2 0.31257 0.52735;
-       vertex2 0.61564 0.60855;
-       vertex2 0.9 0.74115;
+       normal3 0 0 1;
+       vertex3 0.6 0.3 0;
+       vertex3 0 0.3 0;
+       vertex3 0.53 0.4 0;
+       vertex3 0 0.4 0;
+       vertex3 1 0.8 0;
+       vertex3 1 0.73 0;
+       vertex3 0.93 0.8 0;
+       vertex3 0.67 0.4 0;
+       vertex3 1 0.3 0;
+       vertex3 1 0.4 0;
 };
-batch LINES
+batch TRIANGLE_STRIP
 {
-       indices 0 1;
-       indices 0 2 2 3 3 4;
-       indices 5 6;
-       indices 5 7 7 8 8 9;
+       indices 3 1 2 0 7 8 9;
+};
+batch TRIANGLE_STRIP
+{
+       indices 2 7 6 5 4;
 };