Jump to content


Photo

.smd to .mdl help!


  • Please log in to reply
11 replies to this topic

#1 RoboTyphoon

RoboTyphoon

    Zombie

  • Zombies
  • PipPipPipPip
  • 538 posts
  • Gender:Male

Posted 01 May 2012 - 01:57 AM

I'm getting rather frustrated because I have my qc file and my .smd model, but I can't for the life of me figure out how to compile it.

I'm trying to use GUIStudio but I don't really understand why it wont work, I would like some step by step instructions, would really help me out.

Does anybody know any simpler ways to compile an .smd with another program?

I've been trying to figure this out on and off for a few months now, and every time I get to the compiling stages I give up, and I have some decent models waiting... :(

#2 Maxx

Maxx

    Project Lead

  • Administrators
  • PipPipPipPipPipPip
  • 14,354 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:4 8 15 16 23 42

Posted 01 May 2012 - 03:54 AM

create a shortcut to studiomdl on your desktop, and drag you QC on to that shortcut. I don't use whateverthefuckfancydoodads you kids use today. Post your QC.


Also, topic moved to appropriate section.


Like NMRiH? Add me on Facebook!
-- NMRiH Project Lead, Team Manager --
"less talk more getting naked" -- ssba
Posted Image
Posted Image


#3 RoboTyphoon

RoboTyphoon

    Zombie

  • Zombies
  • PipPipPipPip
  • 538 posts
  • Gender:Male

Posted 01 May 2012 - 07:06 PM

My qc is for a static prop, it's a simple rectangle brush that represents a lego brick (I figured I would start simple to learn the process).

I'm not 100% on this, but here's what I got:

$staticprop
$modelname "legobrick2x4_01"
$scale "1.00"
$body "Body" "legobrick2x4_01_ref"
$cdmaterials "materials/props/lego/legobrick2x4_01"
$sequence idle "legobrick2x4_01_ref"
$surfaceprop "no_decal"

I created a shortcut to the studiomdl.exe, and dragged the qc over it and I get a system error 'The program can't start because tier.0.dll is missing from your computer. Try reinstalling the program to fix this problem.' I get that error when I try both the ep1 and orangebox stuidomdl.exe's, and I don't even know WHAT to try and reinstall..

EDIT: Alright so, I fixed it somehow, now it accepts my qc but I have no idea what happens after I drag the qc over the shortcut, where's my model? How do I know it worked? I search my whole Steam folder for 'legobrick2x4_01' and nothing turns up, which leads me to believe something didn't go right but how am I supposed to know if the compile window goes so fast I can't even read the text.

#4 RoboTyphoon

RoboTyphoon

    Zombie

  • Zombies
  • PipPipPipPip
  • 538 posts
  • Gender:Male

Posted 01 May 2012 - 11:29 PM

Alright so after some research on my own and a ton of trial and error, I learned my qc was worthless; here's the new

$modelname props_lego/cube.mdl
$cdmaterials props/cube

$scale 1

$body studio "cube.smd"

$origin 0 0 0

$staticprop

$surfaceprop "brick"

$sequence idle "cube_still" loop fps 1


I learned you need not only the cube.smd but the cube_still.smd

