Browse our Products

Aspose.3D for Java 21.6 Notes de Libération

Améliorations et changements

CléRésuméCatégorie
THREEDNET-870Ajouter USDC support d’exportation.Nouvelle caractéristique
THREEDNET-891Exposer le système de fichiers d’archive zipNouvelle caractéristique
THREEDNET-892Permettre à l’exportateur FBX d’intégrer des textures pendant l’exportation.Nouvelle fonctionnalité
THREEDNET-895Correction de certains caractères dans le nom du nœud provoquera l’échec de la validation du fichier GLB généréCorrection de bogue
THREEDNET-896La scène vide fixe ne peut pas exporter vers un fichier glb valideCorrection de bogue
THREEDNET-890Ajouter une exportation de matière/texture dans USDCAmélioration
THREEDNET-899Exposer la propriété de RelativeFilename pour FBX TextureAmélioration

API changements

Ajouté USD comme type d’exportation

À partir de 21.6, vous pouvez exporter la scène dans un fichier USD par:

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

Ajout d’une nouvelle classe com.aspose. trois. ZipArchiveFileSystem

Il est possible pour glb/fbx et d’autres formats de fichiers prenant en charge l’intégration de texture pour accéder à des ressources externes via un fichier zip en utilisant un ZipArchiveFileSystem vers SaveOptions.FileSystem.

Ajout d’une nouvelle propriété à la classe 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);

Code d’échantillon:

    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);


 
 Français