Help with smd and otheres thigns.

Joined
Aug 21, 2008
Messages
3
Reaction score
0
Hello everyone.
I need a little help here, been useing 3ds MAX 2008 to make a model for a BG2 (Battlegrounds 2, a HL2 mod) map, but having issues...........
I got the tut for this grass model I made here........

http://www.3dmantra.com/pflowgrass.html


Now, as far as I know, I followed the tut down to the T, and did everything, as far as I know, had issues appliying the materials, but I got it I am sure. So, I exported it to smd format just fine, here is the smd file. I however do not see anything about the blades of grass, unless in the making of the model the blades of grass became part ot the plane.........

version 1
nodes
0 "Plane01" -1
end
skeleton
time 0
0 1.986389 2.228939 0.000000 0.000000 -0.000000 0.000000
end
triangles
GreenGrass.vtf
0 -70.328651 -68.808182 0.000000 0.000000 0.000000 1.000000 0.000500 0.000500 1 0 1.000000
0 -34.171131 -68.808182 0.000000 0.000000 0.000000 1.000000 0.250250 0.000500 1 0 1.000000
0 -34.171131 -33.289623 0.000000 0.000000 0.000000 1.000000 0.250250 0.250250 1 0 1.000000
GreenGrass.vtf
0 -34.171131 -33.289623 0.000000 0.000000 0.000000 1.000000 0.250250 0.250250 1 0 1.000000
0 -70.328651 -33.289623 0.000000 0.000000 0.000000 1.000000 0.000500 0.250250 1 0 1.000000
0 -70.328651 -68.808182 0.000000 0.000000 0.000000 1.000000 0.000500 0.000500 1 0 1.000000
GreenGrass.vtf
0 -34.171131 -68.808182 0.000000 0.000000 0.000000 1.000000 0.250250 0.000500 1 0 1.000000
0 1.986389 -68.808182 0.000000 0.000000 0.000000 1.000000 0.500000 0.000500 1 0 1.000000
0 1.986389 -33.289623 0.000000 0.000000 0.000000 1.000000 0.500000 0.250250 1 0 1.000000
GreenGrass.vtf
0 1.986389 -33.289623 0.000000 0.000000 0.000000 1.000000 0.500000 0.250250 1 0 1.000000
0 -34.171131 -33.289623 0.000000 0.000000 0.000000 1.000000 0.250250 0.250250 1 0 1.000000
0 -34.171131 -68.808182 0.000000 0.000000 0.000000 1.000000 0.250250 0.000500 1 0 1.000000
GreenGrass.vtf
0 1.986389 -68.808182 0.000000 0.000000 0.000000 1.000000 0.500000 0.000500 1 0 1.000000
0 38.143909 -68.808182 0.000000 0.000000 0.000000 1.000000 0.749750 0.000500 1 0 1.000000
0 38.143909 -33.289623 0.000000 0.000000 0.000000 1.000000 0.749750 0.250250 1 0 1.000000
GreenGrass.vtf
0 38.143909 -33.289623 0.000000 0.000000 0.000000 1.000000 0.749750 0.250250 1 0 1.000000
0 1.986389 -33.289623 0.000000 0.000000 0.000000 1.000000 0.500000 0.250250 1 0 1.000000
0 1.986389 -68.808182 0.000000 0.000000 0.000000 1.000000 0.500000 0.000500 1 0 1.000000
GreenGrass.vtf
0 38.143909 -68.808182 0.000000 0.000000 0.000000 1.000000 0.749750 0.000500 1 0 1.000000
0 74.301430 -68.808182 0.000000 0.000000 0.000000 1.000000 0.999500 0.000499 1 0 1.000000
0 74.301430 -33.289623 0.000000 0.000000 0.000000 1.000000 0.999500 0.250250 1 0 1.000000
GreenGrass.vtf
0 74.301430 -33.289623 0.000000 0.000000 0.000000 1.000000 0.999500 0.250250 1 0 1.000000
0 38.143909 -33.289623 0.000000 0.000000 0.000000 1.000000 0.749750 0.250250 1 0 1.000000
0 38.143909 -68.808182 0.000000 0.000000 0.000000 1.000000 0.749750 0.000500 1 0 1.000000
GreenGrass.vtf
0 -70.328651 -33.289623 0.000000 0.000000 0.000000 1.000000 0.000500 0.250250 1 0 1.000000
0 -34.171131 -33.289623 0.000000 0.000000 0.000000 1.000000 0.250250 0.250250 1 0 1.000000
0 -34.171131 2.228939 0.000000 0.000000 0.000000 1.000000 0.250250 0.500000 1 0 1.000000
GreenGrass.vtf
0 -34.171131 2.228939 0.000000 0.000000 0.000000 1.000000 0.250250 0.500000 1 0 1.000000
0 -70.328651 2.228939 0.000000 0.000000 0.000000 1.000000 0.000500 0.500000 1 0 1.000000
0 -70.328651 -33.289623 0.000000 0.000000 0.000000 1.000000 0.000500 0.250250 1 0 1.000000
GreenGrass.vtf
0 -34.171131 -33.289623 0.000000 0.000000 0.000000 1.000000 0.250250 0.250250 1 0 1.000000
0 1.986389 -33.289623 0.000000 0.000000 0.000000 1.000000 0.500000 0.250250 1 0 1.000000
0 1.986389 2.228939 0.000000 0.000000 0.000000 1.000000 0.500000 0.500000 1 0 1.000000
GreenGrass.vtf
0 1.986389 2.228939 0.000000 0.000000 0.000000 1.000000 0.500000 0.500000 1 0 1.000000
0 -34.171131 2.228939 0.000000 0.000000 0.000000 1.000000 0.250250 0.500000 1 0 1.000000
0 -34.171131 -33.289623 0.000000 0.000000 0.000000 1.000000 0.250250 0.250250 1 0 1.000000
GreenGrass.vtf
0 1.986389 -33.289623 0.000000 0.000000 0.000000 1.000000 0.500000 0.250250 1 0 1.000000
0 38.143909 -33.289623 0.000000 0.000000 0.000000 1.000000 0.749750 0.250250 1 0 1.000000
0 38.143909 2.228939 0.000000 0.000000 0.000000 1.000000 0.749750 0.500000 1 0 1.000000
GreenGrass.vtf
0 38.143909 2.228939 0.000000 0.000000 0.000000 1.000000 0.749750 0.500000 1 0 1.000000
0 1.986389 2.228939 0.000000 0.000000 0.000000 1.000000 0.500000 0.500000 1 0 1.000000
0 1.986389 -33.289623 0.000000 0.000000 0.000000 1.000000 0.500000 0.250250 1 0 1.000000
GreenGrass.vtf
0 38.143909 -33.289623 0.000000 0.000000 0.000000 1.000000 0.749750 0.250250 1 0 1.000000
0 74.301430 -33.289623 0.000000 0.000000 0.000000 1.000000 0.999500 0.250250 1 0 1.000000
0 74.301430 2.228939 0.000000 0.000000 0.000000 1.000000 0.999500 0.500000 1 0 1.000000
GreenGrass.vtf
0 74.301430 2.228939 0.000000 0.000000 0.000000 1.000000 0.999500 0.500000 1 0 1.000000
0 38.143909 2.228939 0.000000 0.000000 0.000000 1.000000 0.749750 0.500000 1 0 1.000000
0 38.143909 -33.289623 0.000000 0.000000 0.000000 1.000000 0.749750 0.250250 1 0 1.000000
GreenGrass.vtf
0 -70.328651 2.228939 0.000000 0.000000 0.000000 1.000000 0.000500 0.500000 1 0 1.000000
0 -34.171131 2.228939 0.000000 0.000000 0.000000 1.000000 0.250250 0.500000 1 0 1.000000
0 -34.171131 37.747501 0.000000 0.000000 0.000000 1.000000 0.250250 0.749750 1 0 1.000000
GreenGrass.vtf
0 -34.171131 37.747501 0.000000 0.000000 0.000000 1.000000 0.250250 0.749750 1 0 1.000000
0 -70.328651 37.747501 0.000000 0.000000 0.000000 1.000000 0.000500 0.749750 1 0 1.000000
0 -70.328651 2.228939 0.000000 0.000000 0.000000 1.000000 0.000500 0.500000 1 0 1.000000
GreenGrass.vtf
0 -34.171131 2.228939 0.000000 0.000000 0.000000 1.000000 0.250250 0.500000 1 0 1.000000
0 1.986389 2.228939 0.000000 0.000000 0.000000 1.000000 0.500000 0.500000 1 0 1.000000
0 1.986389 37.747501 0.000000 0.000000 0.000000 1.000000 0.500000 0.749750 1 0 1.000000
GreenGrass.vtf
0 1.986389 37.747501 0.000000 0.000000 0.000000 1.000000 0.500000 0.749750 1 0 1.000000
0 -34.171131 37.747501 0.000000 0.000000 0.000000 1.000000 0.250250 0.749750 1 0 1.000000
0 -34.171131 2.228939 0.000000 0.000000 0.000000 1.000000 0.250250 0.500000 1 0 1.000000
GreenGrass.vtf
0 1.986389 2.228939 0.000000 0.000000 0.000000 1.000000 0.500000 0.500000 1 0 1.000000
0 38.143909 2.228939 0.000000 0.000000 0.000000 1.000000 0.749750 0.500000 1 0 1.000000
0 38.143909 37.747501 0.000000 0.000000 0.000000 1.000000 0.749750 0.749750 1 0 1.000000
GreenGrass.vtf
0 38.143909 37.747501 0.000000 0.000000 0.000000 1.000000 0.749750 0.749750 1 0 1.000000
0 1.986389 37.747501 0.000000 0.000000 0.000000 1.000000 0.500000 0.749750 1 0 1.000000
0 1.986389 2.228939 0.000000 0.000000 0.000000 1.000000 0.500000 0.500000 1 0 1.000000
GreenGrass.vtf
0 38.143909 2.228939 0.000000 0.000000 0.000000 1.000000 0.749750 0.500000 1 0 1.000000
0 74.301430 2.228939 0.000000 0.000000 0.000000 1.000000 0.999500 0.500000 1 0 1.000000
0 74.301430 37.747501 0.000000 0.000000 0.000000 1.000000 0.999500 0.749750 1 0 1.000000
GreenGrass.vtf
0 74.301430 37.747501 0.000000 0.000000 0.000000 1.000000 0.999500 0.749750 1 0 1.000000
0 38.143909 37.747501 0.000000 0.000000 0.000000 1.000000 0.749750 0.749750 1 0 1.000000
0 38.143909 2.228939 0.000000 0.000000 0.000000 1.000000 0.749750 0.500000 1 0 1.000000
GreenGrass.vtf
0 -70.328651 37.747501 0.000000 0.000000 0.000000 1.000000 0.000500 0.749750 1 0 1.000000
0 -34.171131 37.747501 0.000000 0.000000 0.000000 1.000000 0.250250 0.749750 1 0 1.000000
0 -34.171131 73.266068 0.000000 0.000000 0.000000 1.000000 0.250250 0.999501 1 0 1.000000
GreenGrass.vtf
0 -34.171131 73.266068 0.000000 0.000000 0.000000 1.000000 0.250250 0.999501 1 0 1.000000
0 -70.328651 73.266068 0.000000 0.000000 0.000000 1.000000 0.000500 0.999501 1 0 1.000000
0 -70.328651 37.747501 0.000000 0.000000 0.000000 1.000000 0.000500 0.749750 1 0 1.000000
GreenGrass.vtf
0 -34.171131 37.747501 0.000000 0.000000 0.000000 1.000000 0.250250 0.749750 1 0 1.000000
0 1.986389 37.747501 0.000000 0.000000 0.000000 1.000000 0.500000 0.749750 1 0 1.000000
0 1.986389 73.266068 0.000000 0.000000 0.000000 1.000000 0.500000 0.999500 1 0 1.000000
GreenGrass.vtf
0 1.986389 73.266068 0.000000 0.000000 0.000000 1.000000 0.500000 0.999500 1 0 1.000000
0 -34.171131 73.266068 0.000000 0.000000 0.000000 1.000000 0.250250 0.999501 1 0 1.000000
0 -34.171131 37.747501 0.000000 0.000000 0.000000 1.000000 0.250250 0.749750 1 0 1.000000
GreenGrass.vtf
0 1.986389 37.747501 0.000000 0.000000 0.000000 1.000000 0.500000 0.749750 1 0 1.000000
0 38.143909 37.747501 0.000000 0.000000 0.000000 1.000000 0.749750 0.749750 1 0 1.000000
0 38.143909 73.266068 0.000000 0.000000 0.000000 1.000000 0.749750 0.999500 1 0 1.000000
GreenGrass.vtf
0 38.143909 73.266068 0.000000 0.000000 0.000000 1.000000 0.749750 0.999500 1 0 1.000000
0 1.986389 73.266068 0.000000 0.000000 0.000000 1.000000 0.500000 0.999500 1 0 1.000000
0 1.986389 37.747501 0.000000 0.000000 0.000000 1.000000 0.500000 0.749750 1 0 1.000000
GreenGrass.vtf
0 38.143909 37.747501 0.000000 0.000000 0.000000 1.000000 0.749750 0.749750 1 0 1.000000
0 74.301430 37.747501 0.000000 0.000000 0.000000 1.000000 0.999500 0.749750 1 0 1.000000
0 74.301430 73.266068 0.000000 0.000000 0.000000 1.000000 0.999501 0.999500 1 0 1.000000
GreenGrass.vtf
0 74.301430 73.266068 0.000000 0.000000 0.000000 1.000000 0.999501 0.999500 1 0 1.000000
0 38.143909 73.266068 0.000000 0.000000 0.000000 1.000000 0.749750 0.999500 1 0 1.000000
0 38.143909 37.747501 0.000000 0.000000 0.000000 1.000000 0.749750 0.749750 1 0 1.000000
end




