AB4D Forum
How to read a 3DS file and output it to the Tree.js screen as json - Printable Version

+- AB4D Forum (https://forum.ab4d.com)
+-- Forum: Products Forums (https://forum.ab4d.com/forumdisplay.php?fid=4)
+--- Forum: Viewer3ds and Ab3d.Reader3ds (https://forum.ab4d.com/forumdisplay.php?fid=5)
+--- Thread: How to read a 3DS file and output it to the Tree.js screen as json (/showthread.php?tid=4436)



How to read a 3DS file and output it to the Tree.js screen as json - kanta8819@cadian.com - 01-25-2024

I'm currently using ab3d.Reader3D.
I would like to read and display 3DS files on the web.
Is there a way?
Can you please write an example code?
please answer about my question.



RE: How to read a 3DS file and output it to the Tree.js screen as json - abenedik - 01-25-2024

By json you probably mean glTF file format that use json to define the scene (and can also use some additional binary for meshes and other binary data).

You can import the 3D scene by Ab3d.Reader3ds and then use AssimpExporter to export the scene to glTF format (see the same with the same name in Ab3d.PowerToys samples project).

If you want some other kind of json, then you will need to write an exporter by yourself.


RE: How to read a 3DS file and output it to the Tree.js screen as json - kanta8819@cadian.com - 01-25-2024

thank you