Light — Aspose.3D FOSS for Java

Light Class — Not Available

The Light class is not available in the Java edition of Aspose.3D FOSS. The Java source repository does not contain a Light.java implementation.

Scene lighting data from imported files (such as glTF or FBX) is stored as generic Entity objects attached to nodes. You can access these entities through the standard scene-graph traversal API, but there is no dedicated Light type with lighting-specific properties.

Working with Imported Lighting Data

When a file containing light definitions is imported, the light data is preserved as a generic entity on the node:

import com.aspose.threed.Scene;
import com.aspose.threed.Node;

Scene scene = Scene.fromFile("scene.gltf");

for (Node node : scene.getRootNode().getChildNodes()) {
    if (node.getEntity() != null) {
        System.out.println("Node '" + node.getName()
            + "': entity type=" + node.getEntity().getClass().getSimpleName());
    }
}

See Also