Page 1 of 2
Model trouble
Posted: Thu May 18, 2006 1:17
by BlazingPhoenix
I'm having a bit of trouble with a simple model, I'm trying to get Doomsday's health potion model into GZDoom.
here's the two codes:
modeldef:
Code: Select all
Model Bottle
{
Path "Items"
Model 0 "Botl.md2"
Skin 0 "Botl.pcx"
Scale 1.5 1.5 1.5
Frameindex Botl A 0 -1
}
and the decorate code:
Code: Select all
actor Bottle : Health 2014
{
SpawnID 152
Radius 20
Height 16
Inventory.PickupMessage "Picked up a Health Bottle"
Inventory.Amount 1
Inventory.MaxAmount 200
+COUNTITEM
+INVENTORY.ALWAYSPICKUP
+SOLID
states
{
spawn:
Botl a -1
stop
}
}
Posted: Thu May 18, 2006 15:15
by Nash
Post the wad and the model.
Your post also wasn't specific enough. What exactly is the problem? Model not appearing? GZDoom bombs out with an error? Please be more specific.
Posted: Thu May 18, 2006 21:40
by BlazingPhoenix
The model dosen't appear, it always says 'model Bottle has no frames".
Posted: Thu May 18, 2006 21:46
by Graf Zahl
You have to put a sprite into the WAD because otherwise the engine filters out your object way before the renderer has any chance to draw it.
Posted: Thu May 18, 2006 22:05
by BlazingPhoenix
So I just put any image for the sprite in there and it'll render the model then?
Posted: Thu May 18, 2006 22:24
by Graf Zahl
Exactly! Without the sprite the object isn't even spawned.
Posted: Fri May 19, 2006 21:19
by Syfo-Dyas
I'm not ready for this yet...
...but has anyone put up any idiot's guides for this model business?
Posted: Fri May 19, 2006 21:23
by BlazingPhoenix
Nash did in the documentation thread, it explains everything nicely

.
Posted: Sat May 20, 2006 2:02
by Syfo-Dyas
So could I in theory just take a model and the skins from Jedi Outcast and simply re-work them into GZDOOM?
Posted: Sat May 20, 2006 4:13
by BlazingPhoenix
If they're in .md2 or .md3 format, then yeah.
Posted: Sat May 20, 2006 11:17
by TheDarkArchon
Jedi Outcast uses MD3 since it's based on the Q3A engine.
Posted: Sat May 20, 2006 11:58
by Graf Zahl
I used Jedi Outcast's models to test MD3 so they certainly work.

Posted: Sat May 20, 2006 12:59
by Paul
Jedi Outcast uses md3's for static decorations and an extended md3 format-*.glm for player models.
Posted: Sat May 20, 2006 18:44
by Syfo-Dyas
OMG!
Ok, stop the press. I may have to divert my mission a bit for a while and look into this then. So I won't have to so much as touch a model editor is that case right? I can basically just copy the texture and model, create a script file of some sort to define it's movement, then I'm done?
Also could something as large as the Imperials Shuttles be used from JK?
Sorry if I'm getting off subject, I'm just really elated right now.

I've been working and re-working this project for about 5 years now, this is one of those things I thought Legacy would never bring was support for the damn models, but alas Graf came along and changed everything!
P.S. Could someone post me a small sample Wad with a JK weapon in use?
Posted: Wed May 24, 2006 18:28
by Nash
If the md2 or md3 is already animated, then you can already use it in GZDoom.
The problem is that sometimes the model's orientation and scale may not appear desirable when brought into GZDoom. You can fine-tune the scale in MODELDEF, but not the orientation; you'd still need to have a model editor.
And depending on the model editor you use, it may or may NOT retain the animation data. I use Milkshape3D, and MS3D does not retain animation when I import MD2s or MD3s into it. So that means I'll lose all the animation if I want to adjust the orientation.
It isn't really a problem for me though - I don't rip models from other games -- I make my own.
