Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

Importing your Obj file tutorial

Learn more on how to use Sandbox, or submit your own tutorials or resources.
Radder
Member
Member
Posts: 67
Joined: September 23rd, 2009, 11:31 am

Importing your Obj file tutorial

Post by Radder »

Hi all, new here. I just downloaded Sandbox the other day and it took awhile to figure out how to load an obj file with the textures correctly.It is really easy in the end. This assumes you have a obj trianglated model with it's uv map for your textures.

1. Create a new folder in the packages/models folder. Name your new folder so that is describes the model like cabin etc...
2. Save or copy your obj file into your new folder you just created. ( I also include my obj's mlt file to the folder but that might not be necessary. If you do add it rename it to tris.mlt)
Rename your obj file to tris.obj
3. Save or copy your jpg texture file into the new folder. Rename your jpg texture file to skin.jpg
Also you need a 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.
Rename the cfg file obj.cfg
The model now will load with the textures and with collison detection on.
There are loading paramters that you can put in the cfg file but that can be dissused later

There might be other ways to get your obj file with textures loading into your map but this way does work well.
Last edited by Radder on September 23rd, 2009, 12:52 pm, edited 2 times in total.
Radder
Member
Member
Posts: 67
Joined: September 23rd, 2009, 11:31 am

Re: Importing Obj file

Post by Radder »

Here is how you load the your model into the map.

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
type "mmodel "the name of your new folder"
Below is the correct way to type it:
mmodel cabin ( replace cabin with the name of your new folder you created.)

Press enter.
Now your model is added to your mapmodel list.
Press the escape key. click on new mapmodel, go to the last number in the list and you will see your new model at the bottom. It 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.
User avatar
PizzaLover101
Member
Member
Posts: 1751
Joined: October 23rd, 2009, 1:33 pm
Name: NAME
IRC Username: DaItsicle
Location: By a computer
Contact:

Re: Importing your Obj file tutorial

Post by PizzaLover101 »

What am i doing wrong?

my cfg file is
mmodel testing/sniper/tris
and it shows up in the model directory, but it says that it can't load the skin
Project 1: Da Chest Collector [TBD]
Project 2: Tis a secret [End of summer] announcement June 22 2011
Project 3: An even bigger secret!

http://pizzagametime.tk/
http://forums.pizzagametime.tk/
User avatar
Mike
Administrator
Administrator
Posts: 871
Joined: May 24th, 2009, 12:52 pm

Re: Importing your Obj file tutorial

Post by Mike »

It doesn't look like you have the skin linked in your cfg. Check out the .cfgs for our models to get an example of what it should look like. Take care.
-mike
Sign up for our Newsletter to keep up to date with the Sandbox news!
We also have a facebook page, facebook group, myspace page and a twitter page[/b][/color]!
User avatar
Creatorrookie
Member
Member
Posts: 66
Joined: September 22nd, 2009, 8:35 pm
Name: John

Re: Importing your Obj file tutorial

Post by Creatorrookie »

What's a Uv map?
The rookie in sandbox... :)
User avatar
PizzaLover101
Member
Member
Posts: 1751
Joined: October 23rd, 2009, 1:33 pm
Name: NAME
IRC Username: DaItsicle
Location: By a computer
Contact:

Re: Importing your Obj file tutorial

Post by PizzaLover101 »

ok, thank you
Project 1: Da Chest Collector [TBD]
Project 2: Tis a secret [End of summer] announcement June 22 2011
Project 3: An even bigger secret!

http://pizzagametime.tk/
http://forums.pizzagametime.tk/
User avatar
Creatorrookie
Member
Member
Posts: 66
Joined: September 22nd, 2009, 8:35 pm
Name: John

Re: Importing your Obj file tutorial

Post by Creatorrookie »

What's an mlt file?
The rookie in sandbox... :)
User avatar
Creatorrookie
Member
Member
Posts: 66
Joined: September 22nd, 2009, 8:35 pm
Name: John

Re: Importing your Obj file tutorial

Post by Creatorrookie »

If the file I downloaded was "Rifleobj.rar. Is the rar significant, or will not apear as a mapmodel?
Am I supposed to convert the file?
The rookie in sandbox... :)
siimvuss
Member
Member
Posts: 410
Joined: August 19th, 2009, 1:27 am
Name: S
IRC Username: S
Location: Estonia

Re: Importing your Obj file tutorial

Post by siimvuss »

.rar means the file is packed its like .zip you have to unpack it then you can put the file in where ever you want
User avatar
stefos
Contributor
Contributor
Posts: 112
Joined: January 9th, 2010, 10:01 am
Name: stefos
Location: Greece, Crete, Elounda
Contact:

Re: Importing your Obj file tutorial

Post by stefos »

When exporting OBJ files from external programs I get an MTL file and the textures, I don't get just one texture skin how do I load these textures with my model...or how do I export a model from an external program in obj format with just the one texture skin and not the mtl file?

As above I can easily import models into SandBox (obj) but not the textures :(
Why not create your own cool comics with Platinum Arts Sandbox Free 3D Game Maker

Image

Visit Comix Sandbox Here http://www.comix-sandbox.com
Post Reply