ayoub05 / vdrift-ogre

Automatically exported from code.google.com/p/vdrift-ogre
0 stars 0 forks source link

Brakelights #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When braking, the brake lights should be on, like in VDrift too.

VDrift seems to do it like this:

There is an additional texture (brake.png) that contains only the brake light 
when its on, and nothing else.

At runtime, using this texture, there is 1 body texture with brakelight on and 
1 with brakelight on created. Depending on brake state we can switch the 
texture anytime.

What would be needed for this to work:
 - make a brake.png for every car (not really difficult)
 - create an additional texture (maybe body_dyn_brake.png - normal is body_dyn.png) when loading car
 - in frame update, get brake state from vdrift and switch texture if needed.

Original issue reported on code.google.com by scrawl...@gmail.com on 11 Apr 2011 at 4:21

GoogleCodeExporter commented 9 years ago

Original comment by Cry...@gmail.com on 21 Apr 2011 at 4:42

GoogleCodeExporter commented 9 years ago

Original comment by Cry...@gmail.com on 6 May 2011 at 12:46

GoogleCodeExporter commented 9 years ago

Original comment by Cry...@gmail.com on 9 Sep 2011 at 3:08

GoogleCodeExporter commented 9 years ago
Done.

Original comment by scrawl...@gmail.com on 1 Nov 2011 at 6:11