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
![](pictures/projectIdea2.jpg)
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
![](pictures/heightmap.jpg)
![](pictures/fterrain.png)
-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.
![](pictures/final1.png)
![](pictures/final2.png)
![](pictures/final3.png)
- Close up images of terrain showing the transparency of the the white areas of the tree texture using an alpha channel.
![](pictures/finalzoom1.png)
![](pictures/finaltreezoom.png)
Bresenham Line
Screenshot of lab-2 lines previous size: 551958 current size: 87372![](pictures/lab2ss.jpg)
Circle with Textures
Date: 09/14/2021 Screenshot of lab 4![](pictures/circleScreenshot.jpg)
Gradient Tiangle Using Barycentric Coordinates
Date: 09/15/2021![](pictures/barycentric.jpg)
Art Created With 'b' Key
Date: 09/17/2021 Screenshot of lab 4![](pictures/art.png)
OpenGL Working
Date: 09/20/2021![](pictures/opengl.png)
Texture Map On Cynlinder
Date: 09/29/2021![](pictures/faceGL.png)
Creating .gif Using Code
Date: 10/11/2021![](pictures/abc.gif)
Creating Saturn with Ray Tracing
Date: 10/12/2021 (will update if I can get rings to be random)![](pictures/saturn.jpg)
Animation
Date: 10/24/2021![](pictures/myGif.gif)