Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to render FBX/3DS model in WebGL? [closed]

Tags:

webgl

fbx

3dsmax

The question is very simple: how do I render an FBX/3DS model in WebGL? I've tried googling around, but this seems like a pretty new area.

like image 380
Tower Avatar asked Nov 05 '22 16:11

Tower


2 Answers

As i've replied to you on another question, currently there are lots of problems that arise when you try to use WebGL. Chunked 3D formats that aren't UTF-8 "decodable" (text) can't be consistently loaded without browser trickery with buffers (which aren't neither standard nor API/stable). In this case, you should implement your own 3DS loader on Javascript and make it run on both Firefox and Chrome (although the buffers trick isn't useful on chrome AFAIK).

Your best bet is to use a text format like OBJ or ASE. I myself have begun work on a JSON exporter for blender here that works nicely with WebGL, but of course, it is only useful if you're using Blender 2.5+.

like image 68
Chiguireitor Avatar answered Nov 24 '22 00:11

Chiguireitor


You can use three.js javascript library to render model with webgl. Open 3ds model with the A3dsViewer. Click Export to the HTML5 in the toolbar and you will be able to preview the model in the browser.

like image 36
Slider Avatar answered Nov 24 '22 00:11

Slider