I went back and learned GUIStudio (couldn't figure out the studiomdl process) and here's what I got:

Posted Image

Anybody know why my texture isn't showing up? Maxx?
What should I use for the model texture, should it be a .vtf or a .png, or?
I have both a .png and a .vtf in the materials\models\props folder so I dunno what's going on.

#5 ssba

ssba

    Lead Programmer

  • Administrators
  • PipPipPipPipPipPip
  • 3,688 posts
  • Gender:Male
  • Location:Philadelphia
  • Interests:101100010110

Posted 02 May 2012 - 01:36 AM

You need to compile the texture to a vtf, and create a vmt for it: https://developer.valvesoftware.com/wiki/Material

$basetexture points to the .vtf to use (without the .vtf extension)

One does not simply F11 into Mordor.


#6 RoboTyphoon

RoboTyphoon

    Zombie

  • Zombies
  • PipPipPipPip
  • 538 posts
  • Gender:Male

Posted 02 May 2012 - 02:27 AM

I'm pretty familiar with vtf/vmt's so I slapped them in there, pretty basic;

"VertexlitGeneric"
{
"$basetexture" "models/props/cube"
"$envmap" "env_cubemap"
}

...and it's still a no go, pink and black checkers. I'm not sure what's going on, I checked all the file paths over and over, everything is in place. I think I'll just start all over tomorrow with all new everything and see how that goes, maybe my .smd's are corrupt <_<

I appreciate your guys help though, I don't know why it's so hard to find documentation on this stuff, it's like an easter egg hunt, finding out little parts here and there just to move on to the next step... even more frustrating is I'm using Blender which isn't as user friendly as these thousand dollar programs..

#7 ssba

ssba

    Lead Programmer

  • Administrators
  • PipPipPipPipPipPip
  • 3,688 posts
  • Gender:Male
  • Location:Philadelphia
  • Interests:101100010110

Posted 02 May 2012 - 02:45 AM

What's the name of the texture on your model?

"$cdmaterials props/cube" in the QC means it's looking in the materials/props/cube directory for materials, but the vmt you just posted points to materials/models/props/cube.vtf -- seems like this probably isn't what you want.

You can open the reference .smd in notepad++ or something and look for "triangles" -- the next line should tell you the name of the (first) texture. So if it says 'my_texture.bmp', you'll need a 'my_texture.vmt' in whatever directories you list with $cdmaterials.

One does not simply F11 into Mordor.


#8 harryhoot1

harryhoot1

    Infected

  • Real Members
  • PipPip
  • 34 posts

Posted 02 May 2012 - 03:00 AM

Give me your files and I will see if I can do it for you.

#9 Maxx

Maxx

    Project Lead

  • Administrators
  • PipPipPipPipPipPip
  • 14,354 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:4 8 15 16 23 42

Posted 02 May 2012 - 01:20 PM

The name of the material being called by the model is EXACTLY THE NAME OF THE MATERIAL that is applied to the model in 3ds Max prior to SMD export.

So if your material applied to the model is "env_Dinks_HugeCocks01a_d.tga", then the name of the VMT needs to be env_Dinks_HugeCocks01a_d.vmt


Like NMRiH? Add me on Facebook!
-- NMRiH Project Lead, Team Manager --
"less talk more getting naked" -- ssba
Posted Image
Posted Image


#10 RoboTyphoon

RoboTyphoon

    Zombie

  • Zombies
  • PipPipPipPip
  • 538 posts
  • Gender:Male

Posted 02 May 2012 - 08:17 PM

I've titled everything 'Cube' since I've started this model, so the texture for my model is titled 'cube'

I checked in model viewer and in the model tab it says '*** ERROR *** Model attempted to load one or more VMTs it can't find.' I don't know why it can't find it, it's titled cube and is in my materials/models/props folder... does this not match my qc or? I dunno ssba.

I open my .smd and it just reads

version 1
nodes
0 "root" -1
end
skeleton
time 0
0 0 0 0 0 0 0
end
triangles
Material
0 1.000000 0.999999 1.000000 0.000000 1.000000 0.000000 0.333333 0.333333 0
0 1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 0.333333 0.666667 0
0 -1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 0.000000 0.666667 0
Material
0 1.000000 0.999999 1.000000 0.000000 1.000000 0.000000 0.333333 0.333333 0
0 -1.000000 1.000000 -1.000000 0.000000 1.000000 0.000000 0.000000 0.666667 0
0 -1.000000 1.000000 1.000000 0.000000 1.000000 0.000000 0.000000 0.333333 0
Material
0 -1.000000 -1.000000 -1.000000 -1.000000 0.000000 -0.000000 0.333333 1.000000 0
0 -1.000000 -1.000000 1.000000 -1.000000 0.000000 -0.000000 0.333333 0.666667 0
0 -1.000000 1.000000 1.000000 -1.000000 0.000000 -0.000000 0.666667 0.666667 0
Material
0 -1.000000 -1.000000 -1.000000 -1.000000 0.000000 -0.000000 0.333333 1.000000 0
0 -1.000000 1.000000 1.000000 -1.000000 0.000000 -0.000000 0.666667 0.666667 0
0 -1.000000 1.000000 -1.000000 -1.000000 0.000000 -0.000000 0.666667 1.000000 0
Material
0 1.000000 -1.000000 -1.000000 -0.000000 -1.000000 -0.000000 0.666667 0.000000 0
0 0.999999 -1.000001 1.000000 -0.000000 -1.000000 -0.000000 0.666667 0.333333 0
0 -1.000000 -1.000000 -1.000000 -0.000000 -1.000000 -0.000000 0.333333 0.000000 0
Material
0 0.999999 -1.000001 1.000000 -0.000000 -1.000000 0.000000 0.666667 0.333333 0
0 -1.000000 -1.000000 1.000000 -0.000000 -1.000000 0.000000 0.333333 0.333333 0
0 -1.000000 -1.000000 -1.000000 -0.000000 -1.000000 0.000000 0.333333 0.000000 0
Material
0 1.000000 1.000000 -1.000000 1.000000 0.000000 -0.000000 0.666667 0.333333 0
0 1.000000 0.999999 1.000000 1.000000 0.000000 -0.000000 0.666667 0.666667 0
0 1.000000 -1.000000 -1.000000 1.000000 0.000000 -0.000000 0.333334 0.333333 0
Material
0 1.000000 0.999999 1.000000 1.000000 -0.000001 0.000000 0.666667 0.666667 0
0 0.999999 -1.000001 1.000000 1.000000 -0.000001 0.000000 0.333333 0.666667 0
0 1.000000 -1.000000 -1.000000 1.000000 -0.000001 0.000000 0.333334 0.333333 0
Material
0 1.000000 0.999999 1.000000 -0.000000 -0.000000 1.000000 0.333333 0.333333 0
0 -1.000000 1.000000 1.000000 -0.000000 -0.000000 1.000000 0.000000 0.333333 0
0 0.999999 -1.000001 1.000000 -0.000000 -0.000000 1.000000 0.333333 0.000000 0
Material
0 -1.000000 1.000000 1.000000 0.000000 -0.000000 1.000000 0.000000 0.333333 0
0 -1.000000 -1.000000 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 0
0 0.999999 -1.000001 1.000000 0.000000 -0.000000 1.000000 0.333333 0.000000 0
Material
0 1.000000 1.000000 -1.000000 0.000000 0.000000 -1.000000 0.333333 1.000000 0
0 1.000000 -1.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 1.000000 0
0 -1.000000 -1.000000 -1.000000 0.000000 0.000000 -1.000000 0.000000 0.666667 0
Material
0 1.000000 1.000000 -1.000000 0.000000 -0.000000 -1.000000 0.333333 1.000000 0
0 -1.000000 -1.000000 -1.000000 0.000000 -0.000000 -1.000000 0.000000 0.666667 0
0 -1.000000 1.000000 -1.000000 0.000000 -0.000000 -1.000000 0.333333 0.666667 0
end

EDIT: Alright, so I replaced every time it said 'Material' with 'Cube' and it works now... I think it wasn't working right in my .smd because I didn't correctly assign the texture in blender before I exported ;) because I'm not even sure how to assign it once the texture's loaded, I just assume it's assigned, aha.

