Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyGTK Track Editor - Round 2
03-27-2008, 11:25 AM,
#8
Re: PyGTK Track Editor - Round 2
rookie1 Wrote:Do I need to manipulate the object texture to achieve that? Or is there a simple way?

Hmm... if you're using the VDrift scenegraph interface to do you drawing, then you could probably use DRAWABLE::SetAdditiveMap1(const TEXTUREINFO & tex) and DRAWABLE::SetSelfIllumination(bool newsi). The "additive map" just gets added to the texture, so make the additive map in the gimp or something as a small image with a constant color like RGB (0,0,50). A call to SetSelfIllumination(true) will render with the additive map applied, false with it not applied... it's how the brake lights are done.

Now that I look at the code more, this might only work if shaders are enabled. Doh. Another simple way to do this would be to make a simple "selected object" type texture in the gimp and just replace the diffuse texture of the selected object with this texture.
Reply


Messages In This Thread
PyGTK Track Editor - Round 2 - by rookie1 - 03-26-2008, 11:04 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-26-2008, 02:29 PM
Re: PyGTK Track Editor - Round 2 - by alex25 - 03-26-2008, 03:30 PM
Re: PyGTK Track Editor - Round 2 - by rookie1 - 03-26-2008, 08:35 PM
[No subject] - by rookie1 - 03-26-2008, 09:03 PM
[No subject] - by thelusiv - 03-26-2008, 11:51 PM
[No subject] - by rookie1 - 03-27-2008, 08:13 AM
Re: PyGTK Track Editor - Round 2 - by joevenzon_phpbb2_import3 - 03-27-2008, 11:25 AM
[No subject] - by thelusiv - 03-27-2008, 11:37 AM
[No subject] - by rookie1 - 03-27-2008, 11:39 AM
[No subject] - by alex25 - 03-27-2008, 06:44 PM
[No subject] - by rookie1 - 03-27-2008, 09:32 PM
[No subject] - by alex25 - 03-27-2008, 09:54 PM
[No subject] - by rookie1 - 03-28-2008, 10:35 AM
[No subject] - by alex25 - 03-28-2008, 01:46 PM
[No subject] - by alex25 - 03-28-2008, 05:53 PM
[No subject] - by joevenzon_phpbb2_import3 - 03-28-2008, 07:51 PM
[No subject] - by rookie1 - 03-29-2008, 10:28 AM
[No subject] - by joevenzon_phpbb2_import3 - 03-30-2008, 01:27 PM
[No subject] - by rookie1 - 04-04-2008, 08:57 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-04-2008, 10:26 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-04-2008, 10:12 PM
[No subject] - by rookie1 - 04-08-2008, 11:24 AM
[No subject] - by alex25 - 04-08-2008, 01:21 PM
[No subject] - by rookie1 - 04-09-2008, 10:21 AM
[No subject] - by rookie1 - 04-22-2008, 10:32 AM
[No subject] - by alex25 - 04-22-2008, 01:26 PM
[No subject] - by rookie1 - 04-22-2008, 10:43 PM
[No subject] - by alex25 - 04-23-2008, 01:28 AM
[No subject] - by rookie1 - 04-28-2008, 09:31 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-29-2008, 01:58 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)