Jump to content
The Dark Mod Forums

Recommended Posts

Posted
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 :)

Posted

Hmm, don't know if this is related to the dev build, but as I take damage, the screen slowly transitions to a green/blue psycodelic hue. Is this intentional?

Posted
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.

Posted
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...)

Posted
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. 

Posted
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.

Posted

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...)

Posted
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.

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.

  • Recent Status Updates

    • Airship-Ballet

      If anyone would like some ambient sounds for any of their work please do hit me up - I've tons of strings both physical and sampled that I love making loops with
      · 1 reply
    • Ansome

      While updating my first FM, I noticed a lot of silly things I did because I was still new to DR. For example, there was a model for a wheel that I wanted the player to be able to turn that had its origin off-center. I didn't know I could just re-export the model inside DR to fix its origin, so instead that wheel triggers a func_mover it's bound to. A silly solution in retrospect, has anyone else made somewhat janky or roundabout solutions to technical challenges in their maps? I'd love to hear about 'em!
      · 5 replies
    • datiswous

      If you use DarkRadiant in Linux while using a dark theme, a large amount of the icons are hard to see, because it's dark-color on dark background (wish DR darkmode was a little less dark). A workaround is switching to a light theme when using DR. I'm using XFCE as DE, so I made this script (mostly copied from this code), which works as a toggle. Then I set it to a keyboard shortcut. The switch works even when DR is already opened.
      current_theme=$(xfconf-query -c xfwm4 -p /general/theme) if [[ $current_theme == 'Adwaita-dark' ]]; then xfconf-query -c xsettings -p /Net/ThemeName -s 'Mint-X-Grey' xfconf-query -c xfwm4 -p /general/theme -s 'Mint-X-Grey' else xfconf-query -c xsettings -p /Net/ThemeName -s 'Adwaita-dark' xfconf-query -c xfwm4 -p /general/theme -s 'Adwaita-dark' fi This only works for the XFCE DE though.
      · 0 replies
    • datiswous

      I just bought/build a new pc, so probably less performance related whining from my part from now on..
      Sorry in advance!
      Here are the specs
      · 4 replies
×
×
  • Create New...