وفِّر 3D مشهد بـ HTML

Contents
[ ]

وفِّر 3D مشهد بـ HTML

Aspose.3D for Node.js via Java provides HtmlSaveOptions class to save a save 3D scene as HTML. When you export the scene into HTML5 file, API will export three files, an HTML file, an Aspose3DWeb file(*.a3dw*), and a rendered JavaScript file. In order to export a3dw file only, you can specify Aspose3DWeb as the export type, and reuse the JavaScript file within your own HTML page. The following code snippet shows how to save a 3D scene as HTML. 

// Initialize a scene
var scene = new aspose.threed.Scene();

scene.getRootNode().createChildNode(new aspose.threed.Cylinder());

var opt =new aspose.threed.Html5SaveOptions();
// Turn off the grid
opt.setShowGrid(false);
//Turn off the user interface
opt.setShowUI(false);

scene.save("html5SaveOption.html);
 python3 -m http.server

Tالدجاجة فتحهhttp://localhost:8000/test.html. The يستخدم بائع الويب ebebGL2 ، يمكنك استخدامhttps://get.webgl.org/webgl2/للتحقق مما إذا كان المتصفح يدعم ذلك أم لا.