Inside3D!
     

Any Darkplaces Updates In The Near Future?

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Junrall



Joined: 21 Sep 2009
Posts: 136
Location: North West Oregon, USA

PostPosted: Wed Apr 21, 2010 4:56 am    Post subject: Any Darkplaces Updates In The Near Future? Reply with quote

Was thinking about a reply to a recent post... clipping hulls were mentioned... stating that there were only three clipping hull sizes:

Bullet size - '0 0 0'
Player size - '32 32 56' (mins: '-16 -16 -24', maxs: '16 16 32')
Shambler size - '64 64 88' (mins: '-32 -32 - 24', maxs: '32 32 64')

I thpught, "wow... wonder if any future versions of DP will tackle this?"

This is not a "feature request"... I'm just wondering whats been cookin' under the hood of DP lately... any new updates on the horizon?
_________________
Good God! You shot my leg off!
Back to top
View user's profile Send private message
Sajt



Joined: 16 Oct 2004
Posts: 1026

PostPosted: Wed Apr 21, 2010 5:56 am    Post subject: Reply with quote

That's a limitation of the Quake BSP map format, not the engine. Darkplaces supports HL BSP, which has different hulls, and Quake 3 BSP, which has no hull system at all so you can use any bounding box size.

As for recent Darkplaces activity, you could always watch the Subversion repository.

http://svn.icculus.org/twilight/trunk/darkplaces/?sortby=date
_________________
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.
Back to top
View user's profile Send private message
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Wed Apr 21, 2010 6:15 am    Post subject: Reply with quote

darkplaces does have a cvar added recently that hacks in breaking the hull limitation for q1/hl bsps.
_________________
Back to top
View user's profile Send private message
scar3crow
Inside3D Staff


Joined: 18 Jan 2005
Posts: 837
Location: Las Vegas, NV

PostPosted: Wed Apr 21, 2010 6:16 am    Post subject: Reply with quote

I should've Newsed this but sadly I just noticed earlier today, LordHavoc released a new stable build of DP on April 10th featuring shadowmaps (try it with GL_NEAREST, it looks like a peak into game engine's alternate reality path where no one figured out smoothing or blurring).
_________________
...and all around me was the chaos of battle and the reek of running blood.... and for the first time in my life I knew true happiness.
Back to top
View user's profile Send private message AIM Address
Junrall



Joined: 21 Sep 2009
Posts: 136
Location: North West Oregon, USA

PostPosted: Thu Apr 22, 2010 12:51 am    Post subject: Reply with quote

Sajt wrote:
As for recent Darkplaces activity, you could always watch the Subversion repository.

http://svn.icculus.org/twilight/trunk/darkplaces/?sortby=date

Thank you.

leileilol wrote:
darkplaces does have a cvar added recently that hacks in breaking the hull limitation for q1/hl bsps.

Hacks in? The word "hack", in regards to Quake, always sounds bad... is this cvar not safe to use? And what is the name of this cvar?
_________________
Good God! You shot my leg off!
Back to top
View user's profile Send private message
Error
Inside3D Staff


Joined: 05 Nov 2004
Posts: 558
Location: VA, USA

PostPosted: Thu Apr 22, 2010 12:57 am    Post subject: Reply with quote

from what I hear, it's safe to use, as Nexuiz (the ps3/xbox360 one) now uses it. I forget what it is, but it's in there.

it breaks something... though I don't recall what.
_________________
Inside3D : Knowledge Is Power
Darkplaces Documentation Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Thu Apr 22, 2010 1:31 am    Post subject: Reply with quote

hack: something that works based on assumptions, which may not always be true.

glorious hacks work on the assumption that there are no other assumptions. All other hacks break in some known situation.

its a vauge term, okay?

the internet was built on hacks, with people attempting to provide solutions that work with other people's buggy software. :)

You should generally avoid hacks if there is a more sane way to do it. They're only really a problem when people use them despite there being a better/cleaner/safer way. There's not always a lot of choice though. If the assumptions are reasonable then the hack is reasonable, but make sure you know the assumptions. :)
But then all programming is based upon the assumption that the cpu will execute everything in the correct order, rather than pulling out instructions from your program and executing them at random.

the assumption regarding darkplaces and hulls on hl maps is probably based on the assumption that the hull size is correct. The BSP does not announce the sizes of its hulls, and qbsp could be modified to use any size hull.
Hexen2 has 8 hulls instead of 4. Only 6 are used (instead of 3). But it is still has the same bsp version ident. FTE has a hack to ensure that certain fields are never 0 in order to find out if the structure has 8 slots or 4 slots. Or something like that. It works for hexen2's maps anyway.
If FTE sees a q1 map with 4 hulls in it, it will assume the fourth is 32*32*(-6 to 30), while a hl map will have 32*32*(-18 to 18).
Seriously, don't ask me why the difference. I don't know.
Hexen2 of course uses 32*32*(-12 to 16) for its third hull.

Hardcoded hull sizes are a hack. And expecting the mod to tell the engine what they are is vile at best. I'm almost tempted to use a worldspawn key. But also far too lazy.

To be honest, the only field actually used in collision in the engine is the min_z dimension. The others will generally cancel out nicely.
It does need to know which hull to use too, of course. There are more hacks for that.

In FTE, you can set .hull to the 1-based hull number to always use. Required for hexenc, but works for quake/hl/h2 maps with nq/qw/h2 mods.

Seriously though, just use Q3/Q2 bsps. No fixed-size hulls then.
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
leileilol



Joined: 15 Oct 2004
Posts: 1321

PostPosted: Thu Apr 22, 2010 3:03 am    Post subject: Reply with quote

Error wrote:
from what I hear, it's safe to use, as Nexuiz (the ps3/xbox360 one) now uses it. I forget what it is, but it's in there.

Nexuiz doesn't use Q1BSP (well it did use a form of HLBSP in its early 2002 days, but it's primarily q3bsp and has no need for it)

check the mod_q1bsp cvars for it
_________________
Back to top
View user's profile Send private message
Error
Inside3D Staff


Joined: 05 Nov 2004
Posts: 558
Location: VA, USA

PostPosted: Thu Apr 22, 2010 3:17 am    Post subject: Reply with quote

LordHavoc told me it was one of the benefits of Nexuiz for consoles.

think this is it:

Code:
mod_q1bsp_polygoncollisions is "0" ["0"] disables use of precomputed cliphulls and instead collides with polygons (uses Bounding Interval Hierarchy optimizations)

_________________
Inside3D : Knowledge Is Power
Darkplaces Documentation Wiki
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Urre



Joined: 05 Nov 2004
Posts: 1073
Location: Sweden

PostPosted: Thu Apr 22, 2010 7:15 am    Post subject: Reply with quote

That feature was added ages ago. I recall LordHavoc didn't like it because clip brushes couldn't be used with it.
_________________
Look out for Twigboy
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group