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