X3D Example Archives: VRML 2 Sourcebook, Chapter 31 Prototypes

[1] Figure31_1WallColorPrototype.x3d (default X3D view from 0 0 10)
Directory Viewpoint Slideshow

Prototypes are an extension mechanism that lets authors define their own customizable nodes, improving reusability and sharing of cool content.

By declaring prototype designs and then creating one or more instances, you can create new node types that encapsulate Shapes, Sensors, Interpolators, Scripts and anything else. This technique creates new high-level nodes such as robots, menus, new shapes, etc. A PROTO statement declares a new node type (a prototype) with a name (the new node type name) along with fields and events (the interfaces to the prototype). Once defined, a prototyped node can be used like any other node.

These X3D scenes are adapted directly from the original VRML 2.0 Sourcebook chapter examples. Also available: Introduction to VRML97 SIGGRAPH98 course notes.

Figure 31.9 Spin Group Prototype
8 X3D Models                 10 X3D Model Viewpoint Snapshots

Figure31_1WallColorPrototype
Figure 31 1 Wall Color Prototype.x3d    
[1] Figure31_1WallColorPrototype.x3d (default X3D view from 0 0 10)

Figure31_2MaterialPrototypesLibrary
Figure 31 2 Material Prototypes Library.x3d    
[2] Figure31_2MaterialPrototypesLibrary.x3d (default X3D view from 0 0 10)

Figure31_3MaterialExternalPrototypes
Figure 31 3 Material External Prototypes.x3d    
[3] Figure31_3MaterialExternalPrototypes.x3d (default X3D view from 0 0 10)

Figure31_4WoodAppearancePrototypesLibrary
Figure 31 4 Wood Appearance Prototypes Library.x3d    
[4] Figure31_4WoodAppearancePrototypesLibrary.x3d (default X3D view)

Figure31_5WoodAppearanceExternalPrototypes
Figure 31 5 Wood Appearance External Prototypes.x3d    
[5] Figure31_5WoodAppearanceExternalPrototypes.x3d (default X3D view)

Figure31_6DonutPrototype
Figure 31 6 Donut Prototype.x3d    
[6] Figure31_6DonutPrototype.x3d (default X3D view from 0 0 10)

Figure31_7DonutExternalPrototype
Figure 31 7 Donut External Prototype.x3d    
[7] Figure31_7DonutExternalPrototype.x3d Click to pick a size
[8] Figure31_7DonutExternalPrototype.x3d (default X3D view from 0 0 10)

Figure31_9SpinGroupPrototype
Figure 31 9 Spin Group Prototype.x3d    
[9] Figure31_9SpinGroupPrototype.x3d Click on blue crossbar to activate second SpinGroup
[10] Figure31_9SpinGroupPrototype.x3d (default X3D view from 0 0 10)
 

This viewpoint slideshow is online at
https://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/viewpointSlideshow.html

Validate XHTML 1.1

Viewpoint image version history at
https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31Prototypes/_viewpoints