Jump to content
The Dark Mod Forums

Particle hiding does not work for v1.03 anymore


Sotha

Recommended Posts

Just gave v1.03 a spin in my WIP map.

 

I have rain in my map, which is implemented as several rain patches, which have spawnargs:

dist_check_period 0.5

dist_check_xy 1

hide_distance 550

 

These are needed so that only the patches near the player are emitting rain. This worked for v1.02.

 

In v1.03 all the patches are emitting rain all the time, causing performance issues.

 

It looks as if these hide_distance spawnargs do not work anymore. :(

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

Nice, just one hour after the release the first bug that slipped through is discovered. Damn it! Let's hope for a quick 1.04 Update... :)

 

I can only guess, but this is probably related to our last-minute fix of NHAT3 where we rolled back some of the LOD changes.

Link to comment
Share on other sites

Nice, just one hour after the release the first bug that slipped through is discovered. Damn it! Let's hope for a quick 1.04 Update... :)

 

I can only guess, but this is probably related to our last-minute fix of NHAT3 where we rolled back some of the LOD changes.

 

Unfortunate!

 

The good side is that there are not many missions with rain, so no existing maps get performance issues because of this. There is plenty of time to fix this and there is no big harm in the mean time.

Clipper

-The mapper's best friend.

Link to comment
Share on other sites

As far as I know, I posted that greebos last-minute fix is not correct, and also posted a patch that should work. Here it is again:

 

--- game/entity.cpp     (revision 4380)
+++ game/entity.cpp     (working copy)
@@ -797,14 +797,13 @@
{
       m_LOD = NULL;

-       // greebo: Disable this for TDM 1.03
-       return false;
-
       int d = (int) (1000.0f * dict->GetFloat( "dist_check_period", "0" ));

+       float fHideDistance = dict->GetFloat( "hide_distance", "0.0" );
+
       m_DistCheckTimeStamp = 0;
       // a quick check for LOD, to avoid looking at all lod_x_distance spawnargs:
-       if (d == 0)
+       if (d == 0 || fHideDistance < 0.1f)
       {
               // no LOD wanted
               return false;
@@ -821,8 +820,6 @@

       m_LOD->noshadowsLOD = dict->GetBool( "noshadows", "0" ) ? 1 : 0;        // the default value for level 0

-       float fHideDistance = dict->GetFloat( "hide_distance", "0.0" );
-
       idStr temp;
       // distance dependent LOD from this point on:
       m_LOD->OffsetLOD[0] = renderEntity.origin;

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Feel free to commit a fix to the trunk, the darkmod_src repository has already been merged from release.

 

I am away from home, and have only sporadic network (and svn seemed down for a while too) so it will not be before the 27th or possible 28th, I guess.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

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.

  • Recent Status Updates

    • OrbWeaver

      Has anyone had any luck with textures from Polyhaven? Their OpenEXR normal maps seem too washed out and give incorrect shading in the engine.
      · 5 replies
    • datiswous

      I tried to upscale the TDM logo video. First try:

      briefing_video.mp4 You can test it ingame by making a copy of the core tdm_gui.mtr and place it in your-tdm-root/materials/ , then edit line 249 of that file into the location where you placed the new briefing.mp4 file.
      What I did was I extracted all the image files, then used Upscayl to upscale the images using General photo (Real-Esrgan) upscale setting and then turn it back into a video.
      I might have to crop it a bit, the logo looks smaller on screen (or maybe it's actually better this way?). My video editor turned it into a 16:9 video, which I think overal looks better than 1:1 video of original.
      · 1 reply
    • nbohr1more

      Trying to be productive on my down-time before Capcom releases Akuma and my son is constantly on my PC playing Street Fighter...
      · 1 reply
    • OrbWeaver

      Finally got round to publishing a tutorial on baking normal maps in Blender, since most of the ones we have are inaccessible or years out of date.
      · 3 replies
    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
×
×
  • Create New...