ppetr / tremulous-gpp-mods

My Tremulous GPP mods.
Other
3 stars 2 forks source link

Visualise the creep area #15

Open ppetr opened 12 years ago

ppetr commented 12 years ago

Perhaps, as a fog, spreading around eggs. The longer the eggs there, the denser the fog. It would be harder for humans to kill aliens bases from a long distance (for example by jet-campers). The fog should be visible only to humans, not to aliens, if possible.

ppetr commented 12 years ago

Fog seems problematic in Q3 engine. It has several restrictions, see GtkRadiant Editor Manual:

Fog usage rules:

  • If a room (or rooms) is to be filled completely with a fog volume, it can only be entered through one surface (and still have the fog function correctly).
  • The fog volume can only have one surface visible (from outside the fog).
  • Fog must be made of one brush. It cannot be made of adjacent brushes.
  • Fog brushes must be axial. This means that only square or rectangular brushes may contain fog, and those must have their edges drawn along the axes of the map grid (all 90 degree angles).
  • If a water texture contains a fog parameter, it must be treated as if it were a fog texture when in use.
  • Additional shader passes may be placed on a fog brush, as with other brushes.
  • If a light-emitting fog brush is placed beneath normal brush geometry, the light may cause light artifacting on the solid brush surface. Use with care.
  • Brush models (trains, doors, rotating objects, etc.) within, or partially within fog volumes will have drawing priority problems against the fog. It is best not to place these entities in fog volumes.
  • There are unconfirmed reports of moving entities being made with fog shaders.

So making a box of fog seems impossible, unless the engine is improved.

ghost commented 11 years ago

There is grenade smoke on the RC server, make it like that, but use purple, and variable transparency.

ppetr commented 11 years ago

The grenade on R-CZ is just a shader - a flat plane that is always perpendicular to the viewer. We could create a semi-transparent model that would expand around an alien base. But the problem is that there would be a sharp transition - once inside the "wall", the fog effect will suddenly disappear. And another problem is how to place these "fog" models. They take more processing power, so putting one around each egg would make everybody lag.

ghost commented 11 years ago

How about checking if the player is INSIDE the creep, then applying it to the whole screen if they are. (only for them)