Why are the ammo boxes in .bsp?
Moderator: InsideQC Admins
36 posts
• Page 1 of 3 • 1, 2, 3
Why are the ammo boxes in .bsp?
I notice that the ammo boxes and stuff are in .bsp instead of the usual .mdl model format like the other stuff in game. Why is that? Was there some kind of technical limitation that required them to be that way when Quake came out?
It just doesn't make sense to me. :/
It just doesn't make sense to me. :/
-

Nash - Posts: 95
- Joined: Fri Oct 19, 2007 5:56 pm
- Location: Kuala Lumpur, Malaysia
Re: Why are the ammo boxes in .bsp?
I think there are two parts to it. One was that they needed to be boxes, as a box is very low polygon, freeing up polygons for the monsters and other important things.
This leads them to rely on the texture to make them look good. The problem was that the only skinning technique that was possible with the tools and the q1 model format was a two-sided planar map. If you just did that on a model the textures would look stretched and distorted on some or all sides. Bsp models on the other hand are very easy to align textures on, so they worked well for a simple geometric shape like a box.
Now we have better tools for models, so there are ways of making properly unwrapped models in mdl format(with a few compromises). I've made a model called pickup.mdl for quoth2 which combines all the ammo and health pickups into a single alias format model. It's not 100% identical to the bsp models - for example half a pixel on each edge of each face is cut off because of the way quake rounds skin vertices. But it's easily close enough to pass for the originals, and gets lit according to how it's placed.
This leads them to rely on the texture to make them look good. The problem was that the only skinning technique that was possible with the tools and the q1 model format was a two-sided planar map. If you just did that on a model the textures would look stretched and distorted on some or all sides. Bsp models on the other hand are very easy to align textures on, so they worked well for a simple geometric shape like a box.
Now we have better tools for models, so there are ways of making properly unwrapped models in mdl format(with a few compromises). I've made a model called pickup.mdl for quoth2 which combines all the ammo and health pickups into a single alias format model. It's not 100% identical to the bsp models - for example half a pixel on each edge of each face is cut off because of the way quake rounds skin vertices. But it's easily close enough to pass for the originals, and gets lit according to how it's placed.
- Preach
- Posts: 122
- Joined: Thu Nov 25, 2004 7:20 pm
Also the bsp models get semi-perspective-correct texturing in software engines, so they don't look nasty up close or when they're half clipped off the edge of the screen.
Dunno why they *really* did it though... it's pretty crazy how you can use bsp models as models...
Dunno why they *really* did it though... it's pretty crazy how you can use bsp models as models...
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
What collision? They just use bboxes (with weird off-centre mins and maxs)...
Another thing about mdls in software engines is that they are drawn with some pretty sketchy rounding, and something sitting on the floor will often seem to wiggle around when you move your view. So something non-organic looking like a big box, would look a lot more solid as a bsp model..
I think the bsp ammo boxes turned out a lot snappier than they would have looked as mdls, even if they were pre-lit.
Another thing about mdls in software engines is that they are drawn with some pretty sketchy rounding, and something sitting on the floor will often seem to wiggle around when you move your view. So something non-organic looking like a big box, would look a lot more solid as a bsp model..
I think the bsp ammo boxes turned out a lot snappier than they would have looked as mdls, even if they were pre-lit.
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
- Sajt
- Posts: 1215
- Joined: Sat Oct 16, 2004 3:39 am
In some of Carmack's dev diaries he compares the Quake1 bsp models versus the same in Quake2 tech. How previously it was preferred to use the bsp bmodel inside of a map for weirdly sized objects. One of the downsides was the lighting was always off he later explains. In Quake2 it no longer uses bsp hull clipping for bmodels like this, but you can still assign a bbox to those items, instead its only used for things like doors, elevators, etc.
also, they use SOLID_TRIGGER, not SOLID_BBOX Sajt.
There were only a few possible hulls in q1bsp, I assume akward shaped objects like the short but fat medkit or the rocket pickups were best using a bsp for it's unique collision properties rather than the few existing ones made for the player, grenades, shambler, dog etc?
I'm not entirely sure the relevance of it, but this is from his own personal accounts of it.
also, they use SOLID_TRIGGER, not SOLID_BBOX Sajt.
There were only a few possible hulls in q1bsp, I assume akward shaped objects like the short but fat medkit or the rocket pickups were best using a bsp for it's unique collision properties rather than the few existing ones made for the player, grenades, shambler, dog etc?
I'm not entirely sure the relevance of it, but this is from his own personal accounts of it.
- Chris
- Posts: 79
- Joined: Sat Aug 05, 2006 5:31 am
IMHO there is another important factor: Quake was a rushed-thru-the-door game. Surely it was easier to just slap some textures to single polygons and call them "medikits" or "rocket boxes". Remember, Quake's game design and artwork is completely incoherent at best.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC
(LordHavoc)
-