Made the qc file right, I think. Here it is...........

$modelname "Mine\Grass\GreenGrass.mdl"
$cdmaterials "Mine\GreenGrass.vtf"
$body "Body" "GreenGrass.smd"

$scale 1.0
$staticprop
$cdmaterials "materials\models\Mine"
$surfaceprop "grass"

$sequence "idle" "GreenGrass" fps 1

$collisionmodel "GreenGrass.smd"{
$mass 100.0
$inertia 1.00
$damping 0.00
$rotdamping 0.00
}

As you can see, it is a static prop.

Now comes the GUIStudeoMDL......And thats when things go wrong, and I dont know what I did. I get this after starting to compile my qc file.........

qdir: "c:\documents and settings\*****\desktop\smd\"
gamedir: "c:\program files\steam\steamapps\SourceMods\bg2\"
g_path: "GreenGrass"
Working on "GreenGrass.qc"
SMD MODEL GreenGrass.smd
WARNING: Bad collision model, check your smoothing groups!!!
WARNING: Truncating model!!!!
WARNING: GreenGrass.smd has bad smoothing groups
Model has 1 convex sub-parts
Collision model completed.

All I can think of is in the model making I did something wrong, though I dont know what. I thn go to look at it in Model Viewer, and all I get is a purple checked plane, with NO grass on it. Is it something I did in the making of the model?? Or in the qc file?? I hope someone can help me. If you need all my files, I can E Mail them to you.