Thanks harryhoot1, but I'm trying to learn this so it wouldn't benefit me to just have you do my models, after all it's not like I'm gonna come to you every time I need something compiled, lol, that's just not practical.

It looks like I have everything working now, I appreciate the help everyone! If I make anything good in the future I'll be sure to post it!

#11 RoboTyphoon

RoboTyphoon

    Zombie

  • Zombies
  • PipPipPipPip
  • 538 posts
  • Gender:Male

Posted 02 May 2012 - 10:38 PM

Posted Image

Alright, just made this for my L4D map (http://www.l4dmaps.c...s.php?file=9440)

I realize how simple it is, but I just feel so ecstatic because ever since I started playing Source I imagined the time when I would finally learn to model, like I learned to map, and it's all starting to take shape :lol:

But alright, I'm done posting on this thread, thanks again guys!

#12 Maxx

Maxx

    Project Lead

  • Administrators
  • PipPipPipPipPipPip
  • 14,354 posts
  • Gender:Male
  • Location:Toronto, Canada
  • Interests:4 8 15 16 23 42

Posted 04 May 2012 - 12:52 AM

Glad it worked out!


Like NMRiH? Add me on Facebook!
-- NMRiH Project Lead, Team Manager --
"less talk more getting naked" -- ssba
Posted Image
Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users