Free Support Forum - aspose.com

18% of the examples in your published example project throw exceptions when targeting .net core 3.1

I can’t get your example code for rendering a scene to a 2d image to work, it always throws exceptions (“Render3DModelImageFromCamera”.)

I tried pulling down your example project from https://github.com/aspose-3d/Aspose.3D-for-.NET

When I compile the project targeting .net core 3.1, 13 of the 70 examples throw exceptions from inside the Aspose library. The failing methods are:

RenderSceneIntoCubemapwithsixfaces.Run: EXCEPTION: Object reference not set to an instance of an object.
Render3DModelImageFromCamera.Run: EXCEPTION: Object reference not set to an instance of an object.
CastAndReceiveShadow.Run: EXCEPTION: Object reference not set to an instance of an object.
ConvertPolygonsToTriangles.Run: EXCEPTION: Object reference not set to an instance of an object.
RenderPanaromaViewof3DScene.Run: EXCEPTION: Object reference not set to an instance of an object.
RenderFisheyeLensEffectof3DScene.Run: EXCEPTION: Object reference not set to an instance of an object.
ApplyVisualEffects.Run: EXCEPTION: Object reference not set to an instance of an object.
CaptureViewPort.Run: EXCEPTION: Object reference not set to an instance of an object.
DecodeMesh.Run: EXCEPTION: Object reference not set to an instance of an object.
EncodeMesh.Run: EXCEPTION: Object reference not set to an instance of an object.
EncodeMeshToPly.Run: EXCEPTION: Object reference not set to an instance of an object.
ExportToPlyAsPointCloud.Run: EXCEPTION: Object reference not set to an instance of an object.
Export3DSceneAsPointCloud.Run: EXCEPTION: Object reference not set to an instance of an object.

I was under the impression that you supported .net core. Is this not the case?

In reading other posts in this forum, I saw that it appears Rendering is not supported in .net Core. Is there any plan to support this? Also, what functionality of Aspose.3d is supported running as .net core on non-windows OS’s?

@OBCad,

Can you please share source files along with sample project so that we may further investigate to help you out.

https://github.com/aspose-3d/Aspose.3D-for-.NET

Just change the target in your project definition to dotnetcore, and try and build and run the samples.

@OBCad,

I have observed your issue and created investigation ticket with ID THREEDNET-634 in our issue tracking system to further investigate and resolve the issue. I request for your patience and we will share good news with you soon.

The issues you have found earlier (filed as THREEDNET-634) have been fixed in this update.

The issues you have found earlier (filed as THREEDNET-634) have been fixed in this update.