X3D Example Archives: VRML 2 Sourcebook, Chapter 30 Scripts, Figure 30 1 Script Sliding Ball

A sliding red sphere and a custom interpolation script. Three ways to include ECMAScript (JavaScript) programming are compared: external file, url script code, and embedded script code. Recommendation: use embedded script code inside a CDATA block.

Display error: X3D model not shown.

Your HTML browser does not appear to support all features required by the X_ITE X3D player!

X3D model

ClassicVRML

VRML97

Canonical

annotated .x3d source

X_ITE

X3DOM

.json (check)

.x3db Binary

Javadoc and .java source