Pascual Garcia

CMPS 3480 Computer Graphics

PROJECT IDEA: OpenGL Terrain Generator

Lab framework: Lab 5
Using OpenGL, I would like to demonstrate the following computer graphics elements:
- Use a triangle mesh to create a terrain.
- Use a heightmap to determine the heights of each vertices of the mesh to create mountains and valleys
- Add 2D trees onto the terrain with parts that are transparent using the alpha channel.
The Image below is an example of a scene that can be created


PROJECT PROGRESS:

-Triangle mesh made
-Heightmap texture added to mesh

-Heightmap applied
-added lighting

-Added Texture Map

-Testing different Texture Maps
-Changed camera position
-Added a few trees

-Changed camera position
-changed textures
-Added more trees
-Added transparency through alpha channel on trees


Final Result


-final heightmap and terrain texture



-final tree texture (has a white background)



-3 images showing off the terrain and the random tree placement. 100 trees are placed randomly on areas where the height is less than 4.



- Close up images of terrain showing the transparency of the the white areas of the tree texture using an alpha channel.


Bresenham Line

Screenshot of lab-2 lines
previous size: 551958
current size: 87372


Circle with Textures

Date: 09/14/2021
Screenshot of lab 4


Gradient Tiangle Using Barycentric Coordinates

Date: 09/15/2021


Art Created With 'b' Key

Date: 09/17/2021
Screenshot of lab 4


OpenGL Working

Date: 09/20/2021


Texture Map On Cynlinder

Date: 09/29/2021


Creating .gif Using Code

Date: 10/11/2021


Creating Saturn with Ray Tracing

Date: 10/12/2021 (will update if I can get rings to be random)


Animation

Date: 10/24/2021