Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Next Chapter Viewpoint Slideshow X3D Resources

X3D Example Archives: VRML 2 Sourcebook, Chapter 31 - Prototypes

[1] Figure31.1WallColorPrototype.x3d - (default X3D view from 0 0 10)
Chapter Viewpoint Slideshow

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 Scenes      10 Viewpoint Snapshots

Figure 31.1 Wall Color Prototype    
  [1] Figure31.1WallColorPrototype.x3d - (default X3D view from 0 0 10)


Figure 31.2 Material Prototypes Library    
  [2] Figure31.2MaterialPrototypesLibrary.x3d - (default X3D view)


Figure 31.3 Material External Prototypes    
  [3] Figure31.3MaterialExternalPrototypes.x3d - (default X3D view)


Figure 31.4 Wood Appearance Prototypes Library    
  [4] Figure31.4WoodAppearancePrototypesLibrary.x3d - (default X3D view)


Figure 31.5 Wood Appearance External Prototypes    
  [5] Figure31.5WoodAppearanceExternalPrototypes.x3d - (default X3D view)


Figure 31.6 Donut Prototype    
  [6] Figure31.6DonutPrototype.x3d - (default X3D view from 0 0 10)


Figure 31.7 Donut External Prototype    
  [7] Figure31.7DonutExternalPrototype.x3d - Click to pick a size

  [8] Figure31.7DonutExternalPrototype.x3d - (default X3D view from 0 0 10)


Figure 31.9 Spin Group Prototype    
  [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
http://www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31-Prototypes/viewpointSlideshow.html

Validate XHTML 1.1

Viewpoint image version history at
http://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Chapter31-Prototypes/_viewpoints

Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Next Chapter Viewpoint Slideshow X3D Resources