News | Forum | People | FAQ | Links | Search | Register | Log in
Modelling Help\Screenshots\Requests
It has always been difficult to get decent models for quake 1. So a thread where people can get advice on making models and post a work-in-progress for critiques is long overdue.

Any requests for models may well get met with silence. Specific requests will likely stand a better chance; "I'd really like a knight but carrying a shield" might be better received than "we need a mdler to join our mod remaking counter-strike for darkplaces".
First | Previous | Next | Last
MDL Format 
The question is simple and yet doesn't have a good answer. The actual binary format for MDL doesn't impose any particularly hard limits on skin size, I think you could go to 1,000,000 or so in each direction (but going that far in both directions would take up 1TB for the skin texture which some might consider excessive).

The restrictions lie instead with the various engines and tools instead. For instance, the original DOS version of Quake had a restriction on height which I dimly recall being 200 pixels, but later engines stopped applying that limit. QME was designed in certain ways to support making engines for DOS Quake, like the way "Cut Away Unused Skin" arranges skins from left to right.

GLQuake needs textures which have power-of-2 dimensions, but this is a soft limit because it resizes skins with other sizes. The resizing looks blurry, so you should try to avoid it occurring. It might also have a maximum dimension somewhere and resize everything down to that size. But if it does then you can bet newer engines will do something different.

So I recommend using only these values for skin dimensions:

8, 16, 32, 64, 128, 256, 512

Nothing in-between, exactly these values. If you also want to be compatible with DOS quake, you can't use the last two as the height, but a huge number of custom models (including many of my own, several from Quoth etc.) don't bother and nobody has ever complained. 
 
What about poly limit?

Skiffys model looks much higher poly than other faithful models. 
Not For Default Quake 
Its 2040 triangles. Runs fine in Quakespasm and Fritzquake :) 
Well 
I wouldn't use it for default quake anyway. I mean, who's running default quake these days? 
Khreathor, Re #931 
I have one for GIMP somewhere, if someone interested...

I'm interested! Sorry I only replied to this post now; was away from my primary computer for a while and out of the loop. 
#996 Revisited 
Might have drunk too much beer, as the width of the skinfile is 480,
not the height.
Always get confused with these latitudes and longitudes.

The height of the waterfall skin is 215, so it could be made larger to 320.
But that's qmle maximum extention. 
MadFox 
Which version of QME are you using? In my copy I can set the skin bounds to 512 by 512... 
Mdl Engine Limits 
max skin height seems to be either 200 or 480 in id's engines: https://github.com/id-Software/Quake/search?q=MAX_LBM_HEIGHT&type=Code

Not sure why it appears to be 480 in winquake but 200 in quakeworld. I guess someone would need to test specific exe's to be sure.

It's still 480 in Fitzquake and Quakespasm.

So I guess if you're going over 200 pixels high, and want the most resolution you can get, try 480 high? 
 
if it's still in fitzquake/quakespasm, that seems like a good idea to change from an error to a warning (load it, but warn that it won't work in standard engines) 
Gatling Gun Done 
http://image.noelshack.com/fichiers/2015/41/1444334148-gatling-gun.png

Is there things that need to be fixed here, or is it good enough? 
 
Wow, I like it very much. Nice touch using SNG color or the barrels. 
Daya 
looks great mate. 
 
-@ Preach: I use the qmle version 3.0 from Rene Visser.
I found that I could raise the standard skinfile from height:320 x width: 480 to a measure of height:380 x width:570.
When I go higher to 460 par example I get the warning maximum skinsize 480 exceeded.
When I try to use your version I can't find an excecutable.
Maybe it is my systym, winxp dunnoh. I use Fitzquake085. 
Daya 
well done, i really like the shadows around the barrel. 
Done 
 
Daya 
did you use a tutorial specifically to get this done? any resources or steps that you followed?

