Lab: Game Step
In this lab, we continue making progress on our games. This week we learned about texturing. We'll apply this knowledge by adding a textured terrain to our game.
Requirements
Your challenge is to add a textured terrain to your game. Follow these steps:
Generate a heightmap in your favorite manner.
Make sure both players can move around the terrain.
Add optional texture coordinates to your
Trimesh class. You decide whether to use a flat array, an array of Vector3, or an array of Vector2.
In
Field.toTrimesh, generate tex-positions at the same time you generate positions.
Temporarily color the terrain by the texture coordinates and make sure you see the expected black-red-green-yellow pattern.
Find an image of grass or dirt or some other fitting material.
Texture the terrain with the image.
Keep working on the other features of your game.
Schedule a time with your instructor before Thanksgiving break to record motion capture animations.
Submission
To receive credit for your lab work, follow these steps:
Share a video of you traversing your textured terrain in a post in the
#game channel in Discord. No voiceover is necessary. Tag your group members with @.
Push your code to your individual GitHub repository that your instructor made for you.
Only labs submitted on time will be granted credit. Late labs or forgot-to-submits are not accepted because Monday at noon is when your instructor has time to grade.