03-14-2007, 12:31 PM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
Track Map
I've created a track map displayed at the top right corner during a race. A screenshot is in the gallery ( http://vdrift.net/Gallery/media.php?f=0&...4122331399). No menu option to turn on/off the map display yet.
Should I commit the change now or after the release? How far are we from the release?
|
|
03-15-2007, 08:44 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
The dots representing cars do follow the track properly. Currently the map is static. It does not rotate.
|
|
03-16-2007, 08:47 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
It's created after the track is being loaded. Basically the track map is first drawn into a SDL surface. Then this surface is loaded into a texture and displayed on screen. I have modified the texture classes and texture loading function in utility class to be able to load a texture from a SDL surface.
|
|
03-16-2007, 09:34 AM,
|
|
charlieg
Member
|
Posts: 98
Threads: 10
Joined: Aug 2005
|
|
If it is reliable / stable (how many tracks have you tested it on?) then please include it in the next release. It's just one of those really-nice-to-have features.
Otherwise it'll be months before it is in the wild (i.e. the VDrift release after this one).
|
|
03-16-2007, 09:49 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
I've in fact tested on all tracks. There doesn't seem to be any problem. However I agree with thelusiv and Joe it's not a good idea to add in features at the last minute.
Probably what we can do is shorten the release cycle for the next release after this one.
|
|
03-16-2007, 10:49 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
I've committed the changes in r1620. If possible, someone please test it on windows and mac. I've only tested on linux.
I've added trackmap.h and trackmap.cpp. Scons script has been modified to inclue trackmap.cpp. Windows and osx project file would need to do the same.
btw, the green dot represents player car. red dots represent opponent cars.
|
|
03-16-2007, 11:54 AM,
|
|
rookie1
Member
|
Posts: 231
Threads: 32
Joined: Nov 2006
|
|
Actually the SDL surface is intentionally held instead of deleted straight away. This is so that the track map can be reloaded in case TEXTURES::ReloadAll() is being called. I've modified TEXTURE::Load() to load from SDL surface if the pointer is not NULL. If the surface is deleted, reload will fail since the trackmap is not stored in any file.
|
|
03-19-2007, 10:52 PM,
|
|
jpenguin
Junior Member
|
Posts: 28
Threads: 12
Joined: Jul 2006
|
|
Work for me on the Mac
|
|
|