浏览我们的产品

Aspose.3D for Java 20.10发行说明

改进和变更

钥匙摘要类别
THREEDNET-737在A3DW导出/导入中添加原始支持。
THREEDNET-732Aspose.3D在生成GLTF时出现纹理错误,但是将其保存为FBX没有问题
THREEDNET-738在RVM文件中添加颜色表支持。
THREEDNET-739支持7.7/二进制/Autodesk FBX

API更改

向类com.aspose.threed.FileFormat添加了新的文件格式:

    /**
     * ASCII FBX file format, with 7.6.0 version
     */
    public static final FileFormat FBX7600ASCII;
    /**
     * Binary FBX file format, with 7.6.0 version
     */
    public static final FileFormat FBX7600_BINARY;
    /**
     * ASCII FBX file format, with 7.7.0 version
     */
    public static final FileFormat FBX7700ASCII;
    /**
     * Binary FBX file format, with 7.7.0 version
     */
    public static final FileFormat FBX7700_BINARY;

现在,您可以在ASCII/二进制模式下将场景导出到FBX 7.6/7.7。

示例代码:

    var scene = new Scene();
    scene.getRootNode().createChildNode(new Pyramid());
    scene.save("fbx7.7.fbx", FileFormat.FBX7700_BINARY);

添加了新的类com.aspose.threed.A3DWSaveOptions

/**
 * Save options for A3DW format.
 */
public class A3DWSaveOptions extends SaveOptions
{    
    /**
     * 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);

    /**
     * If this property is non-null, only the properties of Scene/Node that start with this prefix will be exported, and the prefix will be removed.
     */
    public String getMetaDataPrefix();

    /**
     * If this property is non-null, only the properties of Scene/Node that start with this prefix will be exported, and the prefix will be removed.
     * @param value New value
     */
    public void setMetaDataPrefix(String value);

    /**
     * Constructor of {@link com.aspose.threed.A3DWSaveOptions}
     */
    public A3DWSaveOptions();
}

新的A3DWSaveOptions允许您将资产信息和属性导出到A3DW文件。

这与我们新的传入网络渲染器一起使用。

    var scene = new Scene();
    scene.getRootNode().createChildNode(new Pyramid()).setProperty("rvm:No", "347923");
    var opt = new A3DWSaveOptions();
    opt.setMetaDataPrefix("rvm:");
    scene.save("test.a3dw", opt);


 
 简体中文