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

from max to source ( dod ) help!!!!

  • I3yG-MaK
  • August 8, 2007 at 5:45 PM
  • I3yG-MaK
    • August 8, 2007 at 5:45 PM
    • #1

    Well i have the model, then i aply the texture ( with a standart material ) and export it as smd, then y make the phys model, and export it ( with smd exporter with x normal )

    Well i create the vtf and vmt:

    Here is the vmt

    "LightmappedGeneric"

    {

    "$basetexture" "models/luzcalle/luzcalle"

    "$model" 1

    }

    The vtf and vmt are in --C:\Archivos de programa\Steam\steamapps\User\day of defeat source\dod\materials\luzcalle--

    Well then i create the qc file:

    $modelname "luzcalle/luzcalle.mdl"

    $scale 1.0

    $staticprop

    $body "Body" luzcalle.smd

    $surfaceprop "metal"

    $cdmaterials "luzcalle"

    $collisionmodel "luzcalle_phys" {

    $concave

    }

    $sequence idle "luzcalle.smd" fps 15 ACT_IDLE 1

    qc and smd's are in --C:\Archivos de programa\Steam\steamapps\user\day of defeat source\dod--

    Then i open the qc with studiomdl.exe and the mdl is compiled in --C:\Archivos de programa\Steam\steamapps\user\day of defeat source\dod\models\luzcalle--

    Then i open the luzcalle.smd with hlmv.exe and he appear with purple & black squares texture.

    HELP

    PD: The model have the rotation edge 3 meters infront of model, how can i change that?

  • bitmap
    • August 10, 2007 at 6:46 PM
    • #2

    "LightmappedGeneric"

    {

    "$basetexture" "models/luzcalle/luzcalle"

    "$model" 1

    }

    habe you tried removing one luzcalle from the path?

  • Wunderboy
    • August 10, 2007 at 8:38 PM
    • #3

    First of all, use "VertexLitGeneric" not "LightmappedGeneric".

    Second, you need to add "$cdmaterials materials/luzcalle" so that the model knows where to look for the textures.

    Basic rules for making textures are:

    1) Although you assign a TGA/BMP/Whatever to you model when you export and compile, the model is looking for a VMT with that name, NOT a VTF.

    2) You need to specify one or more $cdmaterials paths in your QC so the engine knows where to look for textures for the model.

    3) Model VMT's should be in the folders specified by $cdmaterials.

    4) Models use VertexLitGeneric as the shader type (except in some circumstatnces but thats for more advanced topics)

    5) You need at least a $basetexure defined in your VMT which should point to a VTF texture. The paths assumes that it's under "materials" already so you should use something like "$basetexture "models/my_model/texturename". You DONT need the .vtf extension after the texture name.

    If you're still getting purple/black chequers and you're lost, try my MDLTexture Info tool. You can drag a MDL file onto it and it will tell you which folders it's looking in for textures and what VMT files the model uses. It can be useful working out if everything is where it should be.

  • I3yG-MaK
    • August 10, 2007 at 9:57 PM
    • #4

    OMFG IT WORKS!!! I exported the model with a TGA ast texture called luz calle ( as you can see there is a space ) and i called the vmt luzcalle. So the model was looking for luz calle.vmt. then i changed vertexlight and all worked.

    im your fan nº1 Wunderboy

    Edit: There is another problem, how i can change the rotation center? it seems to be 3 meters in front of the model

  • bitmap
    • August 10, 2007 at 10:20 PM
    • #5

    change the pivot in max or whatever program you use.

    like set the pivot to 0,0,0

  • Wunderboy
    • August 11, 2007 at 2:50 PM
    • #6

    Warning: Don't uses spaces in your filenames. You should always use lowercase and use forward slashes "/". The reason is it screws up Linux servers that might end up running your content.

    As for the origin, the model's origin is the same as Max's i.e if your making something to stand on the ground, make it so it stands on the floor plane of the grid. 0,0,0 in Max is 0,0,0 in the model world.

    If you're making any kind of physics model, always move it so that the centre of the model is at 0,0,0 in Max. The reason is that any rotation is based on this point. I made the mistake of not doing this for a stick grenade model and it rolled around in a REALLY wierd way.

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. Hello from Normandy: Metin, working on a tactical FPS

    zlatan24
    November 17, 2026 at 6:29 PM
  2. Custom Gamemodes Contest

    cherybomb
    November 17, 2026 at 6:41 AM
  3. Mapcore Introductions Thread

    bergman
    November 16, 2026 at 12:21 PM
  4. [TF2] koth_arctic - revisiting my old winter map

    Hanz
    November 13, 2026 at 9:42 PM
  5. BELEK: turning Rouen into competitive FPS maps (Godot project, feedback wanted)

    zlatan24
    November 12, 2026 at 6:23 PM
  6. CS2 sticker critique | Would the eye or blade read first on an AK?

    EmberKrakenCS2
    November 9, 2026 at 10:21 PM
  7. dod_poznan

    Smile_2000
    November 9, 2026 at 9:10 AM
  8. [cs2][WIP] De_digital (A side only) Looking for Feedback

    Howw3
    November 5, 2026 at 9:22 PM
  9. How do I setup CS1.6 mapping on linux?

    zlatan24
    November 2, 2026 at 6:43 AM
  10. CS:S | de_honor | Map creation process by D'artagnan

    Dartagnan
    November 1, 2026 at 5:41 PM

Users Viewing This Thread

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