Author Topic: stunts-cartography - vectorial track visualization tools  (Read 11208 times)

CTG

  • Having only spam addict friends
  • ********
  • Posts: 21266
    • View Profile
ZCT 149 is an awful track!
« Reply #15 on: December 06, 2013, 08:29:18 AM »
How precise is the game in re-generating the coordinates of your cars? Does it calculate only with 1/1024 part of each squares or any fractional numbers are possible? I mean: is it possible that my car seems to be exactly in the middle of the road (midpoint is 512-512 units from left and right side of the square), but in real it's 511.95346 and 512.04654?
« Last Edit: December 06, 2013, 01:22:26 PM by CTG »
2835,57 km

Duplode

  • Moderator
  • Lives on Stunts
  • *****
  • Posts: 4136
  • Rabbit hole goes on forever
    • View Profile
    • The Southern Cross Stunts Trophy
Re: stunts-cartography - vectorial track visualization tools
« Reply #16 on: December 06, 2013, 10:25:54 PM »
How precise is the game in re-generating the coordinates of your cars? Does it calculate only with 1/1024 part of each squares or any fractional numbers are possible?

The car state data used for the physics calculations (and Cartography traces) holds the coordinates in 32-bit integers, each unit being 1/65536 (1/2^16) of a tile. Not arbitrary precision, but a lot higher than that of the graphics coordinates, and so what you describe does happen. The game also keeps the coordinates in 1/1024ths of a tile, presumably for updating the graphics. I don't know/remember which set of coordinates is used for path and penalty detection, though...

CTG

  • Having only spam addict friends
  • ********
  • Posts: 21266
    • View Profile
Re: stunts-cartography - vectorial track visualization tools
« Reply #17 on: December 09, 2013, 08:22:57 PM »
2835,57 km

dreadnaut

  • Tunnel Twister
  • ***
  • Posts: 1373
    • View Profile
    • chezDreadnaut
Re: stunts-cartography - vectorial track visualization tools
« Reply #18 on: December 09, 2013, 09:41:43 PM »
There's still people with Norton installed?! Was it there when you bought the computer and forgot to remove it?

Go, time to uninstall it: you're old enough to use a computer without (deflated) training wheels.

Duplode

  • Moderator
  • Lives on Stunts
  • *****
  • Posts: 4136
  • Rabbit hole goes on forever
    • View Profile
    • The Southern Cross Stunts Trophy
Re: stunts-cartography - vectorial track visualization tools
« Reply #19 on: December 09, 2013, 11:00:23 PM »
Win32 executable: https://bitbucket.org/duplode/stunts-cartography/downloads/stunts-cartography-0.3.0.0-win32.zip

Norton Internet Security says "SONAR Heuristic 112" danger for that download... :-\

Must be a false positive. Norton doesn't have the grace to explain what that heuristic means in their knowledge base, but I wouldn't put beyond it being scared by web server launching.

zaqrack

  • Administrator
  • Makes love with Stunts
  • *****
  • Posts: 4545
    • View Profile
    • ZakStunts
Re: stunts-cartography - vectorial track visualization tools
« Reply #20 on: December 10, 2013, 06:59:29 AM »
Win32 executable: https://bitbucket.org/duplode/stunts-cartography/downloads/stunts-cartography-0.3.0.0-win32.zip

Norton Internet Security says "SONAR Heuristic 112" danger for that download... :-\

damn we are busted. that was a virus coded by Duplode to fetch RPL files from all who install the cartography tool :)

CTG

  • Having only spam addict friends
  • ********
  • Posts: 21266
    • View Profile
Re: stunts-cartography - vectorial track visualization tools
« Reply #21 on: December 11, 2013, 03:36:56 PM »
Another question: what does define your / your opponent's exact starting position? The replay file or the game engine? I know, the replay also defines the track (and the start/finish line), but I mean the left or right lane.
2835,57 km

Duplode

  • Moderator
  • Lives on Stunts
  • *****
  • Posts: 4136
  • Rabbit hole goes on forever
    • View Profile
    • The Southern Cross Stunts Trophy
Re: stunts-cartography - vectorial track visualization tools
« Reply #22 on: December 11, 2013, 06:53:02 PM »
Another question: what does define your / your opponent's exact starting position? The replay file or the game engine? I know, the replay also defines the track (and the start/finish line), but I mean the left or right lane.

The engine. The replay file does not contain coordinates, only keystrokes. I don't think we got to pinpoint exactly where the starting offset from the centreline is applied during the 2010 restunts studies, but I guess it wouldn't be too difficult to find out.

Duplode

  • Moderator
  • Lives on Stunts
  • *****
  • Posts: 4136
  • Rabbit hole goes on forever
    • View Profile
    • The Southern Cross Stunts Trophy
Re: stunts-cartography - vectorial track visualization tools
« Reply #23 on: February 16, 2014, 07:30:15 AM »
I finally brought myself to do some work on Cartography. This time I won't dare to announce a release date; however, I am quite optimistic after working around the most annoying issue standing in the way of the 0.4 release. Other good news include that a recent new version of the drawing library gave us a noticeable speedup (up to 30% in some cases), and that some technical adjustments are making the annotations/lap trace code a lot less repulsive.

Duplode

  • Moderator
  • Lives on Stunts
  • *****
  • Posts: 4136
  • Rabbit hole goes on forever
    • View Profile
    • The Southern Cross Stunts Trophy
