Explore nuestros productos

Aspose.3D for Java 21,6 Notas de la versión

Mejoras y cambios

ClaveResumenCategoría
THREEDNET-870Agregue soporte de exportación USDC.Nueva característica
THREEDNET-891Exponer sistema de archivos de archivo zipNueva característica
THREEDNET-892Permitir que FBX exportador incrustar texturas durante la exportación.Nueva característica
THREEDNET-895Los caracteres fijos en el nombre del nodo causarán que el archivo GLB generado no haya pasado la validaciónCorrección de errores
THREEDNET-896La escena vacía fija no puede exportar a un archivo glb válidoCorrección de errores
THREEDNET-890Añadir material/textura de exportación en USDCMejora
THREEDNET-899Exponer la propiedad de RelativeFilename para FBX TextureMejora

API cambios

Añadido USD como tipo de exportación

Desde 21,6 puede exportar la escena a un archivo USD mediante:

    Scene scene = new Scene();
    //...prepare your scene
    scene.save("test.usd", FileFormat.USD);

Añadido nueva clase com.aspose.threed.ZipArchiveFileSystem

Es posible que glb/fbx y otros formatos de archivo que admiten la incrustación de texturas accedan a activos externos a través de un archivo zip mediante un ZipArchiveFileSystem para SaveOptions.FileSystem.

Se ha añadido una nueva propiedad a la clase com.aspose.threed.FbxSaveOptions

    /**
     * Gets whether to embed the texture to the final output file.
     * FBX Exporter will try to find the texture's raw data from {@link com.aspose.threed.IOConfig#getFileSystem}, and embed the file to final FBX file.
     * Default value is false.
     */
    public boolean getEmbedTextures();
    
    /**
     * Sets whether to embed the texture to the final output file.
     * FBX Exporter will try to find the texture's raw data from {@link com.aspose.threed.IOConfig#getFileSystem}, and embed the file to final FBX file.
     * Default value is false.
     * @param value New value
     */
    public void setEmbedTextures(boolean value);

Código de muestra:

    var scene = new Scene();
    var opt = new FbxSaveOptions(FileFormat.FBX7700ASCII);
    opt.setEmbedTextures(true);
    var tex = new Texture();
    tex.setFileName("test.png");
    var mat = new PhongMaterial();
    mat.setTexture(Material.MAP_DIFFUSE, tex);
    var planeNode = scene.getRootNode().createChildNode(new Plane());
    planeNode.setMaterial(mat);
    scene.save("plane-with-texture.fbx", opt);


 
 Español