2D Lights not working

HI!

I am having some issues with adding some lights to a 2d sprite. Through the magic of photoshop, I am looking to do something like this:

Adding headlights and tail lights to my car. Yes I know I could just use sprites to the care to simulate light, but I really wanted to play around with the lighting system. I have followed couple tutorials, but can’t seem to find anything hat would help me accomplish what I am trying to do.

I tried creating a diffused material and adding it to the street, then I tried adding to the car.

I have tried different variations. I can’t seem to get any lights to work.

Then If I try to remove the material from any sprite I get this PINK overlay that I can’t get rid of.

Any help?

It sort of looks like your spot light is pointing the wrong way. Are you sure the light is pointing at the diffuse surface?

I would like the light to just show as a head light would.

Make sure that your ground sprite has a diffuse material on it. The default sprite material does not receive lighting.

Any lit sprites without a light source will appear very dark.

Use two spotlights, and make sure they are rotated the correct direction in front of the car.

You still need to point it at the surface you intend to light, non?

Can you confirm that the spot light is not pointing away from the road?

1 Like