Replay coredump

Aiursrage2k

19-01-2007 04:16:33

I have so called tv cameras in my game. When a player does something 'cool' I want to have it play back in the tv screen (not just that instant, but a few seconds). The game should still continue

What would be the best way to achive this?

I was thinking of creating a second scene, with all the bodies (etc), and some kind of coredumping technique. Then rendering this into a render target (the tv screen).

betajaen

19-01-2007 11:41:31

That'd work.

Easiest way is to just record the position and orientations of the scene nodes of everything into an array which is "5 seconds" long, and just play it back just to a separate scene manager. Then wipe it clean once the reply has done, then just start over again. Make a note somewhere how long the data is in the array, and obviously once you reach the end of the array start over again, and reset it and the timer.

If you get NxOgre involved then it uses more memory and slows it down, you also have the chance of what is played back isn't what really happened, if the iterator is "distracted" with the main scene.

So I'd go with the scenenode route.