Jump to content
The Dark Mod Forums

I am the invisible man


Hamlet

Recommended Posts

I have compiled The Dark Mod on Gentoo Linux (I detailed my experience in another post).
I have a problem: the light gem is always completely dark. Guards will react to noise and to touch, but I could stand in front of them making faces and they will politely ignore my presence.
I have bisected the commits and tracked back the problem to commit #4379.
Reverting that single commit fixes my problem. Not surprisingly, I do not understand that commit. I can try things though.

I should assume this does not happen on Windows. Is this material for a bug report?

  • Like 1
Link to comment
Share on other sites

You will need the new lightgem material for 2.05.

 

Place the zzz_override_lg.pk4 from this zip pack into your darkmod directory:

 

https://dl.dropboxusercontent.com/u/17706561/lg_cull.zip

  • 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

Yes, I did need that. Thank you so much!

 

Care to explain, or point to explanation? I naively thought that the gem was an overlay bitmap, a piece of head up display. Surely nothing made of a "material".

Now I am tempted to think it as a 3D object rendered using quite sophisticate ray tracing and refraction effects.

 

Link to comment
Share on other sites

There is a 3D 8-sided crystal that is rendered in the player's place (invisible to the player). A camera takes a photo of the top & bottom surfaces as they are lit up, averages their brightness, and that sets the lightgem level. The HUD crystal is just an overlap image like you say that renders the appropriate lighting level according to that algorithm.

  • Like 2

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

Code change I made does this:

If we are rendering the lightgem scene:

1) Don't render any surfaces that don't cast shadows EXCEPT the lightgem surface
2) Don't render any lights that the player isn't inside of

To accomplish item 1, I had to create a new material attribute that says "this is a lightgem surface" and
put it into the material definition for the texture the lightgem model uses.

Sadly, while this change did offer a nice little performance boost, it was completely blown out by Duzenko's awesome

"Pixel Pack Buffer" optimization which offered a HUGE performance boost. :D:laugh: Thus relegating my fix to the

category of "a minor improvement".

  • 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

Sadly, while this change did offer a nice little performance boost, it was completely blown out by Duzenko's awesome

"Pixel Pack Buffer" optimization which offered a HUGE performance boost. :D:laugh: Thus relegating my fix to the

category of "a minor improvement".

 

Pixel pack may show more difference on a fully-clocked system, but my laptop CPU throttles all the way to 1.1GHz under full load and your optimization makes a better job in that case. :awesome:

  • Like 2
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

      Finally got my PC back from the shop after my SSD got corrupted a week ago and damaged my motherboard. Scary stuff, but thank goodness it happened right after two months of FM development instead of wiping all my work before I could release it. New SSD, repaired Motherboard and BIOS, and we're ready to start working on my second FM with some added version control in the cloud just to be safe!
      · 0 replies
    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
×
×
  • Create New...