is There any way to record and reply in Irrlicht ?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
go
Posts: 28
Joined: Mon Oct 20, 2008 7:53 am

is There any way to record and reply in Irrlicht ?

Post 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!
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post 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.
Image Image Image
skumar
Posts: 201
Joined: Thu Feb 14, 2008 6:24 pm
Location: kerala state india
Contact:

Post 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
skumar
go
Posts: 28
Joined: Mon Oct 20, 2008 7:53 am

Post by go »

Thanks for your first and good reply !!

I'll try it and report the result.

Thanks !!
Post Reply