Understanding snapshots

Hi Guys,

Loving the 2.0 work. Just wondering if someone can help me understand the snapshots.

Does it work in a similar way to the “canvas” in HTML5? There is something I’m wanting to achieve, but not sure if this is the right thing. 

I want to create a snapshot, then “draw” hundred/thousands of rectangles to the snapshot (to form the bounds of a racetrack). These rectangles will never move or be altered. Once I’ve “drawn” the rectanges to the snapshot, would be rendered as a single image? What happens to the rectangles? What about performance?

Thanks guys.

Funnily enough I started work on a tutorial document for snapshots last night, covering as much as I could. It is only in the crudest of forms for now but you are welcome to take a look.

https://docs.google.com/document/d/168-Rp86pioZM-e0QM0GBb2eeBUasXAHPYm-iGu1xjLI/edit?usp=sharing

In regards to your specific question I’d say it depends on the size of the snapshot you are planning on making. You certainly shouldn’t make it any larger than the maximum texture size which will vary by device, but I’ve not looked into any other limits that may apply. Hopefully someone from the dev team will provide more info.

This is great, thanks for posting! I was just reading it while you were updating it. Freaked me out a bit to see a document write itself while reading it :smiley:

I should add I’ve just made the document available for comments, so feedback is welcome.

Funnily enough I started work on a tutorial document for snapshots last night, covering as much as I could. It is only in the crudest of forms for now but you are welcome to take a look.

https://docs.google.com/document/d/168-Rp86pioZM-e0QM0GBb2eeBUasXAHPYm-iGu1xjLI/edit?usp=sharing

In regards to your specific question I’d say it depends on the size of the snapshot you are planning on making. You certainly shouldn’t make it any larger than the maximum texture size which will vary by device, but I’ve not looked into any other limits that may apply. Hopefully someone from the dev team will provide more info.

This is great, thanks for posting! I was just reading it while you were updating it. Freaked me out a bit to see a document write itself while reading it :smiley:

I should add I’ve just made the document available for comments, so feedback is welcome.