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.

Exporting OBJ from DeleD to Sandbox

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
User avatar
DreamBliss
Member
Member
Posts: 56
Joined: November 28th, 2012, 5:06 pm
Name: DreamBliss
Location: Lost on the Way...
Contact:

Exporting OBJ from DeleD to Sandbox

Post by DreamBliss »

OK so I am on Windows using the latest builds of each program. I have folders in the Sandbox/packages/model directory. Inside each folder is a tris.obj, a skin.jpg, and a obj.cfg.

Here are the settings I have for the DeleD OBJ Export plugin:

Code: Select all

Filename
Texture Folder
Scale

Triangulate
- None
- Non-convex Polygons
- All

Normals
- None
- Face
- Smooth
- Crease Angle, Angle
Material File (checkbox)
Tex Coords (checkbox)
Considering these settings, what should I use to guarantee import into Sandbox? Here is my obj.cfg:

Code: Select all

mdlscale 100

mdlambient 0

mdlspec -1

mdlcollide 1
I enter the game, go to Edit Mode, press E, adjust position to look down, type this at the console window after pressing the tilde key:

Code: Select all

mmodel +nonenone
mmodel +noneface
mmodel +nonesmooth
mmodel +noneca
mmodel +ncpnone
mmodel +ncpface
mmodel +ncpsmooth
mmodel +ncpca
mmodel +apnone
mmodel +apsmooth
mmodel +apface
mmodel +apca
That was my last experiment with this tonight. Then I press F3, go to Entities, click on Brushes or Models or whatever it is, scroll way down, and click on my mesh, which is just an icon of a box or something. In the game window a small wireframe box appears with sparkly stuff inside and I get an error message saying ,"...could not open package..."

Like I said, weird thing was that I did get the model in once. It was super huge. I scaled it wrong. Fixed that. the mesh is now 32 step height, 128 step width, something like 160 step length. So it should be importing correctly.

Any help you can give me would be appreciated. I have to go to sleep now. Dozing off in my chair...
- DreamBliss
State what you want for your reality,
But let the universe fill in the details.


My Forums
http://spiritualexplorers.zymichost.com/index.php
chocolatepie33
Support Team
Support Team
Posts: 2458
Joined: April 27th, 2010, 5:31 pm
IRC Username: CP

Re: Exporting OBJ from DeleD to Sandbox

Post by chocolatepie33 »

I'm not real sure about the deal with DeleD, but so far it sounds like it's your configuration and packaging that may be an issue. Ideally, you should have each model (and related files) within its own folder, e.g. a hammer model would be packages/models/hammer. Your obj file would look like this (keeping up the hammer example)

Code: Select all

objload tris.obj
objskin skin.png

...        (mdl configuration commands)
Your mmodel command use is rather confusing; if you have one model, you would just use /mmodel hammer (to follow our example) to load it. Alternatively you can add that code to the bottom of default-models.cfg (or something like that; it's in the main/data folder) to have the model load every time you have a new map.
Julius wrote:Contribute to http://www.opengameart.org NOW!
Save the wiki!
User avatar
DreamBliss
Member
Member
Posts: 56
Joined: November 28th, 2012, 5:06 pm
Name: DreamBliss
Location: Lost on the Way...
Contact:

Re: Exporting OBJ from DeleD to Sandbox

Post by DreamBliss »

I must have got some misinformation somewhere. OK, doing as you suggest right now (can't wait!)

Anticipation...
- DreamBliss

UPDATE!
THAT WORKED! Awesome! Thank you!!! Finally was able to import a mesh. Texture didn't work, trying a .jpg now. But I can experiment here and tool around the forums or Google. Finally got a mesh to import - very cool!

Thank you very much for your help chocolatepie33!
State what you want for your reality,
But let the universe fill in the details.


My Forums
http://spiritualexplorers.zymichost.com/index.php
Locked