Jump to content
The Dark Mod Forums
Sign in to follow this  
Hamlet

I am the invisible man

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

Share this post


Link to post
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...)

Share this post


Link to post
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.

 

Share this post


Link to post
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.

Share this post


Link to post
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...)

Share this post


Link to post
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

Amnesty for Bikerdude!

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...