Free Support Forum - aspose.com

Aspose 3D Scene Empty when opening FBX and converting to PDF

Hi,

I had attempted to use different versions of Aspose.3D to create a Scene from an existing FBX file and save it as a PDF. Every time I made those attempts, the same result would be an empty 2 KB PDF file. I had debugged it to see if I can see if there is anything I can change to fix it, but when the scene opens the FBX file, it has nothing in it. No properties outside of filepath and empty lists of nodes. I cant upload an FBX here so I have uploaded the PDF that I generate and the PDF that is generated through the Aspose website.

When it goes through the Aspose website it works fine, so here is my code sample that I pulled from your samples.
Scene document = new Scene();
document.Open(filePath, FileFormat.FBX7500ASCII);
var options = new PdfSaveOptions();
document.Save(filePath.Replace(".fbx", “.pdf”), options);

I have tried different variations:
Scene document = new Scene(filePath);
document.Save(filePath.Replace(".fbx", “.pdf”), FileFormat.PDF);

It is the same result of an empty pdf file. I believe it is the loading of the FBX that is causing the issue and the empty PDF file is the result of an FBX not being loaded.P00-10-PE-B6S-0016.pdf (1.4 KB)
P00-10-PE-B6S-0016 From Aspose Website.pdf (44.7 KB)

@lrafih

You can please add your sample FBX file to .zip archive and share it with us. This way we will be able to test the scenario in our environment and address it accordingly.

P00-10-PE-B6S-0016.zip (167.7 KB)

This is on C#.Net 4.7.2

@lrafih

We tested the scenario in our environment using following code snippet and were unable to notice any issue. Please also check the attached output PDF.

Aspose.ThreeD.Scene document = new Aspose.ThreeD.Scene();
//  We loaded the scene without specifying the file format
document.Open(dataDir + "P00-10-PE-B6S-0016.fbx");
var options = new Aspose.ThreeD.Formats.PdfSaveOptions();
document.Save(dataDir + "P00-10-PE-B6S-0016.pdf", options);

P00-10-PE-B6S-0016.pdf (44.0 KB)

Could you please try using above code snippet with Aspose.3D for .NET 20.12.2 and let us know in case you still face any issue.

I have done exactly this. There is a point where loading the scene loads nothing with no information as to why.

@lrafih

Could you please make sure to use a valid license as well and if you do not have one, please consider applying for a 30-days temporary license. Please let us know if issue still persists.

I dont have a license, but if its a licensing issue, are you telling me that it won’t give me any exception detailing that it is a licensing issue? What is the purpose of having your dlls on Nuget for evaluation purposes when you can’t evaluate it?

It was the license. For future reference, an exception that shows that it needs a license to operate correctly would have made this a bit more palpable than being forced into forums to figure out something so simple over a week of communication.

@lrafih

We really apologize for the inconvenience which has been faced.

Please note that we have already mentioned the limitations of trial version of the API in the documentation under Licensing section. However, we do understand the concerns which you have shared and have logged an improvement ticket as THREEDNET-811 in our issue management system. We will surely work over implementing an exception to throw the error related to invalid or absent license and let you know as soon as it is implemented.

We again apologize for the inconvenience.