Center FBX Model in Scene

Hello,

I am working on a little solution for loading a fbx file into Aspose. Center it in the scene and render the result to an png image.

Rendering the Image is no problem, but I can not find a way in the documentation for center the Object in the middel of the scene.
I know that my test file have a pivot point that is not in the center of the object.

In Unity I can get the boundingbox of the Mesh and calculate the different between the center of the boundingbox and the scene origin.

Can anybody tell me how to do that in Aspose.3D on the RootNode or direkt access the pivot point?

best regards

3D Model in Unity (96.3 KB)
Render Image result (11.6 KB)

@JogiG,

Kindly send us your source FBX model and code. We will investigate your scenario and then let you know about our findings. Your response is awaited.

Thank you for your fast reply.
I have uploade the Projekt and the 3D-Model in my OneDrive folder.

https://1drv.ms/f/s!AtdlOM2GmeG5hKZ4ilhDKxlA7iY4YA

@JogiG,

We have logged an investigation under the ticket ID THREEDNET-363 in our bug tracking system. We have linked your post to this ticket and will keep you informed regarding any available updates.

@JogiG,

The first node is not located at the world’s origin, so look at the origin will get the picture that the object is not in the center. You need to change the LookAt of camera from the Origin to the object will get the correct picture:
C#

var center = (boundingBox.Minimum + boundingBox.Maximum) * 0.5; 
camera.LookAt = center; 

In order to get the bounding box from a geometry in object space coordinate system, please use the following lines of code.
C#

Geometry geometry = (new Sphere()).ToMesh(); 
var bbox = BoundingBox.FromGeometry(geometry);

Note: the linked ticket ID THREEDNET-363 has been closed.