Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
DeXiaZ

MD2 model problem

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×