Page 1 of 1

Models - Want to use them but no clue how.

Posted: Tue Jan 04, 2011 20:30
by Nero
I'd like to use models, I really would. I've downloaded model packs from Sitters, I have Misfit Model and I'm working on Milkshape. However, for the most part, I don't know what I'm doing. For instance, I have a sink model that would be nice to use because it could take to place of several 3D floors. But I don't know what I'm supposed to do to get it into the game. I know a bit about Decorate and I've looked at the modeldef wiki. I don't know where to get sprite lump and the sprite frame from. Any help would be appreciated. I have a sink.md2, an .obj, and the skin. Where do I get the sprite lump and frame from? Can I just use any random image as basically a placeholder?

Re: Models - Want to use them but no clue how.

Posted: Tue Jan 04, 2011 21:30
by Enjay
The sprite that you use is just the one that you define in your DECORATE for the actor. It really doesn't matter what you use because it will never be seen as the model will be drawn instead. So, typically I just use one of the sprites that already exist in doom2.wad. eg:

DECORATE

Code: Select all

Actor TallBrokenLamp 32009
{
    Radius 16
    Height 96
    +Solid
    +Floorclip
    States
    {
    Spawn:
        POSS A -1
        Stop
    }
}
MODELDEF

Code: Select all

Model TallBrokenLamp
{ 
   Path "Models" 
   Model 0 "lamp3.md2" 
   Skin 0 "lamp3a.png"
   Scale 1.0 1.0 1.0
   
   Frame POSS A 0 "frame01"
} 
See how they both use POSS A? That's all that is needed because, in game, you see the lamp3 model.

BTW, GZdoom only needs the skin and the model (MD2 or MD3) file. It does not need the OBJ

Re: Models - Want to use them but no clue how.

Posted: Wed Jan 05, 2011 4:38
by Nero
Ok, I think that answers my question.