frag.machine - Posts: 2090
- Joined: Sat Nov 25, 2006 1:49 pm
Remember, Quake's game design and artwork is completely incoherent at best.
As a sum of its parts, eh maybe. But if you look at the progression of weapons, monsters, they are solid. The artwork as well is really quite good, just representing different agendas and goals. Never mind that much of the level design is downright brilliance when it comes to flow, player purpose and escalating challenge and creativity. Something most games do not even think about.
Off topic, but yeah.
I always figured the pickups were bsp rather than models because they didn't want to make a small box of shells a single point, a large box of nails the size of a player, and a box of rockets the size of a shambler... Yay limited hulls.
-

scar3crow - InsideQC Staff
- Posts: 1054
- Joined: Tue Jan 18, 2005 8:54 pm
- Location: Alabama
scar3: that's not related, really, since entitiy collisions can be any size already. Because of the FL_ITEM flag they're already much larger for clients attempting to pick them up, afaik pretty much shambler hull size. And like Chris said, they're not even using their bsp size, but rather a qc specified size
I was once a Quake modder
-

Urre - Posts: 1109
- Joined: Fri Nov 05, 2004 2:36 am
- Location: Moon
jim wrote:Maybe this changes the subject a bit, but I've been wondering about what are these hull sizes?
From DEFS.QC
VEC_ORIGIN = '0 0 0'
VEC_HULL_MIN = '-16 -16 -24'
VEC_HULL_MAX = '16 16 32'
VEC_HULL2_MIN = '-32 -32 -24'
VEC_HULL2_MAX = '32 32 64'
In engines and maps that do not support custom hull sizes, these values are the sizes allowed to collide with the world. (i.e. point size, player size, shambler size)
You can set the size via setsize to whatever you want, but unless your engine and map used supports custom hull sizes collisions against the world (walls, etc) will always be bound to these three sizes. Entity to entity collisions however will adhere to whatever your setsize was.
-

Dr. Shadowborg - InsideQC Staff
- Posts: 1110
- Joined: Sat Oct 16, 2004 3:34 pm
Sajt wrote:Another thing about mdls in software engines is that they are drawn with some pretty sketchy rounding, and something sitting on the floor will often seem to wiggle around when you move your view. So something non-organic looking like a big box, would look a lot more solid as a bsp model..
I think the bsp ammo boxes turned out a lot snappier than they would have looked as mdls, even if they were pre-lit.
I think this is the exact reason.
-daemon [ daemonforge.org ]
-

daemon - Posts: 63
- Joined: Wed Nov 07, 2007 11:10 pm
As far as I understand it, that only happens when mdl's animate. Tomaz made a pack which replaced the bsp ammoboxes with mdl equivalents, and they looked generally a lot better thanks to lighting stuff. Don't recall any vertex swimming
I was once a Quake modder
-

Urre - Posts: 1109
- Joined: Fri Nov 05, 2004 2:36 am
- Location: Moon
frag.machine wrote:IMHO there is another important factor: Quake was a rushed-thru-the-door game. Surely it was easier to just slap some textures to single polygons and call them "medikits" or "rocket boxes". Remember, Quake's game design and artwork is completely incoherent at best.
Says you.
- FrikaC
- Site Admin
- Posts: 1026
- Joined: Fri Oct 08, 2004 11:19 pm
36 posts
• Page 1 of 3 • 1, 2, 3
Who is online
Users browsing this forum: No registered users and 1 guest