X3D Example Archives: Conformance Nist, Miscellaneous, EXTERNPROTO

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

VRML97 and ClassicVRML encodings use the term EXTERNPROTO, while XML and JSON encodings use the ExternProtoDeclare element.

ExternProtoDeclare refers to a ProtoDeclare node declaration provided in another file. ExternProtoDeclare interfaces are defined by field statements (without IS/connect statements). Hint: ExternProtoDeclare is a definition only, add corresponding ProtoInstance nodes to create new instances.

VRML97 and ClassicVRML encodings simply uses the prototype name to create an instance node, while XML and JSON encodings use the ProtoInstance element.

ProtoInstance creates an instance node of a locally or externally declared prototype definition. ProtoDeclare/ExternProtoDeclare definitions are abstract, corresponding ProtoInstance nodes are concrete. ProtoInstance nodes typically contain fieldValue statements to override default field values defined in the original ProtoDeclare statement. Hint: the node type of a ProtoInstance exactly matches the first node in the corresponding ProtoDeclare/ProtoBody declaration.

X3D Tooltips of interest: ExternProtoDeclare statement, field, ProtoDeclare statement, and ProtoInstance node with fieldValue statement.

X3D Specification sections of interest: Core component, 7.2 Concepts and 7.2.5.9 EXTERNPROTO statement.

X3D Examples Archives of related interest:

11 X3D Models                 11 X3D Model Viewpoint Snapshots

different_name
different name.x3d    
[1] different_name.x3d (default X3D view from 0 0 10)

different_name_proto
different name proto.x3d    
[2] different_name_proto.x3d (default X3D view from 0 0 10)

first_proto
first proto.x3d    
[3] first_proto.x3d (default X3D view from 0 0 10)

first_proto_file
first proto file.x3d    
[4] first_proto_file.x3d (default X3D view from 0 0 10)

first_proto_proto
first proto proto.x3d    
[5] first_proto_proto.x3d (default X3D view from 0 0 10)

ignore_externproto
ignore externproto.x3d    
[6] ignore_externproto.x3d (default X3D view from 0 0 10)

multi_url_specific
multi url specific.x3d    
[7] multi_url_specific.x3d (default X3D view from 0 0 10)

multi_url_specific_nofile
multi url specific nofile.x3d    
[8] multi_url_specific_nofile.x3d (default X3D view from 0 0 10)

second_proto_file
second proto file.x3d    
[9] second_proto_file.x3d (default X3D view from 0 0 10)

specific_proto
specific proto.x3d    
[10] specific_proto.x3d (default X3D view from 0 0 10)

specific_proto_proto
specific proto proto.x3d    
[11] specific_proto_proto.x3d (default X3D view from 0 0 10)
 

This viewpoint slideshow is online at
https://www.web3d.org/x3d/content/examples/ConformanceNist/Miscellaneous/EXTERNPROTO/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/ConformanceNist/Miscellaneous/EXTERNPROTO/_viewpoints