Page 1 of 1

is There any way to record and reply in Irrlicht ?

Posted: Tue Dec 23, 2008 10:24 am
by go
Hey, I want to record log(like camera position and, object's) and reply it in Irrlicht.

Is there any way to do this ? I think some people may still implemented it, and have some sources or URL, so if you know that, please teach me.

Thanks!

Posted: Tue Dec 23, 2008 10:42 am
by JP
There's nothing particularly in irrlicht to do this for you (though scene node attribute serialisation may or may not be useful). I seem to remember people discussing it before on the forums but haven't actually seen anything come of it.

But basically it shouldn't be too hard to set up... You just need to store a big list of positions, rotations etc, with timestamps, and then when you want to replay it you just read back that list and interpolate between the positions, rotations etc according to the timestamps and the current time.

Posted: Tue Dec 23, 2008 11:01 am
by skumar
hi,
I faced such a situation for my architectural previz app for recording and replaying the walk. What i used was simple, taking the vector of camera position and target and writing down to a binary file...

It was not completely standard but it was working....

If you want to see the app in action try recording and playing the walk in my old demo in this.....

http://www.mediafire.com/?21julvt9v0m

For making a good solution , try making a standard file format ie with headers and different sections, make classes for i/o of the file...Always try for binary files since these type of files may get very big if xml type is used

Posted: Thu Dec 25, 2008 2:48 am
by go
Thanks for your first and good reply !!

I'll try it and report the result.

Thanks !!