BLOG

City Project - Work in progress video 34: Brake lights

Nothing too spectacular but nice to have: now, when you press the brake key the car's brake lights go on. Some time ago, in a modding site about GTA: San Andreas, I read how the vehicle models were made in that game to indicate which parts were lights (i.e. tail right light, head right light...) to apply a different texture if the light is on. Basically, each light has a different material with a 'unique' diffuse value so you just have to look for one of those values when rendering the mesh. I've modified one model, the van, to try to make something similar and it works fine:


categories: gamedev, city-project