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

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 1 reply
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • 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
×
×
  • Create New...