Cacodemon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Polyobject clipping & LOS blocking finished.
 
Author
All times are GMT. The time now is 05:40. Post New Thread    Post A Reply
Quasar
Moderator


Posts: 2202
Registered: 08-00


Polyobjects now clip mobj_t's, tracers, explosions, and lines of sight. Interestingly, I found that in Hexen they rewrote the entirety of p_sight.c to work on a tracer-based system instead of DOOM's method of using the BSP. They probably did this because of polyobjects, but it is an undesirable change and certainly not one I even thought about following.

At any rate, I figured out how to block line of sight with polyobj lines using the BSP, although it is not perfectly accurate -- the LOS checking will actually use the subsector attachments from the previous frame rather than those where the polyobjects should currently be attached. I do not anticipate that this will be a major or possibly even at all noticeable problem.

Now all that is left is to add code that can actually move polyobjects around, and push or crush mobj_t's that get in the way.

Old Post 02-23-06 19:34 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 2202
Registered: 08-00


Some shots of it in action:

http://doomworld.com/eternity/shots/no_see1.png
The imp can't see me through it.

http://doomworld.com/eternity/shots/no_see2.png
Nor can he see me even when I'm nearly unhidden, showing the accuracy is equal to that for normal lines.

Old Post 02-25-06 08:00 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
SoM
azerty YAY!


Posts: 193
Registered: 03-02


>:D

Just wait until Mordeth gets a hold of this and re-designs all the maps in mor.... ok so maybe we could just hide this feature from him when it's complete?

Old Post 02-25-06 08:07 #
SoM is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1704
Registered: 05-00


Too late! :)

Besides, polyobjects is not a feature that requires a redesign of a level.

Old Post 02-25-06 17:24 #
Mordeth is offline Profile || Blog || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Graf Zahl
Forum Legend


Posts: 4193
Registered: 01-03



Quasar said:
Polyobjects now clip mobj_t's, tracers, explosions, and lines of sight. Interestingly, I found that in Hexen they rewrote the entirety of p_sight.c to work on a tracer-based system instead of DOOM's method of using the BSP. They probably did this because of polyobjects, but it is an undesirable change and certainly not one I even thought about following.



Actually I doubt that. Heretic uses the exact same sight checking code so my guess would be that older Doom versions used it as well and it was later replaced due to some bugs in there which they couldn't find.

I wouldn't be surprised if it was dumped due to this problem (which btw, is also present in the generic trace code.) Unfortunately I can't run Doom.exe anymore on my system so I can't verify it but if someone can get the same problem to show on E1M3 with older versions (1.2 and below) it's a good indicator that it uses the code which is in Raven's source.

The blockmap based code is faster, btw.

Old Post 02-25-06 20:49 #
Graf Zahl is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 2202
Registered: 08-00


Well that's interesting to know actually, especially that DOOM 1.2 apparently had the different visibility system. I would have assumed a BSP-based system would be faster, though I admit I haven't exactly started up a profiler ;)

At any rate, I'll be sticking with the BSP-based code.

Old Post 02-25-06 22:13 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy Report to mod || IP || Edit/Delete || Quote
All times are GMT. The time now is 05:40. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Special Interest > Eternity > Polyobject clipping & LOS blocking finished.

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory