Back in February, when we were discussing automated replay logging
, at some point I mentioned the Micro Machines-style video of the Z70 winning lap was done using a vectorial track viewer. Thanks to a stroke of good fortune, I am now able to make available a very
rough preview of that viewer. The most interesting thing about it is that there are rendering parameters, as you can see in the attached screenshot. You can, for instance, generate images of different sizes, or adjust the proportions according to which the key track elements are drawn.
The links to the files are provided below. Before that, usage instructions for those of you who wish to test it:
- As usual, I did not test the Windows build in an actual Windows system, so please tell me whether it works or not (If you would like a Linux binary instead, just ask and I will prepare one.)
- How to start it: drop the directory inside the zip somewhere (I suggest the folder with your tracks), launch the executable from a command line (if the Windows Firewall asks for permission, just allow it), leave it open and navigate in your browser to http://localhost:10000 . That will take you to the interface you see in the screenshot. When you are done, just close the prompt.
- The base path field is relative to the location of the executable (so if you followed my suggestion when unpacking the zip the default value of .. will point to the folder with your tracks).
- You can retrieve the image files by using "Save Image As..." in the browser.
- Do not open the track viewer in more than one browser window at the same time (it will start failing randomly).
And now, the links:Windows executable bundle
(updated in 2014-02-23)Source code repository
Incidentally, by digging into the repository you can figure out how that Z70 animation was generated. The really tricky parts related to getting the lap data from DOSBox are, of course, obsolete thanks to dstien's restunts-powered logger. In any case, I will at some point add support for overlaying lap traces to the viewer. I also plan to create an annotation system - that is, overlaying cars, icons, split markers, etc. over the map.
Feedback appreciated, as ever Edit: the link will keep being updated to point at the latest Windows bundle.Edit 2: the repository was moved to bitbucket.