Search the Community
Showing results for tags 'snapshot'.
Hi All, Below is my project url please visit : http://188.8.131.52/digital/test/polygon/ Now my question is that i am creating a polygon at run time and add physics to polygon. When the polygon collides with matter body a horizontal redline is drawn and when i click on the down arrow button then another metal spring collides with polygon shapes then a blue line draw and you can drag the blue line. So i have to take the snapshot of only that polygon and redline which is beneath the polygon and that blue line which is being dragged and show them in the grid box 1,2,3,4. The polygons can be rotate as well by middle button when the spring metal is not collides with the polygon. I have tried several ways to figure this out but not able to fix the snapshot . I am attaching the image that what i actually want. And please tell me a way to make the polygon shapes more steady while rotation. Thanks, Raghvendra
Hello, Does the below seem a reasonable way to deal with undo / redo and snapshots? When required, I serialize the whole scene and append this to a scene > metadata > snapshot array. I can then undo by loading a previously serialized scene in the snapshot array or I can jump to, say, 4 snapshots earlier. I am mindful that the scene saved to snapshot should not include it's metadata > snapshot as I'd end up with files increasing exponentially in size. I can then serialize the whole scene (including the snapshots), upload to server and so can reload another day and still see previous snapshots. So, some questions: Is the above a lazy or bad approach? Is there a better way that I have not yet thought of? Any input would be gratefully received. Thank you. Edit: Alternatively, I could just serialize the whole scene when any particular changes are made and dump that on the server and then grab when required.