Overview
Hello everyone, welcome to this week's Computer Graphics Chronicle! It's actually been a couple of weeks since I last posted. But, as I stated in the first post of this series, sometimes life happens and I won't be able to post every week. Anyway, I was able to make some progress in all 3 projects, so without any more delays let's go right to them!
My Journey into Computer Graphics
This is where I made the most progress overall. I focused on completing the cubes project, which is the first of several projects that I will be doing while following the resources for my journey into computer graphics. It consisted of doing 4 different scenes.
The first scene is just a single white cube rotated 45° in the x-axis.
The second scene consisted of recreating the Cornell Box model.
For the third scene, I had to create a helper function in C++ that would generate a 50-step staircase scene file. In my first attempt, I had a small problem with the code that I was using to correctly place the steps but I thought that it looked interesting so I'll show it to you:
After a few modifications, and loading a wood texture, I was able to arrive to the expected result:
The specification for the final scene was to create anything that I wanted as long as it used at least 20 cubes. Since I started working on this project at the end of October, my first idea was to create a Halloween-themed scene. I started playing with this idea by generating a cube map that resembles a dark scene with a big moon and a cube with a pumpkin texture.
However, when deciding on what to put in the scene, I decided to change the theme and make it instead of "Día de Muertos", which is actually today! This is what the final scene looks like:
Completing the cubes project allowed me to get some hands-on practice and start familiarizing myself with the G3D engine. Besides, I also started familiarizing myself with the requirements for the projects and how to handle the journal and the report. Filling the journal and the report isn't really necessary (even more so considering I'm doing this by myself and not for a course). However, doing so allows me to document my progress as I make it besides just showing you the results in this weekly blog. Meanwhile, the report allows me to give a formal closure to each project and reflect on what I learned.
This is what the journal looks like:
This is a zoomed-out look at the report:
Journey into OpenGL
I went over adding the GLM library to the project which will be used for common math operations. Then I learned how to apply transformations to a triangle.
Translation
Rotation
Scaling
All 3 transformations together
You might have noticed that the triangle gets deformed when it rotates. This happens because the transformation matrix hasn't been transformed into a projection matrix which is something that will be covered later in the Udemy course.
Journey into Shaders
I started learning the fundamentals of using shaders in Unity and Godot. This included using properties, commands and functions for shaders within Unity.
In Godot, I created my first 2D shader and experimented with different properties in fragment and vertex shaders.
See you next week!
Even though I focused mostly on my journey into computer graphics, I was able to make some progress in my other projects. I'll try to keep this up and make some weekly progress in all of them. Here are my goals for next week for each project:
My Journey into Computer Graphics: Read the chapters for the Geometry & Light topics and if possible start with the meshes project.
My Journey into OpenGL: Learn how to apply interpolation and projections in the Udemy Course. Complete the Textures, Transformations and Coordinate Systems tutorials in LearnOpenGL.
My Journey into Shaders: Complete the first shaders tutorials from Godot, start using shader graphs in Unreal and Unity and complete the Introduction to Shader Art Coding tutorial.
See you next week!
Top comments (0)