Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PyGTK track editor idea
05-03-2007, 06:59 AM,
#25
 
Finally, the track is displayed correctly. The problem turns out to be a call to enable GL_FOG in OBJECTS:Big Grinraw(). After comment out this line, the display works. :lol: I've attached a screenshot of Laguna Seca at the end.

Now something to discuss, if you look at the pygtk-trackeditor directory, I've copied the required source files and include files from vdrift and made some modifications for the compilation to be successful. We will run into out-of-sync problems sooner or later between pygtk-trackeditor and vdrift mainline code.

To solve this problem, I've modified vdrift scons scripts to add another target called 'wrapper'. This will build an export module (shared library) called vdrift.so in vdrift build directory. To run the pygtk-trackeditor, simply copy this file to the track editor directory.

There are minimal changes to vdrift mainline code,
1. scons script change to add new target
2. add a wrapper.cpp in src/
3. couple of conditional compilation in objects.cpp (e.g. do not call glEnable(GL_FOG) if we are building the wrapper)

So, what do you say? Can I commit the changes to vdrift mainline?

Now for the screen shot
[Image: 3_trackeditor2.png]
Reply


Messages In This Thread
PyGTK track editor idea - by thelusiv - 02-07-2007, 12:24 AM
[No subject] - by cotharyus - 02-07-2007, 07:07 AM
[No subject] - by joevenzon_phpbb2_import3 - 02-07-2007, 10:58 AM
[No subject] - by reece146 - 02-07-2007, 11:05 AM
[No subject] - by thelusiv - 02-07-2007, 06:40 PM
[No subject] - by reece146 - 02-07-2007, 09:42 PM
[No subject] - by thelusiv - 02-07-2007, 10:15 PM
[No subject] - by joevenzon_phpbb2_import3 - 02-07-2007, 11:01 PM
[No subject] - by thelusiv - 02-07-2007, 11:16 PM
[No subject] - by thelusiv - 02-08-2007, 12:21 AM
[No subject] - by reece146 - 02-08-2007, 12:42 AM
[No subject] - by thelusiv - 02-08-2007, 05:36 AM
[No subject] - by rookie1 - 04-20-2007, 02:49 AM
[No subject] - by rookie1 - 04-20-2007, 10:32 AM
[No subject] - by thelusiv - 04-20-2007, 02:56 PM
[No subject] - by rookie1 - 04-22-2007, 12:23 AM
[No subject] - by thelusiv - 04-25-2007, 03:23 AM
[No subject] - by rookie1 - 04-27-2007, 04:38 AM
[No subject] - by thelusiv - 04-29-2007, 01:54 AM
[No subject] - by rookie1 - 04-29-2007, 05:53 AM
[No subject] - by rookie1 - 04-30-2007, 10:43 AM
[No subject] - by joevenzon_phpbb2_import3 - 04-30-2007, 10:43 PM
[No subject] - by rookie1 - 04-30-2007, 11:16 PM
[No subject] - by rookie1 - 05-01-2007, 07:06 AM
[No subject] - by rookie1 - 05-03-2007, 06:59 AM
[No subject] - by protomor - 05-03-2007, 10:55 AM
[No subject] - by thelusiv - 05-04-2007, 03:47 AM
[No subject] - by rookie1 - 05-04-2007, 07:07 AM
[No subject] - by joevenzon_phpbb2_import3 - 05-04-2007, 10:09 AM
[No subject] - by thelusiv - 05-05-2007, 06:55 AM
[No subject] - by thelusiv - 05-05-2007, 05:45 PM
[No subject] - by thelusiv - 05-05-2007, 07:35 PM
[No subject] - by rookie1 - 05-05-2007, 11:23 PM
[No subject] - by thelusiv - 05-07-2007, 03:27 AM
[No subject] - by rookie1 - 05-07-2007, 09:48 AM
[No subject] - by rookie1 - 05-18-2007, 07:52 AM
[No subject] - by alanic - 05-30-2007, 02:08 PM
[No subject] - by thelusiv - 05-30-2007, 02:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)