Playing movies on textures

It is fantastic if we can watch movies or hold video conferences in the 3D world. We can place a big quad geometry as the movie screen and attach a dynamic 2D texture to its surface. The texture contains a series of images that make up the whole video. It is necessary that the image sequence can add new images on the fly, which may be transferred from files or mini cameras.

OSG uses the osg::ImageStream class to support an image stream, which manages sub-images in the data buffer. It can be derived to read data from video files or the Internet. In fact, OSG has already had a few built-in plugins that support the loading and playing of AVI, MPG, MOV, and other file formats. This will be described in details in Chapter ...

Get OpenSceneGraph 3.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.