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

    • 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.
      · 6 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
    • 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
×
×
  • Create New...