Jump to content
MaBo

problem with blender model in Hammer editor

Recommended Posts

Hello,

 

So I started to learn blender today and wanted to import my blender model into hammer.
I use Blender source tools to export it to smd.

I used crowbar to compile it.

In the model.qc file I entered:

$modelname        "industrial/flowerplant.mdl"
$body mybody    "flowerplant.smd"
$staticprop
$cdmaterials    "industrial/"
$scale            1

$sequence idle    "idle.smd" loop fps 1

$collisionmodel    "collision.smd" {
    $automass
    $concave
}

$keyvalues
{
   "prop_data"
   {
       "base"  "Metal.Medium"
   }
}

I used VTFEdit to create a vtf and a vmt file.

vmt file:

"VertexLitGeneric"
{
    "$basetexture" "models\industrial\xflowerplant"
    "$surfaceprop" "Concrete_Block"
}

The material files are located in "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\materials\models\industrial"
The model files are located in "C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Global Offensive\csgo\models\industrial"

 

But now my problem...
In the blender model it all looks normal and good https://gyazo.com/29aa333a35af92bfdc498b60e2bd327e

But when I check the model in csgo sdk model viewer it shows me this https://gyazo.com/6c3539cd44901ebee9f0e811da5c37a4
It also gives me a error "[error] could not load material"

Please help me to fix this.

- MaBo

 

 

Share this post


Link to post
Share on other sites

Go to CS:GO - SDK and open up the Model Viewer.

In the model viewer open up your model and go to the "Model" tab, and see at the bottom it should say Materials used: blabla, in my case as an example it says subway_entry_uv, the model is subway_entry.

This step is to make sure the model has any materials "attached" to it at all. Reply to me with what you find, also if you don't mind, upload the model files & the materials used for it so I could help you out more.

Share this post


Link to post
Share on other sites

Go to CS:GO - SDK and open up the Model Viewer.

In the model viewer open up your model and go to the "Model" tab, and see at the bottom it should say Materials used: blabla, in my case as an example it says subway_entry_uv, the model is subway_entry.

This step is to make sure the model has any materials "attached" to it at all. Reply to me with what you find, also if you don't mind, upload the model files & the materials used for it so I could help you out more.

Oh thanks for this tip, I found out I didn`t attach it to the model so I fixed it, now it shows the textures

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...