Transparency

You can make objects in your viewer transparent, to reveal other objects behind or inside them.

Example

In the example below, we'll position the camera and load a glTF model of a reciprocating saw. When the model has loaded, we'll make a couple of its handle objects transparent, to reveal its inner workings.

var viewer = new xeometry.Viewer();

viewer.setEye([-130, -40, 350]);
viewer.setLook([-130, -40, 0]);

viewer.loadModel("saw", "ReciprocatingSaw.gltf", function () {
    viewer.setRotate("saw", [90, 0, 0]);
    viewer.setOpacity(["saw#3.1", "saw#3.2"], 0.5);
});

[ Run demo ]

results matching ""

    No results matching ""