This example shows how to use the SoRasterReaderSet, SoRasterImageRW and SoOffscreenRenderer to read or write data from or to image files.
The first part of this demo shows how to use a SoRasterReaderSet in order to read an image file and in order to set a texture using the data from the file.
The second part of this demo, when the 'P' key is pressed, render the scene into an offscreen render and save the result to a PPM file using the PPMImageRW class which overload the class SoRasterImageRW.
The class PPMImageRW is a custom node which shows you how to create custom image file reader and writer.
SoRasterImageRW, SoOffscreenRenderer, SoRasterReaderSet, SoTexture2