Browse Source

added gif to readme

Iver 1 month ago
parent
commit
f560c5c644
4 changed files with 16 additions and 9 deletions
  1. BIN
      builds/main.bin
  2. 3 1
      changelog.txt
  3. 2 1
      readme.md
  4. 11 7
      src/launch program/main.c

BIN
builds/main.bin


+ 3 - 1
changelog.txt

@@ -1,2 +1,4 @@
 -added animated textures
--latest version of PitMap (8bpp images that have no compression, debug mode)
+-latest version of PitMap (8bpp images that have no compression, debug mode)
+-added issues.txt
+-added another gif to the readme

+ 2 - 1
readme.md

@@ -1,7 +1,8 @@
 # RasterIver, a Rendering Engine
 
 <p align="center">
-   <img src="https://mynameisthe.com/f/1764353133143-ezgif-692a8b4b3535e93c.gif" alt="gif of silly example scene"> <br><i>17,700 polygon scene running at 100fps</i>
+   <img src="https://mynameisthe.com/f/1764353133143-ezgif-692a8b4b3535e93c.gif" alt="gif of silly example scene"> <br><i>17,700 polygon scene running at 100fps</i><br><br><br>
+   <img src="https://mynameisthe.com/f/1764474064068-gordon.gif"><br><i>example showcasing animated textures and triangle tiling (green boxes)</i><br><i>~400,000 tris, 14fps</i>
 </p>
 
 ## Roadmap

+ 11 - 7
src/launch program/main.c

@@ -52,8 +52,8 @@ scene->actors[0]->active = 0;
 
     scene->actors[1]->mesh = gordon_head_mesh;
     scene->actors[1]->texture = gordon_face_texture;
-    scene->actors[1]->scale = (RI_vector_3){3, 1, 1};
-    scene->actors[1]->position = (RI_vector_3){-100, -40, 50};
+    scene->actors[1]->scale = (RI_vector_3){3, 1, 3};
+    scene->actors[1]->position = (RI_vector_3){0, 900, -400};
 // scene->actors[1]->active = 0;
 
     scene->actors[2]->mesh = gordon_mesh;
@@ -64,8 +64,8 @@ scene->actors[0]->active = 0;
 
     scene->actors[3]->mesh = text_mesh;
     scene->actors[3]->texture = emoji_texture;
-    scene->actors[3]->scale = (RI_vector_3){3, 1, 1};
-    scene->actors[3]->position = (RI_vector_3){-100, -40, 50};
+    scene->actors[3]->scale = (RI_vector_3){3, 1, 3};
+    scene->actors[3]->position = (RI_vector_3){0, 900, -400};
 // scene->actors[3]->active = 0;
 
     scene->actors[4]->mesh = plane_mesh;
@@ -78,6 +78,10 @@ scene->actors[4]->active = 0;
     // RI_euler_rotation_to_quaternion(&scene->actors[1]->rotation, (RI_vector_3){0, 3.14159, 0});
     RI_euler_rotation_to_quaternion(&scene->actors[2]->rotation, (RI_vector_3){0, 0.78539816339, 0});
 
+    scene->camera.position = (RI_vector_3){0, 1000, -500};
+
+    RI_euler_rotation_to_quaternion(&scene->camera.rotation, (RI_vector_3){-.7, 0, 0});
+
     scene->length_of_actors_array = 5;
 
     long int start, end;
@@ -98,9 +102,9 @@ scene->actors[4]->active = 0;
         
         scene->actors[1]->texture_frame++;
 
-        RI_euler_rotation_to_quaternion(&scene->camera.rotation, (RI_vector_3){0, .7 + rotation / 10, 0});
-        RI_euler_rotation_to_quaternion(&scene->actors[1]->rotation, (RI_vector_3){0, rotation / 4, 0});
-        RI_euler_rotation_to_quaternion(&scene->actors[3]->rotation, (RI_vector_3){0, rotation / 4, 0});
+        // RI_euler_rotation_to_quaternion(&scene->camera.rotation, (RI_vector_3){0, .7 + rotation / 10, 0});
+        RI_euler_rotation_to_quaternion(&scene->actors[1]->rotation, (RI_vector_3){0, rotation / 4, 0.7});
+        RI_euler_rotation_to_quaternion(&scene->actors[3]->rotation, (RI_vector_3){0, rotation / 4, 0.7});
 // scene->actors[2]->position.z += delta_time;
 
         rotation += delta_time;