Stunts Cartography 0.4 released!
« Reply #24 on: February 23, 2014, 06:53:32 AM »
Stunts Cartography 0.4.0.0 is now available! New stuff includes:
  • Support for lap traces and animation frames. Lap traces can be loaded with or without overlaid cars, and can be used either as a normal map annotation or as part of the new flipbook feature, which renders a PNG file for each replay frame and packages them all in a zip file.
  • repldump2carto, an auxiliary separate program which generates input for the lap traces by extracting coordinates from repldump binary data (repldump is dstien's DOS game state logger; you can get it from Southern Cross). The output is a plain text file table, so beyond using the coordinates in the track viewer you can, for instance, easily import them into an Excel file.
  • Autocompletion in the base path and file selection fields, which makes selection of tracks and replays much less annoying.
As of now, it is possible to generate a video animation of one or several replays, like the Z147 one I prepared a while ago, using just the tools mentioned above (repldump, repldump2carto and the track viewer) plus a video tool like FFmpeg to combine the PNG frames into a video. The provided documentation (README.txt, REPLDUMP.txt and the annotations help page linked from the track viewer) explains in broad strokes the necessary steps; if you have any doubts or would like a proper tutorial, just ask here.

Links
Win32 executable: https://bitbucket.org/duplode/stunts-cartography/downloads/stunts-cartography-0.4.0.1-win32.zip
Source code: https://bitbucket.org/duplode/stunts-cartography

Technical note: You will need a reasonably recent version of your browser for the track viewer to run (Firefox 11+, Chrome 16+, Internet Explorer 10+).

Looking forward for your opinions and suggestions. Enjoy!

Edit: The donwload link now points at the 0.4.0.1 zip. The bugfix release was needed due to a subtle bug which led flipbook zips created on Windows to look wonky on Linux.
« Last Edit: February 23, 2014, 11:47:15 PM by Duplode »

RacerBG

  • Stunts Addict
  • *
  • Posts: 33
  • Stunts Indy Driver
    • View Profile
Re: stunts-cartography - vectorial track visualization tools
« Reply #25 on: March 20, 2014, 09:58:45 PM »
I have followed this from a long time and I think that the progress is great! Keep up with the excellent work and happy racing! :)
Stunts full crazy man with top perfomance from backwards!

Duplode

  • Moderator
  • Lives on Stunts
  • *****
  • Posts: 4136
  • Rabbit hole goes on forever
    • View Profile
    • The Southern Cross Stunts Trophy
Re: stunts-cartography - vectorial track visualization tools
« Reply #26 on: March 21, 2014, 03:02:44 AM »
I have followed this from a long time and I think that the progress is great! Keep up with the excellent work and happy racing! :)

Thank you :) I do not have concrete plans for a new release at the moment, though there are a few features I would like to add eventually, such as independent captions (by "independent" I mean not attached to a car).

Duplode

  • Moderator
  • Lives on Stunts
  • *****
  • Posts: 4136
  • Rabbit hole goes on forever
    • View Profile
    • The Southern Cross Stunts Trophy
Stunts Cartography 1.0.0.0 released!
« Reply #27 on: January 30, 2022, 03:13:30 PM »
I'm happy to finally announce the release of Stunts Cartography 1.0.0.0! This version includes the new features I have used in Cartography videos and maps over the last year, and also fixes several major annoyances. Here is the Windows binary download link (let me know if you need a Linux binary as well). To use it, put the stcarto directory into your Stunts folder, and run the stcarto executable from a command line. You can use stcarto --help (or stcarto viewer --help, etc.) for brief usage guidance, check the readme for more detailed notes, or ask anything about it here  :)

Here is a list of changes since the previous release:

  • biggrid CLI subcommand, for rendering multiple tracks in a single map.
  • r2c CLI subcommand, which corresponds to the formerly separate replaydump2carto executable.
  • t2c CLI subcommand, analogous to r2c but for trackdata dumps, currently supporting trackdata09 (F4 camera positions) and trackdata10 (corner sign positions).
  • Various improvements to the viewer GUI (which is now launched through the viewer subcommand).
  • Show track name and scenery in the viewer GUI log.
  • Tracks with Bliss metadata are now accepted by Cartography (they were formerly rejected by the file size checks).
  • New types of annotation: markers and standalone captions.
  • Frame-bound standalone captions for adding timers and other changeable information to flipbooks.
  • Annotation captions in flipbooks can now show car speed, current gear and height, in addition to time.
  • Fixes to the behaviour of the caption alignment options
  • Alternative two-tone terrain style, inspired by dreadnaut's 4DOPEN terrain editor.
  • Option for a transparent low ground background.
  • Various visual fixes to track diagrams.
  • Support for generating SVG flipbooks.
  • Support for building Cartography with the SVG and Rasterific backends of Diagrams, making the Cairo/GTK dependency optional.
  • Updates for building with GHC 9.0.2 and recent versions of dependencies.


alanrotoi

  • Makes love with Stunts
  • ******
  • Posts: 4847
  • Suck my Indy!
    • View Profile
    • Maite Zaitut, La Vengadora Oscura
Re: stunts-cartography - vectorial track visualization tools
« Reply #28 on: January 30, 2022, 06:24:59 PM »
It works in windows 7 64 bits version and Chrome ;)

Cas

  • Chicane Checker
  • ****
  • Posts: 1518
  • Think different. That's OK... as long as you think
    • View Profile
    • Dimioca Labs
Re: stunts-cartography - vectorial track visualization tools
« Reply #29 on: January 31, 2022, 12:33:21 AM »
Hey!  That's lots of improvements!  Does the option of not depending on GTK or Cairo mean that a Linux binary would likely run out of the box on any Linux distro?  And about support for Bliss metadata, does it use it or just accept it?  If you need quick details on the text and binary overlaid and split formats, just let me know. It's pretty simple anyway.
Earth is my country. Science is my religion.