In one of the maps I am working on, I made a small bathroom with a mirror on it, that certainly looks neat. It runs fine when I have started the map and have not killed anyone. But I noticed that going back to the bathroom after killing everyone on the map would have a severe impact on performance (19 fps…) I used r_showtris to see if I could see what was happening, and Oh my God. All the corpses on the map were being drawn. Who in the Wolfenstein development team came up with this idea? Well, my question is, could this be fixed with code, or am I forced to remove that nice looking mirror? I can’t code myself, but well, if I knew it could be fixed, I can at least keep it knowing things will run better in the future. It’s not only about that mirror, but actually it is a pretty pointless thing…
I have just seen something horrible...
<font size=“2”>that’s a pretty old bug unfortuanately, I reported this to the powers that be but heard nothing so I guess they don’t think it’s important :sad:
It’a actually got nothing to do with the mirror, you can be in a box room in the middle of Caslte Wolfenstien and still get the problem… Karlof wrote a fix for it in script but it completely removes the bodies from the map
http://64.91.236.18/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=12;t=000093
http://www.map-center.com/cgi-bin/ultimatebb.cgi?ubb=get_topic;f=12;t=000255
there are some piccys posted further down, is that what you ment??
</font>
<font size=“2”>nothing to add your honour… except… maybe quake3bits?? Is that alright??</font size=“2”>
<font size=-1>[ This Message was edited by: kat on 2002-09-09 01:53 ]</font>
<font size=-1>[ This Message was edited by: kat on 2002-09-09 01:58 ]</font>
DiaZ,
mmm, I think you’re problem may be bad vis / hinting ?
Make sure your mirror cannot ‘see’ too much of
the world, by carefully constructing structual
brushes, and hint brushes around your bathroom.
Tutorials can be found here:
http://www.nibsworld.com/rtcw/tutorial_detail_and_hint_brushes_part1.shtml
and here:
http://fps.brainerd.net/hintbrushes.htm
hope this helps
Hewster
<font size=-1>[ This Message was edited by: Hewster on 2002-09-09 01:47 ]</font>
The only thing the mirror can see is the bathroom itself (after seven years mapping I think I’ve learnt how to place hint and vis blocking brushes :] ) and it’s obviously due to this bug. Guess I’ll have to make the corpses disappear, that should be fairly easy to code… but it will take an important element out of my mod’s gameplay
And what I mean by the mirror affecting it… well that’s not it exactly… but a mirror generates a lot of extra polygons, so if we add those from the corpses, things get chuggy…
<font size=-1>[ This Message was edited by: DiaZ on 2002-09-09 01:58 ]</font>
ok,
I see what you mean from those pic’s
on the link kat…
Is this just a SP issue?
Hewster
Do corpses lie around for players to trip over in MP? Medic! G Maybe in Enemy Territory when there are bots? Disolve your dead? Don’t like SOF2 for its disappearing bad guys. You can hack a guy’s face off, pick him up, hide him, but why? Hang around for awhile and they melt off to the same place gibs and wood splinters go, sometimes leaving behind perfectly good body armor??? Code your game so a grenade goes off if too many bodies spoil the fun?
<font size=-1>[ This Message was edited by: Ghast on 2002-09-09 04:50 ]</font>
<font size=-1>[ This Message was edited by: Ghast on 2002-09-09 04:52 ]</font>
Right, this is a issue in SP and MP.
Although in MP test’s I’ve carried out so
far, dead bodys never seem suffer from the
problem, although I may be wrong.
However smoke , wall-marks & dynomite do
(gibs, flames, panzer & air-strikes may also).
In other words every granade explosion is
drawn by the game, as well as the resulting
gibs & decals!
In a busy MP game this could amount to a lot
of extra polys that the game has to draw ?
I will do a more exhaustive tests when I can.
comments ?
Hewster
This has to be fixed. Do they notice they could reduce the system requirements by no less than 30%? I mean, have the bodies be still there, but don’t draw them when they are not on the player’s PVS, that is plain pointless.
…However smoke , wall-marks & dynomite do
(gibs, flames, panzer & air-strikes may also).In other words every granade explosion is
drawn by the game, as well as the resulting
gibs & decals!..
<font size=“2”>I think it relates to all ‘dynamic objects’. As we know most of the effects can be switched off from the menu and the nature of MP means "I see dead people"â„¢ melt and respawn.
I agree that this is a major gaff to have missed as the wierd thing is you do showtris with before killing anybody they don’t show up, it’s only afterwards they do!?
I found the pics I originally posted in that link that goes to the wrong page (moved??) watch the FPS
</font>
You see. That is a 51% performance loss! This has to go! You are right, it doesn’t make sense, the dead and alive bodies are suppossed to be the same entity, how come they won’t be drawn when they are alive???
By the way, I’ve added all those scripts to remove the dead corpses. I get 40 fps on the mirror area now - but gameplay is s bit messed up since my mod is stealth-based, and one is suppossed not to leave corpses where other guards can see them
…By the way, I’ve added all those scripts to remove the dead corpses. I get 40 fps on the mirror area now - but gameplay is s bit messed up since my mod is stealth-based, and one is suppossed not to leave corpses where other guards can see them
<font size=“2”>Oooo, sounds interesting…! any ETA??</font>
On 2002-09-10 11:14, DiaZ wrote:
What do you mean?
<font size=“2”>ETA = Estimated Time of Arrival</font>
Sorry, didn’t know that :razz: estimated time of arrival… Long. I make all the maps and models myself (except the skins, will need help in that department soon :])… and I’ve started just 1 month ago…
<font size=-1>[ This Message was edited by: DiaZ on 2002-09-10 15:45 ]</font>
…I make all the maps and models myself (except the skins, will need help in that department soon :])… and I’ve started just 1 month ago…
<font size=“2”>I know the feeling… been doing the same ting myself and there will be a lot of new voice content so it’s ganna push the file size wayyyy upp there but it’s something I think SP ‘mods’ have to do because of it nature… single play</font>
Yeah, my mod is going to have tons of new contents as well, maps alone are huge, plus tons of new voices, textures, sounds, music, models… I am expecting something near 500 Mb uncompressed But at the end… a finished single player mod is something one can really feel proud of.
I have noticed that moving movers also get drawn from pretty much anywhere on the map. For example, I make a rotating fan out of a script_mover, and it shows up just about everywhere. Movers which are not moving suffer to some extent, but not as much (?)
Blood splats and explosion marks as well.
Did some digging around in the engine today… and… well, any entity which uses a brush model, can touch a bunch of leafs, but if this goes over 16 different leafs, the whole thing kinda falls apart, and the entity becomes visible from just about anywhere in the map, nothing you can do about it, obviously the larger the entity, the worse it gets.
EDIT: as for other stuff, bleugh… SP has some rather interesting modifications to the engine which may cause the bodies to appear even if out of PVS, but i only had a small look over it…
<font size=-1>[ This Message was edited by: djbob on 2002-09-10 22:51 ]</font>
On 2002-09-09 00:37, DiaZ wrote:
I used r_showtris to see if I could see what was happening, and Oh my God. All the corpses on the map were being drawn. Who in the Wolfenstein development team came up with this idea? Well, my question is, could this be fixed with code, or am I forced to remove that nice looking mirror
OK As Kat already said this has nothing to do with mirror. Its bug in q3 engine that draw all killed ai models. There is no way to hinder this, nor by area portal or hints. The only way to fix this is you have to remove (killentity) all laying ai models. By the way; each laying ai models takes about 1000 polys in r_showtris.
In all my 4 aaw maps I removed ai models after they dyes. The way I did it is little tricky and takes lot job but it pays.
In short here is what I have done:
In GTK Radiant I placed following entities as edition to ai_soldier entity:
Target_relay -----Ã target_delay -------Ã target_kill —Ã ai_soldier
Target_relay has following key values:
Targetname: remove_ai_soldier1
Target: delay_ai_soldier1
Target_delay has following key values:
Targetname: delay_ai_soldier1
Target: kill_ai_soldier1
Time: 30
Target_kill has following values:
Targetname: kill_ai_soldier1
Target: ai_soldier1
Ai_soldier has following key values:
Ai_name: ai_soldier1
Target_name: ai_soldier1
In ai script I have added following statement under (DEATH) on particular ai_soldier.
Death
{
alertentity remove_ai_soldier1
}
Now here is what happens when nazi is killed in RTCW game.
Upon ai_soldier1 death script trigger DEATH portion of this particular ai_soldier1 script.
Which is remove_ai_soldier1, which is name for target_delay entity in GTKRadiant
This entity being alerted alerts target_delay entity that delays its action for 30 second. After that time it alerts target_kill entity that immediately removes ai_soldier1 model from the game.
If I would not use target_delay in this process, target_kill will instantly remove ai model after game detects it is kill by the player. And because “falling death� animation is played after ai technically dyes in game, the ai will disappear in thin air, without even falling to the ground.
I hope this explains how I have approached this problem in my SP maps.
Not needing modding for this is Very Cool! Would this be useful for having any model disappear after an enemy is engaged? I want to have a blocked tunnel on another part of the map become unblocked but only after final part of map & final enemies are encountered! G