I would love to dabble in quake models at some point. 
FifthElephant 
I used experimentation, assumptions on how things work, basic Blender knowledge, and help on that board, but I can help you on some points:

1.I use Blender, a MDL importer, a MD3 exporter plugin, Preach's MD3 to MDL converter tool and QME to properly save the mesh's texture and check if the actual model is Quake-compatible and see if the initial result in Blender is very close in here.

2.For scale references, import quake models from the actual pak files.

3.Do low-poly meshes. Import more quake models if you want references or look for low-poly tutorials.

4.Mark Seems properly depending on the mesh's elements, so texturing is comfortable. You can then organize them better by splitting the image in two and manipulating the UVs here. Don't forget to snap them to pixels.

5.Do texturing in Photoshop or Gimp. I used photoshop, I always start with a 216*216 resolution, and used various Blending options while taking colors from the quake palette, and noise filter to make things more grainy. I go back and forth between Photoshop and Blender to see if the texture's elements are placed right (Use "Reload Image" option in the UV editor). When it's done, I scale down back to 200*200, darken the texture to fit into quake's lighting if necessary, and apply the Quake texture on it. Final exture must be a pcx file with the quake palette applied on.

6.Apply the texture as a Material. Preach made a post about this earlier.

7.MD3 export, MDL convert, QME check/texture save.


For animations, you have to use Shape Keys. It works like this:
https://www.youtube.com/watch?v=ecAHLfp9Nw8

To apply them as actual frames, you have to use the Dope Sheet editor type, where you apply the percentages of the keyframes and register them as frames. It works like the TimeLine, so frames are made consecutivally.

Hope that helped. 
Daya 
ah so you use blender?

I dunno what it is about blender, find it a bit difficult to work with. 
 
It's just the one I have the most experience with. I'm sure using 3DMax is good too. 
~ Cast "Summon Preach" ~ 
Ok so for * reasons * that are too long-winded and boring to explain I am writing my own .mdl utility.

Anyway, there are a couple of minor things about the format that I'd like clarifying:

using this page as reference: http://www.gamers.org/dEngine/quake/spec/quake-spec34/qkspec_5.htm#CMDLF

In the file header:

scalar_t radius
----------------------
Should this be the radius of a sphere that bounds the entire model over all frames? Or something a bit more fuzzy like the average bounding radius of each frame? What does the engine do with this?

scalar_t size
--------------------
Average size of the triangles over all frames apparently?? Trivial to calculate, but a peek inside some .mdl files suggests not everyone bothers with this! Naughty.

Of the ones that do bother with it, their value often differs subtly to the one I get when I recalculate it (assuming it's the average over all triangles over all frames) and I'm sure my code is perfectly pukka.

What does the engine do with this? Is it just some obtuse software quake relic? 
 
From what I remember, Carmack's software renderer would just paint vertices if a model got too far away from the camera ... so know how large the triangles were, on average, was probably tied to that.

I imagine nobody sets it because it's sort of a non-useful optimization these days. 
 
From what I remember, Carmack's software renderer would just paint vertices if a model got too far away from the camera ... so know how large the triangles were, on average, was probably tied to that.

Fantastic prompt reply cheers! And yes that rings a bell now.

Anyone know about "radius" ? 
 
radius appears to be parsed but never used by the original engines: https://github.com/id-Software/Quake/search?q=boundingradius

I imagine it was put in to reduce loading time in case the model radius was needed, but they didn't end up using it and didn't bother removing it from the format. 
Ericw 
Ah nice one! So another useless value, like eyeposition. 
Eyeposition 
If you still use QME as your model viewer (which I still do) then the eyeposition determines where the ground plane for the model is placed. Useless in-game but sort-of handy outside it.

Another useful reference for the format is:

http://tfc.duke.free.fr/coding/mdl-specs-en.html 
First | Previous | Next | Last
You must be logged in to post in this thread.
Website copyright © 2002-2024 John Fitzgibbons. All posts are copyright their respective authors.