Jump to content
The Dark Mod Forums

Weird compass in SVN


grayman

Recommended Posts

I haven't updated from SVN (assets/source) in a while, and I recall some mention of this problem in some thread, but I can't find the thread, and I can't find a bug report for the problem.

 

Just noticed this in my WIP.

 

attachicon.gifcompass.jpg

 

'nuff said.

I can't repeat that compass background bug. Please attach your .cfg and if easy a test map or a map name where this plays up.

I can see however a compass offset on the screen with r_fboResolution < 0.

Link to comment
Share on other sites

I started "A New Job" and the problem was there.

 

Since I'm working on the keyhole addition, I'm building my own binaries, so ...

 

I deleted my binaries.

 

I updated to the current SVN binaries and assets.

 

I started "A New Job" again and the problem was gone.

 

I then updated to the latest source and rebuilt the binaries w/ my keyhole changes.

 

The problem returned.

 

So now I suspect something I'm doing is causing the problem, though I'm not working anywhere in the area of icon presentation or the painting of the compass.

 

I'll post a bugtracker for myself and get back to it when I can.

 

Btw, my r_fboResolution is "1" throughout all this.

 

Thanks.

Link to comment
Share on other sites

I started "A New Job" and the problem was there.

 

Since I'm working on the keyhole addition, I'm building my own binaries, so ...

 

I deleted my binaries.

 

I updated to the current SVN binaries and assets.

 

I started "A New Job" again and the problem was gone.

 

I then updated to the latest source and rebuilt the binaries w/ my keyhole changes.

 

The problem returned.

 

So now I suspect something I'm doing is causing the problem, though I'm not working anywhere in the area of icon presentation or the painting of the compass.

 

 

I'll post a bugtracker for myself and get back to it when I can.

 

Btw, my r_fboResolution is "1" throughout all this.

 

Thanks.

I can't see the weird background there but the compass draws half-shadowed. I suppose that's not good?

Never mind, it's my local changes.

post-3508-0-44392100-1538481694_thumb.jpg

Link to comment
Share on other sites

  • 1 month later...

Copied from the tracker:

 

I have seen this too.

 

I believe the problem lies in the fact that the compass is rendered in a

GUI where there is broken stub code for the lighting since the

changes described in 0004569.

 

In older engine builds, this simply broke the lighting but now all rendering is

predicated on having the correct FBO attributes and the broken stub code is not

generating the source data for the FBO's.

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

Tested. Got the same result in 32- and 64-bit. The initial problem is fixed, but when looking straight down, there's a circular shadow on the compass.

 

post-3633-0-14224300-1543538078_thumb.jpg

 

This is with Soft Shadows on and set to Low.

 

If I turn Soft Shadows off, the circle goes away.

 

 

Link to comment
Share on other sites

Another issue:

 

Single pass shadow maps sometimes make the compass render black.

 

r_shadows 2

r_shadowMapSinglepass 1

 

Quickest replication:

 

1) Install mission Closemouthed Shadows

2) After the mission starts open the console and type:

 

spawn atdm:playertools_compass

 

3) Cycle Inventory until the Compass appears

 

With the default r_shadowMapSinglepass enabled, the compass will be black

but moving around will sometimes illuminate it.

 

Disabling r_shadowMapSinglepass causes it to remain visible with no artifacts

including the issue reported above.

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

Tested. Got the same result in 32- and 64-bit. The initial problem is fixed, but when looking straight down, there's a circular shadow on the compass.

 

attachicon.gifcompass.jpg

 

This is with Soft Shadows on and set to Low.

 

If I turn Soft Shadows off, the circle goes away.

 

 

Umm...

The trivial fix is to add a noshadows flag to the compass light (which is also healthy in the performance aspect).

Committed to svn. Please advise if I went in the wrong direction.

Link to comment
Share on other sites

Another issue:

 

Single pass shadow maps sometimes make the compass render black.

 

r_shadows 2

r_shadowMapSinglepass 1

 

Quickest replication:

 

1) Install mission Closemouthed Shadows

2) After the mission starts open the console and type:

 

spawn atdm:playertools_compass

 

3) Cycle Inventory until the Compass appears

 

With the default r_shadowMapSinglepass enabled, the compass will be black

but moving around will sometimes illuminate it.

 

Disabling r_shadowMapSinglepass causes it to remain visible with no artifacts

including the issue reported above.

Sorry, can't repeat

 

post-3508-0-51729300-1543595146_thumb.jpg

Link to comment
Share on other sites

Still happening for me.

Also it seems that screenshot caused the shadow to toggle off :(

 

post-3763-0-95016900-1543599600_thumb.jpg

 

On the bright side, Stencil Shadow mode is fixed. :)

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

r_softShadowsRadius -0.65

 

r_softShadowsQuality 24

I'm afraid we should pause on the single pass shadow maps for now

The GS appears to be too slow for the task.

Our current code does it on the CPU only when interaction is created/changes. It's slow with dynamic interactions, but there are not too many of them.

I hoped the GS could do it in real time but alas it's about 40% slower than using the pre-computed index subsets

Link to comment
Share on other sites

Still happening for me.

 

Also it seems that screenshot caused the shadow to toggle off :(

 

attachicon.gifclosemouthed_shadows_2018-11-30_12.37.58.jpg

 

On the bright side, Stencil Shadow mode is fixed. :)

Try now

 

I don't know why it was only the single pass broken but there was a bigger problem of duplicate/unnecessary views generated by the frontend

  • Like 1
Link to comment
Share on other sites

Still not quite cured...

 

Same Closemouthed Shadows replication except the compass renders correctly until

you enter the room with the fireplace where the compass turns black.

  • Like 1

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

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

    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
    • The Black Arrow

      Hope everyone has the blessing of undying motivation for "The Dark Mod 15th Anniversary Contest". Can't wait to see the many magnificent missions you all may have planned. Good luck, with an Ace!
      · 0 replies
×
×
  • Create New...