I can see that for a node I can create my own Property, like this:
Property prop = node.CreateDynamicProperty(“ObjectId”);
Can this / these properties be exported to GLTF? That could be very useful!
Thanks,
Havard
I can see that for a node I can create my own Property, like this:
Property prop = node.CreateDynamicProperty(“ObjectId”);
Can this / these properties be exported to GLTF? That could be very useful!
Thanks,
Havard
Yes, GLTF is a supported output format and you can save the final 3D model into GLTF format after adding the property to a node. All output supported formats are listed on this help topic: Save a 3D Document
Hi,
my question is; can custom data which is added to the nodes (‘Property’ or ‘MetaData’), also be exported to the GLTF? As GLTF is based on JSON, I would assume it is possible to add custom metadata to the nodes. This could be extremely valuable in order to extend the use of the model when imported into three.js for example, where custom metadata / parameters would open up for a lot of customization.
Example; It is a problem that it is not possible to identify nodes by Id parameter. Nodes in Aspose do not have Id parameter, and node Id when imported into three.js from GLTF seems to be set on the fly. I need to control this, to link the geometry with other kind of information. Therefore I would like to add “Id” parameter to the nodes this way.
We have logged a feature request under the ticket ID THREEDNET-314 in our issue tracking system to add support of adding custom property / Id while exporting a model to GLTF format. The export of custom properties is only supported in the output FBX format. We have linked your post to this ticket and will keep you informed regarding any available updates.
The linked ticket ID THREEDNET-314 has been resolved and will be included in the next version 17.12 of Aspose.3D for .NET API. We will notify you once the new version is published.
The linked ticket ID THREEDNET-314 has been resolved in the version 17.12 of Aspose.3D for .NET API, please download and try the latest version 17.12 of Aspose.3D for .NET API from NuGet gallery. The Aspose.3D for .NET 17.12 will allow you to store dynamic properties and save them into “extras” fields in both glTF 1.0 and glTF 2.0. Please refer to the release notes of version 17.12: Aspose.3D for .NET 17.12 - December 2017