Save 3D Scene as HTML
Contents
[
Hide
]
This özelliği 19.9 veya daha büyük sürümle desteklenir.
Save 3D Scene as HTML
Aspose.3D for 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.
Due to the browser’s security limits, the exported HTML file cannot be opened directly, you need to open it through a web server, if you have python3 installed, you can start the web-server in the command line in the exported directory
python3 -m http.server
Then açhttp://localhost:8000/test.html. The web renderer WebGL2 kullanır, kullanabilirsinizhttps://get.webgl.org/webgl2/Tarayıcınızın destekleyip desteklemediğini kontrol etmek için.