Importing .OBJ files
From Platinum Arts Sandbox Free 3D Game Maker
Revision as of 18:11, 13 May 2012 by Chocolatepie33 (Talk | contribs)
Creating the Folder
- This assumes you have a triangulated model with its own uv map for your textures.
- Create a new folder in the packages/models folder. Name your new folder so that it describes the model. The folder can also be the name of your model.
- Save or copy your obj file into your new folder you just created.
- Rename your obj file to tris.obj
- Save or copy your jpg texture file into the new folder. Rename your jpg texture file to skin.jpg
- Also, you need a configuration (.cfg) file. You can copy one from the other folders or make your own using notepad.
- If you copy a cfg file from another folder be sure to delete the text inside it. It can be left blank with no information.
- There are commands for obj files here: Sauerbraten OBJ configuration
- Rename the cfg file obj.cfg
Loading in Sandbox
- Press "E" to get into edit mode.
- Press the tilde (~) key (the one above the tab key) to bring up the console's text input, then type
mmodel [the name of your new folder]
- Press enter.
- Now your model is added to your mapmodel list.
- Hit F1 and go to the last number in the list and you will see your new model at the bottom.
I*t is the same name as the new folder you created in the above post.
Click on the name and your model with textures loads into the map.