Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
data format of replay file (vdr)
06-20-2011, 03:08 PM,
#2
 
Quote:did not find the file structure in the website
It's an internal format. I don't think it was ever meant to be used outside of vdrift.

The format should be clear if you look into the Serialize functions of the involved classes.

Something like:
Code:
    version_info.Save(outstream); //REPLAYVERSIONING
    _SERIALIZE_(s, track);
    _SERIALIZE_(s, cartype);
    _SERIALIZE_(s, carpaint);
    _SERIALIZE_(s, carfile);
    _SERIALIZE_(s, carcolor_r);
    _SERIALIZE_(s, carcolor_g);
    _SERIALIZE_(s, carcolor_b);
    s.Serialize("inputframes", newinputframes);//std::vector <INPUTFRAME> 90 fps
    s.Serialize("stateframes", newstateframes);//std::vector <STATEFRAME> 1 fps
Look into REPLAY::RecordFrame(const std::vector <float> & inputs, CAR & car).

If you are interested in certain parameters I think the driver-training branch has some advanced logging facilities, I've not looked into the code though.
Reply


Messages In This Thread
data format of replay file (vdr) - by alexwillzhj - 06-20-2011, 12:01 PM
[No subject] - by NaN - 06-20-2011, 03:08 PM
A Question About VDrift Replay Files - by Zahra - 06-28-2011, 10:59 AM
[No subject] - by NaN - 06-30-2011, 07:30 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)