1. Prepare your HTML file.
Don’t forget to link your HTML file with x3dom.js and spheretroupe.js or your JS file.
Write your X3D Tag in body tag in your HTML file
You can write X3D in document.write(“”); same as using createVrmlFromString in VRML if your ever seen it. But in X3DOM it’s easier, See SphereInit function.
Result of SphereTroupe Demo
– Default View
– Perspective View
– Point Mode in Perspective View (by type “m” on your keyboard)