The Snake Engine Road System has gained a little feature which improves the look of Coaster Racer for very little effort.
We now have road thickness - this can be used for Coaster Racer's roads in the sky (as here, with a thickness of about 50 cm) or for roads on top of walls, for instance (think of the original Stunt Car Racer)
When drawing the texture mapped road scan line by scan line from the back (having done back face removal), the code works out which edges need drawing (if any), and fills in a rectangle to cover it.
I'm only handling colour fills rather than textures, but these can take the standard road-edge colours, so gradients can be used.
Thickness can be changed over time, just like road widths, using the editor.
It turns out that this is very fast (compared with drawing the road itself), so I'm pleased with the results. We should be able to use this to create raised bridges etc. in Heat Rush 2 :)
No comments:
Post a Comment