informa
/
1 MIN READ
Blogs

Export OBJ to JSON(ThreeJS ver 3.1)

This explains a windows program to quickly export data from a 3d Software to WebGL/ThreeJS.

Today is my first post, so I will start by introducing a windows program which converts OBJ files exported from Maya/Sketchup/3ds Max (tried till now) to a JSON format supported by ThreeJS(version 3.1). So for those who have been using the super famous python script (made in 2.6) and are having problems in understanding how to use it, etc… I would like to introduce a simple way. Following image shows you the beta release of the exporter/converter.

Converter

So lets get started.

First download the files in the complete repository here:

https://github.com/theMaxscriptGuy/Windows_Programs/tree/master/Obj_To_ThreeJS

This contains the converter, its image and do not forget to download the Newtonsoft files. Once they are downloaded, extract them in a folder.

Do keep the converter and dll file in the same folder of the converter to work.

Next, you can open the exporter and click on the “Get File” button to select the file you want to convert. I have provided an obj file of a cone object exported from 3ds Max. You can try using the same.

Once you select the file, the statistics appear in the table below the buttons.

You can then choose to save. The save button will create a new file from where the source file was picked up and add “_Converted.js” as a suffix. This is the file you can use with ThreeJS and export data to the web.

The converter is still under progress. Please do post in your crits/comments/issues as it shall help in the development process of the script.

Cheers,

theMaxscriptGuy

Latest Jobs

IO Interactive

Hybrid (Malmö, Sweden)
3.02.23
Gameplay Director (Project Fantasy)

Arizona State University

Los Angeles, CA, USA
2.27.23
Assistant Professor of XR Technologies

IO Interactive

Hybrid (Copenhagen, Denmark)
3.02.23
Animation Tech Programmer

Purdue University

West Lafayette, IN, USA
3.02.23
Assistant Professor in Game Design and Development
More Jobs   

CONNECT WITH US

Explore the
Advertise with
Follow us

Game Developer Job Board

Game Developer

@gamedevdotcom

Explore the

Game Developer Job Board

Browse open positions across the game industry or recruit new talent for your studio

Browse
Advertise with

Game Developer

Engage game professionals and drive sales using an array of Game Developer media solutions to meet your objectives.

Learn More
Follow us

@gamedevdotcom

Follow us @gamedevdotcom to stay up-to-date with the latest news & insider information about events & more