Browse our Products

Aspose.3D for Java 23.5 Release Notes

Improvements and Changes

KeySummaryCategory
THREEDNET-1359Exporting to OBJ - Image/texture files not copied to OBJ directoryTask
THREEDNET-1361Decouple the dependency of System.DrawingTask
THREEDNET-1360Allow export PBR material definition and normal mapping in OBJ exporterImprovement
THREEDNET-1357Missing material and texture when loading obj fileBug fixing
THREEDNET-1358When importing an obj file, ControlPoints encountered an error reading data and read it as normal vector dataBug fixing

API changes

Added class com.aspose.threed.FontFile

Added class com.aspose.threed.Text

A FontFile can be used with Text to define profile from a string, then it can be used by other procedural modeling classes like LinearExtrusion

Added members to class com.aspose.threed.DracoSaveOptions, com.aspose.threed.GltfSaveOptions, com.aspose.threed.ObjSaveOptions:

Set this to true to make the exporter rescale position coordinates of meshes by Scene.AssetInfo.UnitScaleFactor, this option works for Gltf/Obj/Draco file.

    /**
     * Apply {@link com.aspose.threed.AssetInfo#getUnitScaleFactor} to the mesh.
     * Default value is false.
     */
    public boolean getApplyUnitScale()
    
    /**
     * Apply {@link com.aspose.threed.AssetInfo#getUnitScaleFactor} to the mesh.
     * Default value is false.
     * @param value New value
     */
    public void setApplyUnitScale(boolean value)

Sample code

    var s = new Scene("test.fbx");
    var opt = new ObjSaveOptions();
    opt.setApplyUnitScale(true);
    s.save("output.glb", opt);