• This Website Is Not For Sale
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Discuss the 2017 Formula One Australian Grand Prix here.

How to export data

Discussion in 'Racer Physics and Technical' started by Kalmykov, Jun 18, 2013.

  1. Hi guys. It is probably a bit annoying but I have yet another question for you. Is there any way to export data from Racer? I'm looking for graphs, tables or smth that can tell you position of the car (or coordinates, or lane deviation - smth like that), steering input, braking input and stuff like that versus time. Like "At time 3:55 the car was at coordinates X;Y;Z".
    Basically, I want to syncronize Racer with another simulator that was done in MATLAB and Simulink. If there is no way of extracting all the data from Racer directly may be there is some way to import some data from MATLAB or smth? If anyone has any ideas I would appriciate if you share them.

    And yet another small question. I've tried to do a very simple track in Bob's Track Builder. Everything was good expect the sky. I've tried to apply the sky image from Carlswood with "background image" but it seems it's not what I'm looking for....or I'm doing it wrong. So when the race starts sky is black, and when you begin to turn it looks like on the picture. So there is literally no sky and I don't know how to apply it properly. sky13.jpg
  2. I don't think you can use them in realtime, but the logging function (in racer.ini, look for 'log.enable') will give you all that data. Set log.enable=1 as well as any series you want to log, and the period in ms to fine tune how much data you get.
    http://www.racer.nl/reference/log2mat.htm should have info on how to get logs into MATLAB.

    You need sky geometry (usually the upper half of a sphere pointing inward) with the 'sky_v/sky_f' shaders applied to it - see Carlswood's track.shd for reference, as well as sky.dof. The model needs enough vertices to look ok, cause it picks sky colour at each corner and interpolates. If you map a texture to it, the 'clouds' variable controls how visible it is.
    • Like Like x 1
  3. Thank you, Stereo. Data logging from Racer works well. Still haven't tried to build a sky but hopefully it won't be too much of a problem now.