1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

Missing Textures in Hammer (Source)

  • Onyx Elite
  • April 5, 2008 at 12:29 AM
  • Onyx Elite
    • April 5, 2008 at 12:29 AM
    • #1

    Hi all,

    I'm a newly registered member and apologise if I've neglected the appropriate intro post etc but I'm having some issues importing my models from Maya 8.5 into Hammer 4.1. This is my first attempt at importing a custom model and I'm having some issues. The main one being that when I import my mdl as a prop_static, the material appears to be missing, leaving me with the pink and purple checkerboard. I'm attempting to follow the tutorial at http://%7boption%7d as this appears to be the most helpful one so far.

    Also, the model imports incredibly tiny and refuses to be scaled any bigger. I can obviously increase its size in Maya but are there any additional options in Hammer for controlling size other than using Ctrl+M?

    Many thanks,

    Leigh

  • Onyx Elite
    • April 5, 2008 at 3:16 PM
    • #2

    If it helps I think it might be something to do with my qc or vmt files. I'm not sure that I've referenced the directory structure correctly and am trying a lot of different variations. Will post the contents of these if anyone thinks they can help.

  • hessi
    • April 5, 2008 at 4:29 PM
    • #3

    the maya/hl2 pipeline is really broken. i am working on an improved exporter, but this one wouldnt be released before summer since i am in a lack of time.

    thanks for providing the link to the tutorial you used (which most "newbies" forget about). if the texture doesnt show up this can be an easy fix. open the reference smd with notepad or wordpad and check the triangle information for correct texture names. if there is something like "debug" then you should use an auto replacement to change it to your texture name "mytexture.tga". if this is not the problem you should check the QC file for $cdmaterials. $cdmaterials "models/de_mymap" would require that mytexture.vmt file is located in "cstrike/materials/models/de_mymap".

    i hope this helps to locate the exact reason for malfunctioning.

  • Onyx Elite
    • April 5, 2008 at 7:04 PM
    • #4

    Thanks for getting back to me. I started afresh and used another tutorial more geared towards creating a new mod rather than what I was doing, which was attempting to create a single map. The major difference is that it was easier to see the proper folder structure and reasons for it etc. I think the main issue I had previously was that I didn't realise I had to have my vmt in the materials\models\project\ folder.

    The new tutorial is here http://%7boption%7d, html version without pics here http://66.102.9.104/search?q=cache:Djt6 ... =firefox-a

    Anyway, the bottom line is that after a little source hiccup (http://developer.valvesoftware.com/wiki ... .2F2006.29) I managed to get my textured model to work in both the model viewer and Hammer. The issue now is that the prop_static is not visible when the map is compiled and run through Steam. Imagine my joy when that happened.

    Is this common? I'm having trouble locating anyone else who's had a similar problem.

  • hessi
    • April 5, 2008 at 9:59 PM
    • #5

    you should check the compile log. probably you didnt compile with $staticprop in your .qc file.

  • Onyx Elite
    • April 24, 2008 at 12:13 AM
    • #6

    Hi,

    Thanks for your help a while ago. It turns out that starting off the project the way I was trying to (as a mod) had so many of it's own problems it was unbelievable. From weapon glitching to invisible models the whole thing was a complete headache. I'm back to trying to just create a map but seem to be back to square 1 as far as texture application goes. I can't believe how convoluted the Maya/hl2 pipeline is, I'm literally tearing my hair out.

    Anyway, my current directory structure for stuff is as follows

    source folders

    K:\Projects\Hammer Projects\Level 01\mapsrc

    K:\Projects\Hammer Projects\Level 01\materialsrc\testcube.psd

    K:\Projects\Hammer Projects\Level 01\materialsrc\testcube.tga

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube.bat

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube.mb

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube.qc

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube.smd

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube_idle.smd

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube_LOD_1.smd

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube_LOD_2.smd

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube_LOD_3.smd

    K:\Projects\Hammer Projects\Level 01\modelsrc\testcube_phy.smd

    steam folders

    C:\Program Files\Steam\steamapps\onyxelite\half-life 2 deathmatch\hl2mp\materials\Level01\testcube.vtf

    C:\Program Files\Steam\steamapps\onyxelite\half-life 2 deathmatch\hl2mp\materials\models\Level01\testcube.vmt

    C:\Program Files\Steam\steamapps\onyxelite\half-life 2 deathmatch\hl2mp\models\Level01\testcube.mdl (plus all the usual vtx and phy files created by compiling)

    qc contents

    $modelname Level01\testcube.mdl

    $cdmaterials models\Level01\


    $scale 1

    $upaxis Y


    $body studio "testcube.smd"

    $sequence idle "testcube_idle" fps 30 activity ACT_idle 1


    $surfaceprop "rock"


    $collisionmodel "testcube_phy.smd"

    {

    $Mass 1

    $concave

    }

    vmt contents

    "VertexLitGeneric"

    {

    "$basetexture" "../Level01/testcube"

    "model" 1

    "$envmapmode" 1


    }

    From what you said before I think my reference smd is ok, no mention of debug, lots of references to my texture.

  • Onyx Elite
    • April 24, 2008 at 1:28 AM
    • #7

    Oh, also should have mentioned any help would be REALLY appreciated as I'd like to stop banging my head against a brick wall right about now. Thanks.

  • hessi
    • April 24, 2008 at 7:43 AM
    • #8
    Quote from hessi

    you should check the compile log. probably you didnt compile with $staticprop in your .qc file.

    :roll: as if i didn't tell you.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  2. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  3. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  4. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  5. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  6. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  7. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  8. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  9. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  10. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM

Users Viewing This Thread

  • 2 Guests
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™