Jump to content

MD2 model problem


Dexiaz

Recommended Posts

Hi everyone. I tried to add my own md2 model into wad, but it doesn't appear and GZDoombuilder shows only "?" instead of model.

I've googled tutorials about md2/md3 models, but failed. There are only 3d model creating tutorials (Youtube, for example) but I already did a model (really simple silver flat), but I don't know how to code this.

In ZDoomwiki (http://zdoom.org/wiki/MODELDEF#For_models_with_unnamed_frames) I see only info about flags and other things, it doesn't help me.

Here is model: https://yadi.sk/d/_ZYIyVX-nVDGH

Modeldef:

Model D2Door
{ 
   Model 0 "D2Door.md2" 
   Skin 0 "SILVER1.png"
   
frameindex MODL A 0 0
} 
Decorate:
ACTOR D2Door 30250
{
    Radius 32
    Height 16
    Mass 10000
    +FLOAT
    +NOGRAVITY
    +SOLID
    States
    {
    Spawn:
	MODL A -1
	Loop
    }
}
Map format: UDMF (Doom 2)

I'm really bad at 3d model-making, yes. I appreciate any help, even for detailed tutorial about ZDoom 3d modeling.

Share this post


Link to post

You need to define the file path of where the model is in the PK3. Also, I recommend you use MD3s instead, as MD2s have wibbly wobbly vertices.

Share this post


Link to post

Model D2Door
{ 
   Path "models" // <- You need to add this property and set it to a valid path to
                 // your model inside of PK3/Directory resource.
   Model 0 "D2Door.md2" 
   Skin 0 "SILVER1.png"
   
   frameindex MODL A 0 0
}
Also your model's polys are not centered on the model's origin and it's probably incorrectly rotated and scaled.

Share this post


Link to post
MaxED said:

Also your model's polys are not centered on the model's origin and it's probably incorrectly rotated and scaled.


How to center to model origin? Other things are normal, Door normaly rotated and scaled, it's the idea of this door.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...