If you want your game or player to take in-game snapshots and apply it as a texture, this recipe will show you how. This can be very useful if you plan to implement an in-game photo gallery or display a snapshot of a past key moment at the end of a level (Race Games and Stunt Sims use this feature a lot).
In order to follow this recipe, please import the
basicTerrain package, available in the
0423_02_04_05 folder, into your project. The package includes a basic terrain and a camera that can be rotated via a mouse.
To create textures from screen content, follow these steps: