Jump to content
The Dark Mod Forums

Visportals and fog


DeTeEff

Recommended Posts

2 hours ago, nbohr1more said:

Just add the spawnargs “noPortslFog” “1” to any foglight entity.

I can only build Linux binaries so perhaps @AluminumHaste can get you a Windows build if you want to check it out before the next dev build release.

Ahh, installed and noPortslFog didn't work...so I spelled it noPortalFog and we are up and running! :D

Thanks boys :)

Link to comment
Share on other sites

3 minutes ago, AluminumHaste said:

So if fog keeps all visportals in the same visleaf open, doesn't that cause performance issues?

No, I'm always building with bends and vision breaking visuals in mind so the mission will not get bogged down. This "portal function" gives me more control over when and why a portal stays open as I would like it to, when there is sections where there is stuff beyond the portal that pops in, when using the auto closing function.

Link to comment
Share on other sites

45 minutes ago, AluminumHaste said:

So if fog keeps all visportals in the same visleaf open, doesn't that cause performance issues?

The noPortafog light doesn’t inherently force portals open. Instead is just disables the fog optimization which prematurely closes portals at the fog opaque radius. I suppose a more clever thing to do would be culling any non-lit and non-emissive  objects past the fog radius but that’s a pretty tough thing to do especially since shadows can sometimes get made by offscreen objects (etc). Before something like that we would probably want something like Quake’s func_occluder as a generic line-of-sight culling feature.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

23 minutes ago, AluminumHaste said:

Ok that makes sense, so without the fog there the visportal would be open anyways.

Yes, the only difference is that the fog doesn't interfere with the portals in any way. 

Link to comment
Share on other sites

On 4/5/2023 at 4:42 PM, VanishedOne said:

Presumably func_portal control is an option if you can determine a distance at which the portal can be safely closed.

Yes, you can use func_portals to control when to open/close portals through triggers/scripts, but this "fog occlusion" thing takes precedence over that, meaning that the portal shuts close as the fog gets to dense, ie you reach the number in the spawnarg shaderParm3 on the foglight.

Link to comment
Share on other sites

Thus far, we have created spawnargs for noFog, noPortalFog, noFogBoundary, and spectrum variants. I am tempted to move all light attributes to entity args (which is what id Software themselves were considering according to the code comments). Material keywords make sense for surfaces with lots of different material regions and alpha blending but for lights it's easier to control their appearance via DR (etc) so entity flags work better.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

2 hours ago, nbohr1more said:

I am tempted to move all light attributes to entity args (which is what id Software themselves were considering according to the code comments).

I think it is better to decide on case by case basis.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...