diff --git a/issues.txt b/issues.txt deleted file mode 100644 index 88de038..0000000 --- a/issues.txt +++ /dev/null @@ -1 +0,0 @@ -In world editor, camera cannot rotate more than 90 degrees to the left or right \ No newline at end of file diff --git a/obj_reader.py b/obj_reader.py deleted file mode 100644 index 95f200d..0000000 --- a/obj_reader.py +++ /dev/null @@ -1,49 +0,0 @@ -import numpy as np -from config import Config - -def read_obj_file( path): - # TODO might need to read the lines between vertices - # TODO - # TODO - - with open(path) as file: - all_lines = file.readlines() - file.close() - - all_objects = {} - i = 0 - while i < len(all_lines): - line = all_lines[i] - - if line[0] == "o": - object_name = line.split(" ")[-1].replace("\n", "") - object_vertices = [] - object_lines = [] - i += 1 - while i < len(all_lines) and all_lines[i][0] == "v": - object_vertices.append(all_lines[i]) - i += 1 - while i < len(all_lines) and all_lines[i][0] == "l": - object_lines.append(all_lines[i]) - i += 1 - all_objects[object_name] = {"verts": object_vertices, - "lines": object_lines} - i += 1 - - for objname in all_objects.keys(): - object_vertices = all_objects[objname]["verts"] - vertices_numeric = [] - for vertex in object_vertices: - coords_str = vertex.replace("v ", "").replace("\n", "").split(" ") + ["1.0"] - coords_numeric = [float(value) for value in coords_str] - vertices_numeric.append(coords_numeric) - vertices_numeric = np.array(vertices_numeric).T - vertices_numeric[:3, :] *= Config.world_scale_factor - all_objects[objname]["verts"] = vertices_numeric - - return all_objects - - -all_objects = read_obj_file("data\world.obj") -for objname in all_objects.keys(): - print(all_objects[objname]) \ No newline at end of file diff --git a/recorded_states.pkl b/recorded_states.pkl deleted file mode 100644 index 4e48cbc..0000000 Binary files a/recorded_states.pkl and /dev/null differ diff --git a/world.blend b/world.blend deleted file mode 100644 index 51506ec..0000000 Binary files a/world.blend and /dev/null differ diff --git a/world.blend1 b/world.blend1 deleted file mode 100644 index 1502250..0000000 Binary files a/world.blend1 and /dev/null differ diff --git a/world.obj b/world.obj deleted file mode 100644 index fa5099e..0000000 --- a/world.obj +++ /dev/null @@ -1,651 +0,0 @@ -# Blender v2.79 (sub 0) OBJ File: 'world.blend' -# www.blender.org -mtllib cacatpansat.mtl -o lane.000_Plane -v 20.747952 0.714748 2.719365 -v 4.942120 0.714748 2.719366 -l 2 1 -o tl_green_.011 -v 15.209723 0.709585 -9.236557 -v 14.466714 0.709584 -9.227655 -v 17.103508 0.709585 -9.553463 -v 18.046474 0.709584 -8.407867 -v 19.504078 0.715362 -7.644621 -v 21.254007 0.709584 -7.361191 -v 23.087078 0.709584 -7.345650 -v 16.973589 0.707094 -5.916519 -v 17.248260 0.709586 -10.850368 -v 17.247711 0.709586 -12.685549 -v 16.578091 0.709585 -9.689869 -v 13.986213 0.709584 -9.227655 -v 17.247986 0.709586 -11.767958 -v 16.913176 0.709585 -10.270119 -v 17.247849 0.709586 -12.226753 -v 17.248123 0.709586 -11.309162 -v 17.175884 0.709585 -10.201916 -v 17.038548 0.708340 -7.734991 -v 17.071028 0.708962 -8.644227 -v 17.006069 0.707717 -6.825755 -v 18.775276 0.712473 -8.026244 -v 17.574991 0.709585 -8.980665 -v 20.379044 0.712473 -7.502906 -v 22.170544 0.709584 -7.353420 -v 19.941561 0.713918 -7.573763 -v 19.139677 0.713918 -7.835433 -v 18.410875 0.711029 -8.217056 -v 14.838219 0.709585 -9.232106 -v 15.893908 0.709585 -9.463213 -v 17.054787 0.708651 -8.189610 -l 25 8 -l 31 3 -l 16 13 -l 30 4 -l 28 7 -l 26 9 -l 22 10 -l 19 5 -l 24 6 -l 18 11 -l 4 14 -l 17 15 -l 11 16 -l 12 17 -l 15 18 -l 11 19 -l 32 20 -l 5 21 -l 20 22 -l 29 23 -l 5 24 -l 27 25 -l 8 26 -l 7 27 -l 23 28 -l 6 29 -l 3 30 -l 13 31 -l 21 32 -o tl_red_.013 -v 10.566334 0.709326 -7.341038 -v 15.024377 0.709326 -7.341834 -v 15.804040 0.709326 -7.067829 -v 16.350904 0.709326 -6.527843 -v 16.835102 0.709326 -5.728074 -v 16.280277 0.709326 -7.341834 -v 22.763390 0.706516 -7.381320 -v 17.685806 0.709326 -8.005322 -v 18.753122 0.715848 -8.846636 -v 19.339184 0.709326 -10.120126 -v 19.438091 0.709327 -10.904065 -v 12.795355 0.709326 -7.341436 -v 11.680844 0.709326 -7.341237 -v 13.909866 0.709326 -7.341635 -v 11.123589 0.709326 -7.341138 -v 12.238100 0.709326 -7.341337 -v 13.352611 0.709326 -7.341536 -v 14.467121 0.709326 -7.341735 -v 19.521833 0.707921 -7.361577 -v 17.901054 0.708623 -7.351706 -v 17.090666 0.708975 -7.346770 -v 18.711445 0.708272 -7.356641 -v 21.142612 0.707218 -7.371449 -v 20.332222 0.707570 -7.366513 -v 21.953001 0.706867 -7.376384 -v 16.983042 0.709326 -7.673578 -v 18.219463 0.712587 -8.425980 -v 19.046154 0.712587 -9.483381 -l 42 43 -l 50 34 -l 36 37 -l 57 39 -l 34 35 -l 58 40 -l 35 36 -l 34 38 -l 59 41 -l 60 42 -l 48 44 -l 47 45 -l 49 46 -l 33 47 -l 45 48 -l 44 49 -l 46 50 -l 54 51 -l 53 52 -l 38 53 -l 52 54 -l 56 55 -l 51 56 -l 55 57 -l 38 58 -l 40 59 -l 41 60 -o tl_green_.000_tl_green_.013 -v 21.522888 0.652814 -7.187072 -v 22.740088 0.709584 -7.273295 -v 19.620146 0.709585 -7.785625 -v 18.715801 0.637928 -8.539081 -v 17.702724 0.549509 -9.102361 -v 15.952795 0.709584 -9.487410 -v 14.119722 0.709584 -9.260541 -v 19.257498 0.707094 -10.693600 -v 20.277695 0.709586 -6.154075 -v 20.653055 0.709586 -5.057215 -v 20.628712 0.709585 -6.762991 -v 23.220589 0.709584 -7.272972 -v 22.564571 0.709586 -2.148388 -v 21.608814 0.709586 -3.602802 -v 22.086693 0.709586 -2.875595 -v 21.130936 0.709586 -4.330009 -v 19.948921 0.709585 -6.969851 -v 19.438822 0.708340 -9.239613 -v 19.529484 0.708962 -8.512619 -v 19.348160 0.707717 -9.966606 -v 16.827759 0.629547 -9.294885 -v 15.036259 0.709584 -9.373975 -v 18.209263 0.593719 -8.820720 -v 19.167973 0.673757 -8.162354 -v 21.075800 0.681200 -6.975031 -v 22.131489 0.681199 -7.230184 -l 81 66 -l 85 61 -l 69 71 -l 86 62 -l 83 65 -l 82 67 -l 80 68 -l 77 63 -l 84 64 -l 70 69 -l 62 72 -l 76 70 -l 75 74 -l 73 75 -l 74 76 -l 69 77 -l 79 78 -l 63 79 -l 78 80 -l 65 81 -l 66 82 -l 64 83 -l 63 84 -l 71 85 -l 61 86 -o tl_red_.001_tl_green_.014 -v 19.447826 0.652814 -9.897530 -v 19.236790 0.709584 -10.212732 -v 20.156250 0.709585 -9.326767 -v 17.691723 0.637928 -8.679165 -v 16.887398 0.549509 -7.819738 -v 16.666128 0.709584 -6.797853 -v 16.898148 0.709584 -6.013689 -v 13.983160 0.707094 -9.256109 -v 21.934361 0.709586 -9.332560 -v 22.993233 0.709586 -9.289524 -v 20.575649 0.709585 -9.505547 -v 19.240177 0.709584 -10.693233 -v 24.774286 0.709586 -9.270798 -v 23.883759 0.709586 -9.280161 -v 23.438496 0.709586 -9.284842 -v 24.329021 0.709586 -9.275480 -v 22.463797 0.709586 -9.311041 -v 21.045305 0.709585 -9.329662 -v 18.923986 0.673757 -9.002966 -v 18.307856 0.655843 -8.841064 -v 17.069706 0.708340 -9.291437 -v 15.526433 0.707717 -9.273773 -v 18.612978 0.708962 -9.309103 -v 17.841341 0.708651 -9.300270 -v 19.384613 0.709274 -9.317936 -v 14.754797 0.707405 -9.264940 -v 16.298069 0.708028 -9.282606 -v 17.289560 0.593719 -8.249451 -v 19.540119 0.691671 -9.164867 -l 91 92 -l 97 87 -l 95 97 -l 87 88 -l 114 91 -l 92 93 -l 112 94 -l 104 89 -l 106 90 -l 103 95 -l 88 98 -l 101 96 -l 102 100 -l 100 101 -l 99 102 -l 96 103 -l 95 104 -l 115 105 -l 105 106 -l 110 107 -l 113 108 -l 111 109 -l 109 110 -l 89 111 -l 108 112 -l 107 113 -l 90 114 -l 89 115 -o lane.001_Plane.001 -v 20.747952 0.714748 4.417104 -v 4.942120 0.714748 4.417105 -l 117 116 -o lane.002_Plane.002 -v 20.747952 0.714748 6.284792 -v 4.942120 0.714748 6.284793 -l 119 118 -o lane.003_Plane.003 -v 4.101815 0.714748 -5.647490 -v 4.101817 0.714748 1.694075 -l 121 120 -o lane.004_Plane.004 -v 1.913680 0.714748 -5.647490 -v 1.913682 0.714748 1.694075 -l 123 122 -o lane.005_Plane.005 -v -0.177872 0.714748 -5.647490 -v -0.177870 0.714748 1.694075 -l 125 124 -o lane.008_Plane.008 -v 41.186501 0.714748 -5.647490 -v 41.186501 0.714748 1.694075 -l 127 126 -o lane.007_Plane.007 -v 38.998363 0.714748 -5.647490 -v 38.998363 0.714748 1.694075 -l 129 128 -o lane.006_Plane.006 -v 36.906811 0.714748 -5.647490 -v 36.906811 0.714748 1.694075 -l 131 130 -o lane.011_Plane.011 -v 36.906811 0.714748 -17.904602 -v 36.906811 0.714748 -10.563038 -l 133 132 -o lane.010_Plane.010 -v 38.998363 0.714748 -17.904602 -v 38.998363 0.714748 -10.563038 -l 135 134 -o lane.009_Plane.009 -v 41.186501 0.714748 -17.904602 -v 41.186501 0.714748 -10.563038 -l 137 136 -o lane.014_Plane.014 -v 20.291370 0.714748 -17.904602 -v 20.291374 0.714748 -10.563038 -l 139 138 -o lane.013_Plane.013 -v 18.103233 0.714748 -17.904602 -v 18.103237 0.714748 -10.563038 -l 141 140 -o lane.012_Plane.012 -v 16.011681 0.714748 -17.904602 -v 16.011684 0.714748 -10.563038 -l 143 142 -o lane.017_Plane.017 -v -0.241971 0.714748 -17.904602 -v -0.241969 0.714748 -10.563038 -l 145 144 -o lane.016_Plane.016 -v 1.849581 0.714748 -17.904602 -v 1.849584 0.714748 -10.563038 -l 147 146 -o lane.015_Plane.015 -v 4.037719 0.714748 -17.904602 -v 4.037721 0.714748 -10.563038 -l 149 148 -o lane.020_Plane.020 -v 21.820013 0.714748 -5.558465 -v 27.104908 0.714748 1.989140 -l 151 150 -o lane.019_Plane.019 -v 18.174589 0.714748 -5.506073 -v 23.459484 0.714748 2.041531 -l 153 152 -o lane.018_Plane.018 -v 15.290737 0.714748 -5.571780 -v 20.575630 0.714748 1.975825 -l 155 154 -o lane.023_Plane.023 -v 28.709625 0.714748 6.902152 -v 36.051193 0.714748 6.902148 -l 157 156 -o lane.022_Plane.022 -v 28.709625 0.714748 4.810599 -v 36.051193 0.714748 4.810595 -l 159 158 -o lane.021_Plane.021 -v 28.709625 0.714748 2.622460 -v 36.051193 0.714748 2.622456 -l 161 160 -o lane.026_Plane.026 -v 22.386391 0.714748 -10.317472 -v 36.145340 0.714748 -10.317480 -l 163 162 -o lane.025_Plane.025 -v 22.386391 0.714748 -8.129334 -v 36.145340 0.714748 -8.129341 -l 165 164 -o lane.024_Plane.024 -v 22.386391 0.714748 -6.037782 -v 36.145340 0.714748 -6.037788 -l 167 166 -o lane.029_Plane.029 -v 20.962494 0.714748 -18.481348 -v 36.239216 0.714748 -18.481356 -l 169 168 -o lane.028_Plane.028 -v 20.962494 0.714748 -20.572901 -v 36.239216 0.714748 -20.572908 -l 171 170 -o lane.027_Plane.027 -v 20.962494 0.714748 -22.761040 -v 36.239216 0.714748 -22.761047 -l 173 172 -o lane.035_Plane.035 -v 4.469749 0.714748 -6.037782 -v 14.663877 0.714748 -6.037787 -l 175 174 -o lane.034_Plane.034 -v 4.469749 0.714748 -8.129335 -v 14.663877 0.714748 -8.129340 -l 177 176 -o lane.033_Plane.033 -v 4.469749 0.714748 -10.317473 -v 14.663877 0.714748 -10.317479 -l 179 178 -o lane.032_Plane.032 -v 4.180707 0.714748 -22.761042 -v 15.499365 0.714748 -22.761045 -l 181 180 -o lane.031_Plane.031 -v 4.180707 0.714748 -20.572903 -v 15.499365 0.714748 -20.572906 -l 183 182 -o lane.030_Plane.030 -v 4.180707 0.714748 -18.481350 -v 15.499365 0.714748 -18.481354 -l 185 184 -o tl_green_.002_tl_green_.016 -v 40.081879 0.694312 -7.196369 -v 39.345833 0.622654 -8.558928 -v 38.411621 0.845398 -9.102361 -v 37.285851 0.864790 -9.624656 -v 35.766281 0.694310 -9.914194 -v 40.177349 0.691820 -11.591697 -v 40.108704 0.694312 -6.670680 -v 40.139786 0.694312 -5.057215 -v 40.152493 0.694312 -3.269484 -v 40.146141 0.694312 -4.163349 -v 40.124245 0.694312 -5.863947 -v 39.713856 0.658483 -7.877649 -v 38.878727 0.734026 -8.830645 -v 37.848736 0.855094 -9.363508 -v 36.526066 0.779550 -9.769425 -v 40.129616 0.693066 -9.394033 -v 40.105747 0.693689 -8.295201 -v 40.153484 0.692443 -10.492865 -v 40.165413 0.692131 -11.042280 -v 40.141548 0.692754 -9.943449 -v 40.117683 0.693377 -8.844618 -v 40.093815 0.694000 -7.745785 -l 199 189 -l 198 188 -l 200 190 -l 204 191 -l 192 186 -l 197 187 -l 196 192 -l 195 193 -l 194 195 -l 193 196 -l 186 197 -l 187 198 -l 188 199 -l 189 200 -l 206 201 -l 207 202 -l 205 203 -l 203 204 -l 201 205 -l 202 206 -l 186 207 -o tl_green_.001_tl_green_.015 -v 37.091183 0.694312 -9.172023 -v 36.348171 0.694311 -8.780378 -v 37.915001 0.694312 -9.553463 -v 37.906982 0.691820 -4.855771 -v 37.957157 0.694312 -10.850368 -v 37.956608 0.694312 -13.615224 -v 37.509533 0.694312 -9.689869 -v 35.867672 0.694311 -8.780378 -v 37.956882 0.694312 -12.232796 -v 37.956745 0.694312 -12.924009 -v 37.957020 0.694312 -11.541582 -v 37.936081 0.694312 -10.201916 -v 37.910992 0.693066 -7.204617 -v 37.912994 0.693689 -8.379040 -v 37.913998 0.694000 -8.966251 -v 37.911995 0.693377 -7.791828 -v 37.908985 0.692443 -6.030194 -v 36.719677 0.694311 -8.976200 -l 214 208 -l 212 214 -l 225 209 -l 224 211 -l 219 210 -l 218 212 -l 209 215 -l 217 216 -l 213 217 -l 216 218 -l 212 219 -l 223 220 -l 222 221 -l 210 222 -l 221 223 -l 220 224 -l 208 225 -o tl_red_.000_tl_red_.014 -v 33.129536 0.694052 -7.157495 -v 36.190834 0.694052 -7.060887 -v 37.606853 0.694052 -6.786882 -v 38.128418 0.694052 -6.246896 -v 38.308487 0.694052 -5.447127 -v 38.589226 0.694052 -7.496610 -v 39.596436 0.694052 -7.974221 -v 40.219406 0.700574 -8.565689 -v 40.459465 0.694053 -9.839179 -v 40.558372 0.694053 -11.405273 -v 34.660187 0.694052 -7.109191 -v 33.894859 0.694052 -7.133343 -v 35.425510 0.694052 -7.085039 -v 37.390030 0.694052 -7.278749 -v 36.790432 0.694052 -7.169818 -v 37.989628 0.694052 -7.387679 -v 39.092831 0.694052 -7.735415 -v 39.907921 0.697313 -8.269955 -v 40.339436 0.697314 -9.202435 -v 40.508919 0.694053 -10.622227 -v 36.898842 0.694052 -6.923884 -v 37.252850 0.694052 -6.855383 -v 37.867634 0.694052 -6.516889 -v 38.218452 0.694052 -5.847012 -l 245 235 -l 238 227 -l 249 230 -l 247 228 -l 242 232 -l 248 229 -l 241 231 -l 243 233 -l 244 234 -l 237 236 -l 226 237 -l 236 238 -l 240 239 -l 227 240 -l 239 241 -l 231 242 -l 232 243 -l 233 244 -l 234 245 -l 227 246 -l 246 247 -l 228 248 -l 229 249 -o tl_green_.004_tl_green_.018 -v 16.719202 0.677289 -18.750446 -v 17.110847 0.677288 -17.802780 -v 16.974716 0.677289 -19.369608 -v 21.672407 0.674797 -19.361588 -v 15.677811 0.677289 -19.411764 -v 11.169794 0.677289 -19.411215 -v 16.201355 0.677289 -19.223146 -v 17.110847 0.677288 -17.322277 -l 256 250 -l 254 256 -l 250 251 -l 252 253 -l 254 252 -l 255 254 -l 251 257 -o tl_green_.003_tl_green_.017 -v 19.331814 0.677289 -21.536491 -v 17.969254 0.767351 -20.800444 -v 17.425821 0.788963 -19.866232 -v 16.903526 0.762389 -18.740459 -v 16.613987 0.677288 -17.220892 -v 14.936485 0.674797 -21.631960 -v 19.857502 0.677289 -21.563314 -v 21.470966 0.677289 -21.594400 -v 24.923002 0.677289 -21.607103 -l 260 261 -l 259 260 -l 261 262 -l 258 263 -l 264 258 -l 258 259 -l 265 264 -l 266 265 -o tl_red_.002_tl_red_.015 -v 19.187141 0.677030 -15.385959 -v 19.186344 0.677030 -17.234058 -v 19.460350 0.677030 -18.650076 -v 20.000336 0.677029 -19.171638 -v 20.800104 0.677029 -19.351709 -v 18.750622 0.677030 -19.632448 -v 18.273010 0.677030 -20.639658 -v 17.681541 0.683552 -21.262627 -v 16.408052 0.677030 -21.502687 -v 14.841958 0.677030 -21.601595 -l 275 276 -l 267 268 -l 270 271 -l 268 269 -l 272 273 -l 269 270 -l 268 272 -l 273 274 -l 274 275 -o tl_green_.006_tl_green_.020 -v 3.865900 0.694312 -6.875666 -v 4.154003 0.694311 -7.053246 -v 3.042082 0.694312 -7.272497 -v 3.050100 0.691820 -10.992373 -v 2.999926 0.694312 -5.090289 -v 3.000477 0.694312 -1.827462 -v 3.447550 0.694312 -6.357821 -v 4.680926 0.694311 -7.053246 -v 3.046089 0.693066 -9.132435 -v 3.048096 0.692443 -10.062405 -v 3.044085 0.693689 -8.202466 -v 3.021004 0.694312 -6.181393 -v 3.000200 0.694312 -4.171058 -v 3.000338 0.694312 -2.999260 -l 283 277 -l 281 283 -l 277 278 -l 286 280 -l 288 279 -l 289 281 -l 278 284 -l 287 285 -l 285 286 -l 279 287 -l 281 288 -l 290 289 -l 282 290 -o tl_green_.005_tl_green_.019 -v 0.875195 0.694312 -9.629599 -v 1.611242 0.622654 -8.267040 -v 2.545454 0.845398 -7.723608 -v 3.671228 0.864790 -7.201313 -v 5.190794 0.694310 -6.911775 -v 0.779726 0.691820 -5.234272 -v 0.848372 0.694312 -10.155289 -v 0.817286 0.694312 -11.061211 -v 0.804581 0.694312 -13.545650 -v 0.810934 0.694312 -12.303431 -v 1.243219 0.658483 -8.948318 -v 2.078348 0.734026 -7.995325 -v 3.108341 0.855094 -7.462461 -v 4.431011 0.779550 -7.056545 -v 0.827461 0.693066 -7.431935 -v 0.851328 0.693689 -8.530767 -v 0.803593 0.692443 -6.333104 -l 303 294 -l 302 293 -l 304 295 -l 307 296 -l 297 291 -l 301 292 -l 298 297 -l 300 298 -l 299 300 -l 291 301 -l 292 302 -l 293 303 -l 294 304 -l 306 305 -l 291 306 -l 305 307 -o tl_red_.003_tl_red_.016 -v 7.827545 0.694052 -9.668468 -v 4.766247 0.694052 -9.765074 -v 3.350227 0.694052 -10.039079 -v 3.107204 0.694052 -10.364999 -v 3.010654 0.694052 -11.111252 -v 2.367855 0.694052 -9.329350 -v 1.722706 0.694052 -8.851739 -v 1.099739 0.700574 -8.260271 -v 0.859678 0.694053 -6.986781 -v 0.760771 0.694053 -5.420686 -v 6.296896 0.694052 -9.716770 -v 7.062221 0.694052 -9.692619 -v 5.531571 0.694052 -9.740922 -v 3.567051 0.694052 -9.547213 -v 2.967453 0.694052 -9.438281 -v 4.166650 0.694052 -9.656143 -v 0.979708 0.697314 -7.623526 -l 316 317 -l 320 309 -l 311 312 -l 309 310 -l 313 314 -l 310 311 -l 322 313 -l 314 315 -l 324 316 -l 319 318 -l 308 319 -l 318 320 -l 323 321 -l 321 322 -l 309 323 -l 315 324