Browse our Products

Aspose.3D for Java 22.2 Release Notes

Improvements and Changes

KeySummaryCategory
THREEJava-1054Allow embed textures in U3D and PDF fileNew feature
THREEJava-1058Primitives cannot bind to material in USD exporter/importerBug fix
THREEJava-1051Allow access extras and extensions in GLTF fileImprovement
THREEJava-1048Allow encode scene and node’s meta data to usdNew feature
THREEJava-1049Allow decode scene and node’s meta data from usdNew feature

API changes

Added members to class com.aspose.threed.AssetInfo:

    /**
     * Gets the document's copyright
     */
    public String getCopyright();

Gets the copyright of the file, this value can be null or defined in the 3D file. Only USDC/USDZ support this property now.

NOTE: Changes in this property will not change the copyright section of the output 3D file.

Added members to class com.aspose.threed.UsdSaveOptions:

    /**
     * Export meta data associated with Scene/Node to client
     * Default value is true
     */
    public boolean getExportMetaData();
    
    /**
     * Export meta data associated with Scene/Node to client
     * Default value is true
     * @param value New value
     */
    public void setExportMetaData(boolean value);

Gets or sets whether to export scene’s asset info and node’s properties to the output USDC/USDZ file.

Added members to class com.aspose.threed.PdfSaveOptions:

    /**
     * Embed the external textures into the PDF file, default value is false.
     */
    public boolean getEmbedTextures();
    
    /**
     * Embed the external textures into the PDF file, default value is false.
     * @param value New value
     */
    public void setEmbedTextures(boolean value);

Set this to true to generate 3D PDF file with embedded texture files.

Example code:

        var scene = new Scene();
        scene.open("test.obj");
        var opt = new PdfSaveOptions();
        //embed the external textures in the output PDF file.
        opt.setEmbedTextures(true);
        //Look up external textures in the  common/textures directory
        opt.getLookupPaths().add("common/textures");
        scene.save("test.pdf", opt);

Added members to class com.aspose.threed.U3dSaveOptions:

    /**
     * Embed the external textures into the U3D file, default value is false.
     */
    public boolean getEmbedTextures();
    
    /**
     * Embed the external textures into the U3D file, default value is false.
     * @param value New value
     */
    public void setEmbedTextures(boolean value);

Set this to true to generate 3D U3D file with embedded texture files.

Example code:

        var scene = new Scene();
        scene.open("test.obj");
        var opt = new U3dSaveOptions();
        //embed the external textures in the output PDF file.
        opt.setEmbedTextures(true);
        //Look up external textures in the  common/textures directory
        opt.getLookupPaths().add("common/textures");
        scene.save("test.u3d", opt);


 
 English