![Terrain Rendering](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4lu-M8pzZAskHMVyNorWkvKKcPIZx_nyjo3PMiLjdlklDAVazsnnpgyJM53Xo1B1hcyUwlZT9q1kYpTXZ8rEfVuvL77QxehE9jkZ3yMCUq2pn_oZpFtMcw7jNpSPdPjbkEnwwFN9K9jE/s640/BikePath.jpg%22)
I wouldn't have much of a bike game without a track, so that's what I've been working on today. The red points are editable control points and I interpolate the other points using Catmull-Rom Splines.
The track is just X-Y coordinates, with the Z value obtained from the height of the terrain.
Riding through that bit of water would be interesting. Just go really fast I guess.
ReplyDeleteThe water is actually a lot shallower there than it looks from a distance. You still end up getting fully submerged for a bit, though. I'm currently not factoring water into the physics, so you can quite happily drive underwater :-)
ReplyDelete