Page 1 of 1

Importing Blender Models to Sandbox

Posted: July 25th, 2010, 2:16 pm
by kevinatoranator
Sorry to bother you guys with another question but I followed the tutorial on how to put Blender models onto Sandbox and it works but the model doesn't show up it is just a bunch of blue sparkles. Also is it possible to Geo-Mod the terrain during a game.

Re: Importing Blender Models to Sandbox

Posted: July 25th, 2010, 4:20 pm
by daniel_san
A screenshot of what is going on would be helpful you know.
Actually, the 'blue sparkles' sounds a lot like the entity particle marker.
Therefore you're models uvs haven't been unwrapped, and or you messed up the md2/3/5 cfg.
Make sure in your cfg md3skin line is right. For eg.

md3skin Bob imagename.jpg
Objects name is Bob (in blender) in order for it to render imagename.jpg

As far as geo-mod, theres heightmap mode for that. Press H in edit mode.

Re: Importing Blender Models to Sandbox

Posted: July 25th, 2010, 5:40 pm
by kevinatoranator
do I have to have uv's because I wanted to try it with a grey model to see if it would work.

Screenshot
http://picasaweb.google.com/11527940813 ... 4343330370

Re: Importing Blender Models to Sandbox

Posted: July 25th, 2010, 6:15 pm
by PizzaLover101
that is excalty what happens to me, I put it in a folder, then i go to the cfg and type, mmodel "foldername/modelname.md3" // ###, Then i go into sandbox, and It's a marker :P

Re: Importing Blender Models to Sandbox

Posted: July 25th, 2010, 6:18 pm
by daniel_san
As far as i know, yes you need uvs unwrapped to even see the model.
If you just want to see the model just do a quick unwrap in blender.
Go into edit mode, select everything and then just press U and unwrap.
Then just use a grey image or whatever so you can see the model.

And to pizzalover
When you use mmodel you dont need to put .md3 at the end
that is unless the folder which the model is in actually is named modelname.md3
so itd just be
mmodel folername/modelfoldername

Re: Importing Blender Models to Sandbox

Posted: July 25th, 2010, 6:59 pm
by PizzaLover101
ok, thank you

Re: Importing Blender Models to Sandbox

Posted: July 25th, 2010, 8:26 pm
by kevinatoranator
thanks I got it to finally got to import the box the only problem is it says no texture and i gave it one this time

Re: Importing Blender Models to Sandbox

Posted: July 25th, 2010, 8:43 pm
by daniel_san
Like i said in the second post, make sure your md2/3/5skin line is correct.
Whatever your objects name is in blender has to match up with md*skin line in the cfg.

Straight from cube2wiki:

md3skin H S M [E [F]]

This loads a texture and assigns it to a mesh of the last loaded model (md3load). H is the name of the mesh you want to assign the texture to. S is the path to the texture, its recursive to the location of the md3.cfg. The optional M sets a texture for spec (red channel)/glow (green channel) maps as above. If E is non-zero, then the blue channel of the masks is interpreted as a chrome map. E (maximum envmap intensity) and F (minimum envmap intensity, default: 0) are floating point values in the range of 0 to 1, and specify the range in which the envmapping intensity will vary based on a viewing angle (a Fresnel term that is maximal at glancing angles, minimal when viewed dead-on). The intensity, after scaled into this range, is then multiplied by the chrome map.

http://sauerbraten.org/docs/models.html
http://cube.wikispaces.com/MD3+Export+F ... r+Tutorial

Re: Importing Blender Models to Sandbox

Posted: July 27th, 2010, 8:30 pm
by kevinatoranator
I finally got the texture to work on the cube with this

Code: Select all

md3load tris.md3
md3skin Cube m16a2.jpg
mdlscale 2000
this isn't a big problem it might have to do with the texture but there is no "cube" its just the texture in a cube shape
thanks for all your help