Headlights in a top view racing game
Posted: Sun Jul 10, 2011 9:50 am
How would you render headlights effect in front of a car in a top view scrolling racing game?
First I was thinking it could be done by using the second playfield to cover the scene with black pixels but it would be only limited to absolute dark with a small segment uncovered - to simulate the headlights in front of the car. It would not look good if we wanted to use some more grades of darkness by altering the pixels of the cover playfield.
But I think the most flexible would be to alter the colours of the scene. That way we can simulate intensity of darkness. But the question is how do we keep the full light in front of the car? Can we change the colours of just that small portion of the playfield without affecting the rest of the screen? I was thinging like prerendering the small area of cells (in front of the car) to get different colours. I gues it is somehow possible on Genesis.
Also, there are those shadow/highlight features but I guess they are restricted to whole scanlines rather than a specific portion of the playfield, should I say trapezoid...
First I was thinking it could be done by using the second playfield to cover the scene with black pixels but it would be only limited to absolute dark with a small segment uncovered - to simulate the headlights in front of the car. It would not look good if we wanted to use some more grades of darkness by altering the pixels of the cover playfield.
But I think the most flexible would be to alter the colours of the scene. That way we can simulate intensity of darkness. But the question is how do we keep the full light in front of the car? Can we change the colours of just that small portion of the playfield without affecting the rest of the screen? I was thinging like prerendering the small area of cells (in front of the car) to get different colours. I gues it is somehow possible on Genesis.
Also, there are those shadow/highlight features but I guess they are restricted to whole scanlines rather than a specific portion of the playfield, should I say trapezoid...