Free Support Forum - aspose.com

FBX to gltf/glb ExportException : Object's type Aspose.ThreeD.Utilities.Vector3is not supported

Having some issues trying to convert fbx to gltf. See the following exception:

Aspose.ThreeD.ExportException : Object's type Aspose.ThreeD.Utilities.Vector3is not supported
   at #=zG98AMMZpCwcHoPZx1Ah_I8k=.#=z3x0nLD8=(Scene #=znl8YF10=, Stream #=ze3e7JCA=, SaveOptions #=z8sYprsE=, CancellationToken #=zBH_nAWQ=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zV6iqh$CU4KYDwPygpu0F3JFl_oziJpVNohJXUIs=(Object #=zoublyfE=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zuSOs1Z7jbbI7xRwlSpZtjivuGDYvgaHqpSq__uA=(MethodBase #=zoublyfE=, Boolean #=zID_AKMk=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zLYoQhQ2xGRVxhFxbEQ7Cnb1ONeCYZvVgOXvL$yI=(#=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0= #=zoublyfE=, #=qFdxCPGcD0loFQQtln9hstVZ0SSx_A0KxbsdSAvDU_1I= #=zID_AKMk=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zUTmXI$KJZLJt9Og9spB1PcwycviE6NMUGI38YNR9c9jb()
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z9gvFZQ1u$V_9bbx47VjRo_gOVlwvgc1G8DLQDwk=(Boolean #=zoublyfE=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zV6iqh$CU4KYDwPygpu0F3JFl_oziJpVNohJXUIs=(Object #=zoublyfE=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z6viXNq3TtDRgMsiyoQgWrVAU3LaNJcSADw==()
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z66LweLKVD_Q0ai9woMc23ebe9L6gFGRP5MX0CT4=(Object #=zoublyfE=, UInt32 #=zID_AKMk=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z9gvFZQ1u$V_9bbx47VjRo_gOVlwvgc1G8DLQDwk=(Boolean #=zoublyfE=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z8xtXCCFSY8r5zqDkyNXdViRj5RDzrqQf9rMp9BKTX7jJ()
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zGxksMrDg17OYWbBC8AvtemA2gbbM(Object[] #=zoublyfE=, Type[] #=zID_AKMk=, Type[] #=z0DKhfYs=, Object[] #=zmOX_kGI=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zHbfQnh71jbqp1O3Rab7AKaw=(Stream #=zoublyfE=, Int32 #=zID_AKMk=, Object[] #=z0DKhfYs=, Type[] #=zmOX_kGI=, Type[] #=z__isWfk=, Object[] #=z6CKkGZc=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zNURakZ$A3EikvwQtuEP_0etetKp_(Int32 #=zoublyfE=, Type[] #=zID_AKMk=, Type[] #=z0DKhfYs=, Boolean #=zmOX_kGI=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zfjkjedS9DDIKTsiuQvTu2Gl0Bwv9kSL1SLI1hjtZ0RAC(#=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0= #=zoublyfE=, #=qFdxCPGcD0loFQQtln9hstVZ0SSx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at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z66LweLKVD_Q0ai9woMc23ebe9L6gFGRP5MX0CT4=(Object #=zoublyfE=, UInt32 #=zID_AKMk=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z9gvFZQ1u$V_9bbx47VjRo_gOVlwvgc1G8DLQDwk=(Boolean #=zoublyfE=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z9gvFZQ1u$V_9bbx47VjRo_gOVlwvgc1G8DLQDwk=(Boolean #=zoublyfE=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=z8xtXCCFSY8r5zqDkyNXdViRj5RDzrqQf9rMp9BKTX7jJ()
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zGxksMrDg17OYWbBC8AvtemA2gbbM(Object[] #=zoublyfE=, Type[] #=zID_AKMk=, Type[] #=z0DKhfYs=, Object[] #=zmOX_kGI=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zt$$c0NNnuPg81EAyZJzc1qDUCasfoYMkDA==(Stream #=zoublyfE=, String #=zID_AKMk=, Object[] #=z0DKhfYs=, Type[] #=zmOX_kGI=, Type[] #=z__isWfk=, Object[] #=z6CKkGZc=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zOV8M7Zdl7QpXx5IqYnnQEkaU7cxQwio2XQ==(Stream #=zoublyfE=, String #=zID_AKMk=, Object[] #=z0DKhfYs=)
   at #=qKHyF1EaSIQ9toKogYNBW$6ZWPQpMvvZc$uQgr3RJ9_0=.#=zKGAIyhT9qPVe1e8Bjg6fH3sCpa9k2hF23Q==(Stream #=zoublyfE=, String #=zID_AKMk=, Object[] #=z0DKhfYs=)
   at Aspose.ThreeD.Scene.Save(String fileName, SaveOptions options, CancellationToken cancellationToken)
   at TestProject1.Tests.Fbx_Units_Remains_Same(String file, FileContentType contentType) in C:\Users\aleki\source\repos\Aspose\ImportExportError\TestProject1\UnitTest1.cs:line 39

I’ve uploaded a project that reproduces the exception:

You’ll need to fix the license path, then run the unit tests. Test Models are in the solution and copied to output directory.

ImportExportError.zip (4.3 MB)

@bortos

We were able to replicate the issue in our environment. Hence, have logged it as THREEDNET-866 in our issue tracking system. We will further look into its details and keep you informed about its rectification status. Please be patient and spare us some time.

We are sorry for the inconvenience.

Hi, any news on this?

I also have issues opening some of the glb output on viewers but I’ll address this when I get this update

@bortos

We would like to share with you that we have investigated the logged ticket. This exception happens when SaveExtras is set to true, the internal JSON writer only supports standard types, and there are some properties in Vector3 types.

Now Vector2/Vector3/Vector4/FVector2/FVector3/FVector4/FMatrix3/FMatrix4/Matrix3/Matrix4/Quaternion are all supported in the internal JSON writer, object’s extra properties in these types can also be exported to .gltf/.glb successfully since the upcoming fix-in version 21.4. We will update you once the 21.4 version is released.

The issues you have found earlier (filed as THREEDNET-866) have been fixed in Aspose.3D for .NET 21.4.