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

X3D Example Archives: X3D for Web Authors, Chapter 14 - Prototypes

[1] ArtDecoExamplesExcerpt.x3d - Front view
Chapter Viewpoint Slideshow
MaterialModulator prototype demonstration       ViewFrustum prototype demonstration

X3D eXtensibility includes a tremendous capability: authors can create prototype declarations and instances to define new X3D nodes. This is a powerful feature that puts the full power of this graphics language in the hands of Web authors.

Prototype templates are built using ProtoDeclare or ExternProtoDeclare definitions. ProtoDeclare field definitions are found in the ProtoInterface tag, which can include multiple field declarations that define a name, initial value (if appropriate), accessType (inputOnly, outputOnly, initializeOnly and inputOutput) and type for each field. The type of each node is defined by the first node inside the ProtoBody declaration.

Copies of a new node are created by name with ProtoInstance nodes. Default values for ProtoInstance fields can be overridden with fieldValue initializations. A ProtoInstance node can replace any other node in the scene graph having the same node type.

The supporting Chapter 14 slideset and course videos (NPS, YouTube) for X3D for Web Authors are available online via X3dGraphics.com.

Also available: X3D Scene Authoring Hints for Inline Scenes and Prototype Templates and URL Links.

12 X3D Scenes      26 Viewpoint Snapshots

Art Deco Examples Excerpt    
  [1] ArtDecoExamplesExcerpt.x3d - Front view

  [2] ArtDecoExamplesExcerpt.x3d - Low Right

  [3] ArtDecoExamplesExcerpt.x3d - Low Left

  [4] ArtDecoExamplesExcerpt.x3d - Back view

  [5] ArtDecoExamplesExcerpt.x3d - Close Front

  [6] ArtDecoExamplesExcerpt.x3d - ArtDeco00

  [7] ArtDecoExamplesExcerpt.x3d - ArtDeco01

  [8] ArtDecoExamplesExcerpt.x3d - ArtDeco02

  [9] ArtDecoExamplesExcerpt.x3d - (default X3D view from 0 0 10)


Art Deco Prototypes Excerpt    
  [10] ArtDecoPrototypesExcerpt.x3d - (default X3D view from 0 0 10)


Heads Up Display Example    
  [11] HeadsUpDisplayExample.x3d - Heads-up display (HUD)

  [12] HeadsUpDisplayExample.x3d - (default X3D view from 0 0 10)


Heads Up Display Prototype    
  [13] HeadsUpDisplayPrototype.x3d - Heads-up display (HUD)

  [14] HeadsUpDisplayPrototype.x3d - (default X3D view from 0 0 10)


Hud Kelp Forest    
  [15] HudKelpForest.x3d - (default X3D view from 0 0 10)


Material Modulator    
  [16] MaterialModulator.x3d - (default X3D view from 0 0 10)


Material Modulator Prototype Expanded    
  [17] MaterialModulatorPrototypeExpanded.x3d - (default X3D view)


Text String Prototype    
  [18] TextStringPrototype.x3d - (default X3D view from 0 0 10)


View Frustum Example    
  [19] ViewFrustumExample.x3d - ViewFrustum from above, looking down

  [20] ViewFrustumExample.x3d - ViewFrustum from point of view

  [21] ViewFrustumExample.x3d - ViewFrustum behind point of view

  [22] ViewFrustumExample.x3d - ViewFrustum oblique side view

 [23] ViewFrustumExample.x3d - ViewFrustum ViewpointNode
  [24] ViewFrustumExample.x3d - (default X3D view from 0 0 10)


View Frustum Prototype    
  [25] ViewFrustumPrototype.x3d - (default X3D view from 0 0 10)


Where Am IExample    
 [26] WhereAmIExample.x3d - WhereAmI prototype test
 [27] WhereAmIExample.x3d - Viewpoint 2
 [28] WhereAmIExample.x3d - Viewpoint 3
 [29] WhereAmIExample.x3d - Viewpoint 4
 [30] WhereAmIExample.x3d - (default X3D view from 0 0 10)

Where Am IPrototype    
  [31] WhereAmIPrototype.x3d - WhereAmI prototype test

  [32] WhereAmIPrototype.x3d - (default X3D view from 0 0 10)

 

This viewpoint slideshow is online at
http://X3dGraphics.com/examples/X3dForWebAuthors/Chapter14-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/X3dForWebAuthors/Chapter14-Prototypes/_viewpoints

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