Instant Replay in a game

Started by
8 comments, last by Not_A_Chick 21 years, 5 months ago
Can anyone point me to a tutorial or such that gives an explanation on how to implement an instant replay type feature. An example would be a BMX game or something where after a race you could make your own highlight reel. Thanks in advance edit: oops, replay, not reply [edited by - Not_A_Chick on October 19, 2002 3:29:45 PM]
Advertisement
Maybe you''re looking for an instant replAy...
Well, *bump* anyway.

Extatica is coming soon!
Check it out on:
http://www.extatica.com02.com
Nexeruza Studios:
http://nexeruza.ionichost.com/home.html
The only way i know is to record everything that''s happening frame-by-frame, from the start till the end. That way, the replay file would be too big.
You could just store the most important values (camera direction, motion vectors, object positions) at a constant frame rate (e.g. 10 fps) and for replay just do linear interpolation between the recorded frames.

That way the memory footprint wouldn''t grow too big and the replay still looks acceptable.
So it''s basically just tracking the most important information (e.g. bike and player model positions and velocities) at a certain framerate and use the results of the tracked data as key frames for interpolation on replay.
Perhaps you could save starting variables of level, random root (if needed, or all the random numbers generated) and player input (time stamped/frame stamped), then you could "play" the game again through "virtual player" which then plays game as player did previously. This way replays wouldn''t take much space. Dunno how you make game run faster, perhaps skip some renderings in frames.
Those frame stores and interpolations could get messy. imo. Just play the level again using old input data.
Vikke Matikainen
Instant Replay (free registration with Gamasutra.com requited)

Trying is the first step towards failure.
Trying is the first step towards failure.
http://www.flipcode.com/misc/sfarticle/

There is a section called
"Implementing Playback Demos"
Thanks, you guys are great!! Now for getting it to work...
It's a bit like snake where the tail moves to the front.


Code (on each frame):



frame[current_frame].whatever = whatever;

current_frame = (current_frame + 1)%50;


then you replay will allway use 50 frame or whatever you want.




[edited by - jlebrech on October 20, 2002 3:04:17 PM]
Basically all you need to do is to set aside some buffer to store all the input for the period you want to reply, and the initial position / conditions. Then have the main character model do all the same thing but put the camera somewhere else.

Jet Grind Radio for Dreamcast has some of the best implemented instant reply IMHO. You should check it out.

This topic is closed to new replies.

Advertisement