Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Javadoc for translated .java source 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

Prototypes let authors define a new X3D node made up of other X3D nodes, extending the language for any scenes in new and interesting ways.

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 themselves 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
ArtDecoExamplesExcerpt
Art Deco Examples Excerpt.x3d    
  [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)


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


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

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


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

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


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


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


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


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


ViewFrustumExample
View Frustum Example.x3d    
  [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)


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


WhereAmIExample
Where Am IExample.x3d    
 [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)

WhereAmIPrototype
Where Am IPrototype.x3d    
  [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/Chapter14Prototypes/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/Chapter14Prototypes/_viewpoints

Table of Contents Previous Chapter Viewpoint Slideshow    Chapter Viewpoint Slideshow Javadoc for translated .java source Next Chapter Viewpoint Slideshow X3D Resources