Jump to content
The Dark Mod Forums

Moonbo

Member
  • Posts

    1104
  • Joined

  • Last visited

  • Days Won

    57

Posts posted by Moonbo

  1. Ack, sorry you ran into that. Yeah, the coding for swapping inventories is somewhat complicated, but if you've tracked the bug down to being caused by switching inventory items during the swap then it should be pretty straightforward to finally fix (just disallow item switching during the transition). If anyone wants to fix and test, like any other bugfix they have my blessing!

    • Like 2
  2. Hey Stephan,

    So, as to why I abandoned the octahedron method, it was mainly because Unity's dynamic lights are really expensive from a performance perspective. If you have more than one or two on-screen at any given time performance starts to tank. Most Unity games get around this by mixing up dynamic lighting with baked lightmaps + light probes to light up dynamic objects. But that would mean having to create two separate lighting detection models: a octahedron-esque system for dynamic lights, and a "raycast down to get lighting info from lightmaps" for baked lights (which is what the original Thief games did). And then what about light probes? I would probably include their impact in my dynamic lighting stream, but then I would need to be REAAALY sure that I had placed all my light probes the right way in every instance to make sure that they were properly lighting up my octahedron. So it was a choice of sticking with either just dynamic lights (poor performance) or just baked lighting and not have any light probes, which didn't match with my vision for the game.

    Thankfully, my game is 2D which meant that rolling a custom solution that I could tailor for ease of getting lighting data wasn't overwhelming. What I ended up doing was making all the lights in my game actual meshes (something like this: 

    but I generate them using an optimized clipping algorithm instead of blasting out raycasts. It's then just a matter of checking the uv coordinates of all light meshes at the player's location. This turned out to be a really fast calculation, so worked out well in the end :-).

    Here's some footage of the system in action - the little circle indicator above the player's head shows their visibility, a mix of their movement speed and lights hitting them:

     

     

    Hope this helps and let me know if you have any other questions!

    -Gelo

    • Like 3
  3. Technically what I would ask is: "someone modified several of your textures and shared them on a forum. Is it okay if I use them, or do I need to download and modify those textures from your website myself?" And honestly, given the website owner has responded positively in the past he might just respond positively here.

  4. Oh you're absolutely right that Xorax is technically violating the terms of the license by sharing derivative textures, but these clauses are there to stop people from downloading and redistributing as a competitor (thus the 'competing product' language), which isn't Xorax's intention. It does depend on how prickly the rights holder is, so if there is a concern I would reach out just to make sure. 

  5. Hey Darkness,

    Sorry you're having some issues with the mission! As for the getting-stuck section ... yeah, I tried hard to avoid those but I guess that one got through (there was one in Requiem too).  As for the crash, if you look a few posts up this thread, it looks like someone had a similar crash. It's going to be fixed in the next version of TDM, but the temporary solution is to cycle through your inventory before using the holy symbol. Let me know if that works :-).

    -Gelo

    • Like 2
×
×
  • Create New...