Hy,
I am trying to convert u3d file to html by ASPOSE 3D for .NET, but it doesn’t work.
Output I get 3 files, .js file, .a3dw file and .html file.
When I open html page from the web browser, I get a blank page with a .png image with a white background.
I have also enabled the .a3dw mime type on the web server.
This is the code I use for the conversion:
// load the U3D file to be converted
var document = new Aspose.ThreeD.Scene(pathIn);
// Create Instance of HTML Options
var options = new HTML5SaveOptions();
// save U3D as a HTML
document.Save(pathOut, options);
Hy,
this is my source code to convert u3d file in html version.
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Aspose.ThreeD;
using Aspose.ThreeD.Entities;
using Aspose.ThreeD.Formats;
using Aspose.ThreeD.Shading;
using Aspose.ThreeD.Utilities;
using System.IO;
public partial class index : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Aspose.ThreeD.License license = new Aspose.ThreeD.License();
license.SetLicense(Server.MapPath(“.”) + @“\Aspose.3D.NET.lic”);
}
protected void btnCrea_Click(object sender, EventArgs e)
{
lblMessaggio.Text = "";
string pathOut = Server.MapPath(".") + @"\public\demo.html";
string pathIn = Server.MapPath(".") + @"\Libreria3D\U3D.u3d";
// load the U3D file to be converted
var document = new Aspose.ThreeD.Scene(pathIn);
// Create Instance of HTML Options
var options = new HTML5SaveOptions();
// save U3D as a HTML
document.Save(pathOut, options);
}
While testing the scenario at our side, we received an HTML file which was not blank. Please check attached screenshot and let us know if you obtain similar output? OR it is completely blank? htmloutput.png (16.2 KB)
In my file I get the same scenario as yours.
So the conversion doesn’t work.
Why does this happen?
I do not understand if your library does not work or if I am wrong in using it
We have logged an issue as THREEDNET-759 in our issue tracking system for incorrect conversion of .u3d files to .html. We will further investigate the reasons behind this issue and keep you posted with the status of ticket resolution. Please be patient and give us some time.
The ticket has been just logged for investigation and we are afraid that we cannot share any feedback or alternate way at the moment. As soon as the ticket is reviewed, we will be able to further comment on the issue. We will post update in this forum thread as soon as the ticket is fully investigated. Please give us some time.
Hi Asad,
I used the new library 20.11. On the previous file, the rendered rendering was showing small.
I did a test with another .u3d file, which I am attaching to you, and the rendered rendering shows nothing.
The PDF file contained in the “TestFile” folder is the result that should exit the conversion.
When I launch the html page from the browser, this JavaScript error is shown:
We generated another ticket as THREEDNET-775 in our issue tracking system for this issue. We will further look into its details as well and keep you posted with the status of its correction. Please be patient and spare us some time.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.