O'Reilly logo

MPEG-4 Book, The by Touradj Ebrahimi, Fernando Pereira

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

14.5. PROTOs

PROTO is a way to define new nodes by combining the functionality of predefined nodes. Scenes that use PROTOs contain a section of PROTO definitions, which can then be instantiated in the scene and used like normal nodes.

The implementation of PROTO was done with the following objectives:

  1. Efficient implementation with minimal changes to the reference code, in order not to compromise the efficiency and stability of the code.

  2. Restriction of the changes to the scene manipulation layer so that no modifications will be required at the rendering layer.

To achieve that, the following problems needed to be solved:

  1. Both PROTO definition and PROTO instantiation need to be implemented—two tasks that seem fairly complex.

  2. Although a PROTO can be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required