The Level contains three main Quads, one representing each side of the trench (walls and floor). The quads have a long depth; this makes it look really long. This way it makes it seem that you have a long way to go. There is also a small quad at the end to prevent anything that might be drawn behind it from showing.
There are two ways to make the trench, one, making a very long model and move it on the z position, or the other, making a texture and scrolling it. I chose to implement the second because it allows my level to last for an infinite amount of time.
Here are a couple of tests I made for the walls:
I mapped textures to the three rectangles. Then I made the texture coordinates move in order to simulate that the ship is moving forward.
------------------------------------------------------------------
On this version I modified the size of the trench to make it look more like the one on the movie, I added a different texture that makes it look more like the death star
No comments:
Post a Comment