Hi, i would like to create a light effect on a 2d car racing written in SDL.NET (and c#). The psychs Light effect is simple: the car headlights (classic conic light effect). Does somebody know where can i look for some example of light managemnt via SDL ? Or maybe tell me how to solve this issue ? Thank you for your support !
A:
Update: actually i've created an image with gimp with a simulation of light. Then i load it in front of my car sprite to simulate the light. But i don't like this type of approach... maybe is more efficient than a run-time generation/simulation of a light!
stighy
2010-10-20 17:53:23
+2
A:
If you need a realistic lighting model you have to change to opengl or directx and use a shader like deferred lighting. This is an example for xna.
Victor Marzo
2010-10-28 08:12:14