Archived

This topic is now archived and is closed to further replies.

Not_A_Chick

Instant Replay in a game

Recommended Posts

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]

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
http://www.flipcode.com/misc/sfarticle/

There is a section called
"Implementing Playback Demos"

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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.

Share this post


Link to post
Share on other sites