This is what my model looks like in 3DS MAX.
 

Attachments

  • GreenGrass.JPG
    GreenGrass.JPG
    12.1 KB · Views: 263
I'm not sure, but isn't $cdmaterials meant to point to the directory containing the textures, not the actual texture itself?
 
I am not to sure.......That is why I am asking for help. ALSO, if anyone deos use 3ds MAX, and expor to smd, when I do that, I select on Export, do the save name and all that, and get the SND expot thing, and I press Export, I get this.....

Writing 15 Node(s)...

* "Plane01"
* "Cone01"
* "Particle View 01"
* "PF Engine01"
* "PF Source 01"
* "Birth 01"
* "Speed 01"
* "Rotation 01"
* "Render 01"
* "Display 01"
* "Event 01"
* "PF Source 01->Event 01"
* "Shape Instance 01"
* "Position Object 01"
* "Material Dynamic 01"

Writing Animation...
* Exporting single reference frame for 15 node(s)

Writing Meshes...
* "Plane01"
WARNING: Could not get a material for mesh "Plane01". Skipping mesh.
Assign a Standard or Multi/Sub-Object type material to it.

* "Cone01"
WARNING: Could not get a material for mesh "Cone01". Skipping mesh.
Assign a Standard or Multi/Sub-Object type material to it.

* "PF Source 01"
WARNING: Could not initialize bi-normal and tangents data for mesh "PF Source 01". Skipping mesh.

* "PF Source 01->Event 01"
WARNING: Could not initialize bi-normal and tangents data for mesh "PF Source 01->Event 01". Skipping mesh.



Done!


Waht am I doing wrong???If I choose Export Selected, than I dont get that, but it also seems like IT deos not work that way iether.
 
put your model in a map, load the map in-game and check the console for where your textures should be.
 
{Ka-Tet} said:
Waht am I doing wrong???If I choose Export Selected, than I dont get that, but it also seems like IT deos not work that way iether.

did you have the models selected, if not then yeah, it shouldnt do anything
 
Writing Meshes...
* "Plane01"
WARNING: Could not get a material for mesh "Plane01". Skipping mesh.
Assign a Standard or Multi/Sub-Object type material to it.

In 3DS Max, you need to have the texture assigned to the mesh before you export your reference frame.

Also, be sure the name of the texture you're assigning in Max is the same name as the VTF that the compiled SMD will use.
 
Back
Top