da mario test

This commit is contained in:
InventorXtreme 2024-03-11 23:13:49 -04:00
parent 11e9fae640
commit f8a7fc9a3c
2 changed files with 6462 additions and 2 deletions

4
c3d.c
View file

@ -459,9 +459,9 @@ int main() {
Tri2D norm = (Tri2D){(Vector2){500, 50}, (Vector2){0, 0}, (Vector2){250, 500}, 0, 0, 0, GREEN};
bool run3d = true;
Object3D t = ReadObjectFromFile("teapot.obj");
Object3D t = ReadObjectFromFile("mario.obj");
for (int i = 0; i < t.triangles->length; i++){
printf("t: %f\n", t.triangles->arr[i].a.x);
//printf("t: %f\n", t.triangles->arr[i].a.x);
TriArrayAppend(&tarr, t.triangles->arr[i]);
}
while (!WindowShouldClose() && run3d) {

6460
mario.obj Normal file

File diff suppressed because it is too large Load diff