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!
is There any way to record and reply in Irrlicht ?
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.
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.
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
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