diff --git a/tools/3d/backup/geosphere.mtl b/tools/3d/backup/geosphere.mtl deleted file mode 100644 index d5a1907..0000000 --- a/tools/3d/backup/geosphere.mtl +++ /dev/null @@ -1,12 +0,0 @@ -# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware -# File Created: 30.11.2016 10:09:39 - -newmtl wire_153228153 - Ns 32 - d 1 - Tr 0 - Tf 1 1 1 - illum 2 - Ka 0.600000023842 0.894117712975 0.600000023842 - Kd 0.600000023842 0.894117712975 0.600000023842 - Ks 0.349999994040 0.349999994040 0.349999994040 diff --git a/tools/3d/backup/geosphere.obj b/tools/3d/backup/geosphere.obj deleted file mode 100644 index f43b371..0000000 --- a/tools/3d/backup/geosphere.obj +++ /dev/null @@ -1,73 +0,0 @@ -# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware -# File Created: 30.11.2016 10:09:39 - -mtllib geosphere.mtl - -# -# object GeoSphere001 -# - -v 1.572265744209 2.543979644775 -0.000000000000 -v 0.485856801271 2.543979644775 -1.495313644409 -v -1.271989822388 2.543979644775 -0.924154520035 -v -1.271989703178 2.543979644775 0.924154818058 -v 0.485857069492 2.543979644775 1.495313525200 -v 1.271989703178 -2.543979644775 -0.924154579639 -v -0.485856890678 -2.543979644775 -1.495313525200 -v -1.572265744209 -2.543979644775 0.000000137452 -v -0.485856324434 -2.543979644775 1.495313644409 -v 1.271989703178 -2.543979644775 0.924154758453 -# 10 vertices - -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -# 10 vertex normals - -g GeoSphere001 -usemtl wire_153228153 -f 3//1 4//2 5//3 1//4 2//5 -f 9//6 8//7 7//8 6//9 10//10 -# 2 polygons - -# -# object GeoSphere002 -# - -v 2.704455614090 0.991675138474 -0.000000000000 -v 0.835722684860 0.991675138474 -2.572090387344 -v -2.187950849533 0.991675138474 -1.589638948441 -v -2.187950611115 0.991675138474 1.589639544487 -v 0.835723161697 0.991675138474 2.572090148926 -v 2.187950611115 -0.991675138474 -1.589639067650 -v -0.835722863674 -0.991675138474 -2.572090148926 -v -2.704455614090 -0.991675138474 0.000000236431 -v -0.835721910000 -0.991675138474 2.572090387344 -v 2.187950611115 -0.991675138474 1.589639425278 -# 10 vertices - -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -vn 0.000000000000 -1.000000000000 -0.000000000000 -# 10 vertex normals - -g GeoSphere002 -usemtl wire_153228153 -f 13//11 14//12 15//13 11//14 12//15 -f 19//16 18//17 17//18 16//19 20//20 -# 2 polygons - diff --git a/tools/3d/backup/grid_cube.mtl b/tools/3d/backup/grid_cube.mtl deleted file mode 100644 index 6437a5d..0000000 --- a/tools/3d/backup/grid_cube.mtl +++ /dev/null @@ -1,14 +0,0 @@ -# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware -# File Created: 30.11.2016 10:22:25 - -newmtl _cubeDefault - Ns 10.000000000000 - Ni 1.500000000000 - d 1.000000000000 - Tr 0.000000000000 - Tf 1.000000000000 1.000000000000 1.000000000000 - illum 2 - Ka 0.587999999523 0.587999999523 0.587999999523 - Kd 0.587999999523 0.587999999523 0.587999999523 - Ks 0.000000000000 0.000000000000 0.000000000000 - Ke 0.000000000000 0.000000000000 0.000000000000 diff --git a/tools/3d/backup/grid_cube.obj b/tools/3d/backup/grid_cube.obj deleted file mode 100644 index dac03fb..0000000 --- a/tools/3d/backup/grid_cube.obj +++ /dev/null @@ -1,81 +0,0 @@ -# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware -# File Created: 30.11.2016 10:22:25 - -mtllib grid_cube.mtl - -# -# object Default -# - -v 1.000000000000 -1.000000000000 -0.000000029802 -v -1.000000000000 -1.000000000000 -0.000000029802 -v 1.000000000000 1.000000000000 -0.000000029802 -v -1.000000000000 1.000000000000 -0.000000029802 -v 1.000000000000 0.000000000000 -0.000000029802 -v 0.000000000000 -1.000000000000 -0.000000029802 -v -1.000000000000 0.000000000000 -0.000000029802 -v 0.000000000000 1.000000000000 -0.000000029802 -v 1.000000000000 -0.500000000000 -0.000000029802 -v 0.500000000000 -1.000000000000 -0.000000029802 -v -0.500000000000 -1.000000000000 -0.000000029802 -v -1.000000000000 -0.500000000000 -0.000000029802 -v -1.000000000000 0.500000000000 -0.000000029802 -v -0.500000000000 1.000000000000 -0.000000029802 -v 0.500000000000 1.000000000000 -0.000000029802 -v 1.000000000000 0.500000000000 -0.000000029802 -v 0.500000000000 -0.500000000000 -0.000000029802 -v -0.500000000000 -0.500000000000 -0.000000029802 -v -0.500000000000 0.500000000000 -0.000000029802 -v 0.500000000000 0.500000000000 -0.000000029802 -# 20 vertices - -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -vn 0.000000000000 0.000000000000 -1.000000000000 -# 36 vertex normals - -g Default -usemtl _cubeDefault -f 9//1 1//2 10//3 17//4 -f 11//5 18//6 17//7 10//8 6//9 -f 20//10 16//11 5//12 9//13 17//14 -f 11//15 2//16 12//17 18//18 -f 13//19 19//20 18//21 12//22 7//23 -f 13//24 4//25 14//26 19//27 -f 15//28 20//29 19//30 14//31 8//32 -f 15//33 3//34 16//35 20//36 -# 8 polygons - diff --git a/tools/big_letters/big_letters_final_release.py b/tools/big_letters/big_letters_final_release.py deleted file mode 100644 index ff2d272..0000000 --- a/tools/big_letters/big_letters_final_release.py +++ /dev/null @@ -1,184 +0,0 @@ -import os -import string -import codecs -import ast -import math - -filename_out = "../../src/logos_vertices" -table_size = 512 -table_size_pal = (table_size * 60) // 50 -fix16_precision = 16 -fixed_point_precision = (1 << 16) - -def createLogos(): - logos = [ - # TITAN - [ '*** * *** * ** ', - ' * * * * * *', - ' * * * *** * *', - ' * * * * * * *', - ' * * * * * * *'], - - # DRKLT - [ '** ** * * * ***', - '* * * * * * * * ', - '* * ** ** * * ', - '* * * * * * * * ', - '** * * * * *** * '], - - # OXYRON - [ ' * * * * * ** * ** ', - '* * * * * * * * * * * *', - '* * * *** ** * * * *', - '* * * * * * * * * * *', - ' * * * * * * * * *'], - - # TRBL - [ '*** ** ** * ', - ' * * * * * * ', - ' * ** ** * ', - ' * * * * * * ', - ' * * * ** ***'], - - # DESIRE - [ '** ** ** * ** **', - '* * * * * * * * ', - '* * ** * * ** **', - '* * * * * * * * ', - '** ** ** * * * **'], - - # LEMON - [ '* *** * * * ** ', - '* * *** * * * *', - '* *** * * * * * *', - '* * * * * * * *', - '*** *** * * * * *'], - - # LIVE! - [ '* * * * *** *', - '* * * * *', - '* * * * *** *', - '* * * * * ', - '*** * * *** *'], - - # RSI - [ '** ** *', - '* * * ', - '** * *', - '* * * *', - '* * ** *'], - - # BLAST! - [ '** * * ** *** *', - '* * * * * * * *', - '** * *** * * *', - '* * * * * * * ', - '** *** * * ** * *'], - - # RSI - [ '* * * ', - '* * * * ', - '* * * * ', - '* * * * ', - '*** * ***'] - ] - - return logos - -def Clamp(k, a, b): - k = min(k, b) - k = max(k, a) - return k - -def main(): - - maxwidth = max(len(line) for logo in createLogos() for line in logo) - - print("maxwidth = " + str(maxwidth)) - - logo_vertice = [] - for logo in createLogos(): - new_vertice_list = [] - char_pos_y = 0 - logo_width = len(logo[0]) + 1 - for line in logo: - char_pos_x = 0 - for c in line: - char_pos_x += 1 - if c == '*': - t_char_pos_x = ((320 - logo_width * 12) / 2) + (char_pos_x * 12) - 8 - t_char_pos_y = (char_pos_y * 10) + 100 - (char_pos_x * 2); - t_char_pos_x += 0x80 - t_char_pos_y += 0x80 - t_char_pos_x = int(t_char_pos_x) - t_char_pos_y = int(t_char_pos_y) - new_vertice_list.append([t_char_pos_x, t_char_pos_y]) - char_pos_y += 1 - logo_vertice.append(new_vertice_list) - - print("found " + str(len(logo_vertice)) + " logo(s).") - - ## Creates the H file - f = codecs.open(filename_out + '.h', 'w') - - f.write('#include \n\n') - - f.write('#define MAX_VBALL_LOGO ' + str(len(createLogos())) + '\n\n') - logo_idx = 0 - max_len = 0 - for logo in logo_vertice: - f.write('#define LOGO_VLEN_' + str(logo_idx) + ' ' + str(len(logo_vertice[logo_idx])) + '\n') - max_len = max(max_len, len(logo_vertice[logo_idx])) - logo_idx += 1 - - f.write('#define MAX_LOGO_VLEN ' + str(max_len) + '\n') - - f.write('\n') - - logo_idx = 0 - for logo in logo_vertice: - f.write('const u16 logo_' + str(logo_idx) + '[LOGO_VLEN_' + str(logo_idx) + ' * 2];\n') - logo_idx += 1 - - f.close() - - ## Creates the C file - f = codecs.open(filename_out + '.c', 'w') - - f.write('#include \n') - f.write('#include "' + filename_out + '.h"' + '\n') - f.write('\n') - - logo_idx = 0 - for logo in logo_vertice: - # pretty comment - f.write('/*\n') - for line in createLogos()[logo_idx]: - f.write('\t' + line + '\n') - f.write('*/\n') - f.write('\n') - - f.write('const u16 logo_' + str(logo_idx) + '[LOGO_VLEN_' + str(logo_idx) + ' * 2] = {\n') - - out_str = '' - vertex_idx = 0 - last_y = 0 - for vertex in logo: - if vertex[1] > last_y: - out_str += '\n\t' - out_str += str(vertex[0]) + ', ' + str(vertex[1]) - if vertex_idx < len(logo) - 1: - out_str += ', ' - last_y = vertex[1] - vertex_idx += 1 - f.write('\t' + out_str) - - f.write('\n};\n') - - f.write('\n') - - logo_idx += 1 - - f.close() - -main() \ No newline at end of file