[md3 Model] - Model texture (skin) gets cut up ingame

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.
User avatar
FFFFRRRR
Posts: 99
Joined: Sat Nov 04, 2017 3:33 am

[md3 Model] - Model texture (skin) gets cut up ingame

Post by FFFFRRRR »

I have a small issue with an md3 model I made with MisfitModel3D. Its practically a flat square that I wanna use for a bloodspot. Its skin is a png file with translucency, which should visually represent it.
I used modeldef to assign the model to the actor (see attached .pk3-file).

However, ingame, it looks like this:
Spoiler:
The actor:
Spoiler:
The modeldef:
Spoiler:
Can somebody tell me what I am doing wrong here? I haven't worked with 3D Models in GZDoom before, so I don't know a whole lot about how to use these properly.
You do not have the required permissions to view the files attached to this post.
User avatar
Cherno
Posts: 1320
Joined: Tue Dec 06, 2016 11:25 am

Re: [md3 Model] - Model texture (skin) gets cut up ingame

Post by Cherno »

First of all, it seems like the uv mapping is off, because the texture is misaligned right where the two triangles of the quad share an edge.
Is the texture file located in the same directory as the model file?
User avatar
FFFFRRRR
Posts: 99
Joined: Sat Nov 04, 2017 3:33 am

Re: [md3 Model] - Model texture (skin) gets cut up ingame

Post by FFFFRRRR »

Yes, they are both in the same folder inside the pk3.
Diode
Posts: 53
Joined: Mon Feb 29, 2016 2:34 pm

Re: [md3 Model] - Model texture (skin) gets cut up ingame

Post by Diode »

Doom is displaying your models correctly. The problem is that your model's UV coordinates are simply wrong. As in, even MM3D displays it the same way doom does. I'm guessing you never looked at the model with a texture applied anywhere other than in doom?

In MM3D, select the group, press Ctrl+E, click 'reset coordinates' and choose TOP.
User avatar
FFFFRRRR
Posts: 99
Joined: Sat Nov 04, 2017 3:33 am

Re: [md3 Model] - Model texture (skin) gets cut up ingame

Post by FFFFRRRR »

Works now. Masny thanks!

Return to “Assets (and other stuff)”