Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Just to let Bob and everyone know this hasn't been forgotten, now that it dropped off the front page. I did #1 and #2 last night. #3 should be a lot simpler than #2, so although I have very limited tdm time the next two days (travelling) I'll be back with results soon.

  • Like 1
Posted

1. Glowing symbols (permanently visible)

...

2. Graffiti (stains on the wall)

...

3. Secret symbols (gleam in only one particular light)

...

I've not done (3) yet because it looks like ID never got round to implementing "spectrum" and neither have we! It's a material keyword, but there's no corresponding setting for lights, so unless we decide we want to fix that, it's unusable.

 

Here's a look at 1 and 2, and I'll post the mtr definitions too. These all use Bob's maps above without any tweaking (except that I re-saved them as tga. I'm not sure whether that was necessary or not). All can have their color adjusted using the "_color" spawnarg.

 

1: The easy one, glowing symbols unaffected by light or shadow. Lots of games use these of course, but it's not very TDM. Perhaps useful for occasional magic stuff:

post-29566-0-43994200-1436307311_thumb.jpg

 

2: Here's a material shader I think we'll like better: a filter blend that stains the wall behind:

post-29566-0-35195200-1436307327_thumb.jpgpost-29566-0-70599900-1436307329_thumb.jpg

 

The shaders:

 

 

// Thief / hobo signs found by Melan, images by Bob Necro, material defs by SteveL
// http://forums.thedarkmod.com/topic/17228-grafitti-please/

textures/darkmod/decals/graffiti/sign_leave_quickly_glowing
{
    description "Thief/hobo warning sign. Make the decal a func_static and use the _color spawnarg to set the colour."
    qer_editorimage textures/darkmod/decals/graffiti/sign_leave_quickly
    
    nonsolid
    DECAL_MACRO

    {
        blend add
        map textures/darkmod/decals/graffiti/sign_leave_quickly
        colored
    }
}


textures/darkmod/decals/graffiti/sign_leave_quickly_dark
{
    description "Thief/hobo warning sign. Make the decal a func_static and use the _color spawnarg to control the colour."
    qer_editorimage textures/darkmod/decals/graffiti/sign_leave_quickly
    
    nonsolid
    DECAL_MACRO
    
    // darken the underlying surface
    {
        blend gl_zero, gl_one_minus_src_color
        map textures/darkmod/decals/graffiti/sign_leave_quickly
        rgb 0.75    // the darkening factor, range 0->1. The bigger this is, the darker the stain
    }
    
    // then add a colored blend
    {
        blend gl_dst_color, gl_one
        map textures/darkmod/decals/graffiti/sign_leave_quickly
        colored
    }
}

 

  • Like 4
Posted (edited)

I've not done (3) yet because it looks like ID never got round to implementing "spectrum" and neither have we! It's a material keyword, but there's no corresponding setting for lights, so unless we decide we want to fix that, it's unusable.

Isn't the keyword usable in light shaders?

 

Edit: I never tried the 'secret sign' idea, but I did try to use "spectrum" with shadow casting. Here's a room I showed on the 'What are you working on?' thread a while back: note the shadows running onto the far wall and down the portrait.

 

 

itb2.jpg

 

 

Since that room has eight overlapping lights, I tried using "spectrum" to keep the lights - and the shadow pattern on the ceiling - while using a single light to illuminate everything else. Here the shadows don't extend onto the wall and portrait:

 

 

spectrum.jpg

 

 

I'm not sure how much it did improve performance; f.p.s. numbers didn't shift much, but the room feels smoother to me. At any rate, "spectrum" does seem to have done something to affect which surfaces receive illumination from which lights.

Edited by VanishedOne
  • Like 1

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Posted

Isn't the keyword usable in light shaders?

Doh! Yes of course, that'll be how it works. I was forgetting lights have a material too. I couldn't find any light property using spectrum, just a material property, and jumped to the wrong conclusion.

 

Time to reattempt #3

Posted (edited)

Isn't the keyword usable in light shaders?

 

Edit: I never tried the 'secret sign' idea, but I did try to use "spectrum" with shadow casting. Here's a room I showed on the 'What are you working on?' thread a while back: note the shadows running onto the far wall and down the portrait.

 

 

itb2.jpg

 

 

Since that room has eight overlapping lights, I tried using "spectrum" to keep the lights - and the shadow pattern on the ceiling - while using a single light to illuminate everything else. Here the shadows don't extend onto the wall and portrait:

 

 

spectrum.jpg

 

 

I'm not sure how much it did improve performance; f.p.s. numbers didn't shift much, but the room feels smoother to me. At any rate, "spectrum" does seem to have done something to affect which surfaces receive illumination from which lights.

Height overlapping lights? Imo that's overkill, that means a single surface and object on that entire scene is being rendered eight times per frame, on idtech 4 the single feature most capable of killing performance is overlapping lights. The old rule in real time lighting based games was to not have more than 4 dynamic lights visible per frame, on deferred renders only true for shadow casting lights, the later not relevant for Darkmod tho because the engine (idtech 4) uses the "old" forward rendering technique.

 

quote from Frictional games developer very relevant for Darkmod

 

Forward Rendering

The engine powering Penumbra (HPL1) uses something called forward rendering. This type of rendering works by rendering the entire scene on an object basis. So when rendering a chair, wall, or any geometry in the world, this was done by drawing it one time for every light that touches it. So an object that is lit by three lights has to be drawn three times, and so on. This technique can be quite limiting when setting up scenes as you need to be very careful when adding lights. It might not actually be clear exactly how much impact on performance a single light will have and levels usually require quite some tweaking to get right. The complexity of a scene can be expressed as:

 

Draw calls = Objects * Lights

 

This means that the number of draw calls can easily get very large and only adding a single light, even if it has little effect on the scene visually, can have very negative effects on performance.

p.s - Darkmod engine does prefer small non overlapping and non shadow casting lights so in a sense it can almost replicate a deferred rendering engine, the later strength being its capability of rendering a large number of small non shadow casting lights, so the popular small points of lights jumping around demos.

Edited by HMart
Posted

That's why I was experimenting with putting the ceiling display on its own spectrum (the theory being that while the light volumes are still touching objects with materials in the normal spectrum, they at least won't be interacting with their materials). Performance on my fairly modest machine seems reasonable.

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

Posted

That's right, lights using a specific spectrum will generate zero draw calls for any surfaces that they hit that don't use that spectrum. (I just checked in interaction.cpp to be sure). They don't have to be filtered off during the drawing phase: those mismatched light/surface combinations simply don't get added to the draw list for the frame in the first place.

  • Like 1
Posted

In the mission Briarwood Cathedral, there are some

magic symbols which only appear when lights are removed.

Do these work any differently?

Posted

I tried #3 -- secret graffiti lit only by moonlight etc -- but it looks like spectrum 2 lights cast shadows only from spectrum 2 surfaces. Which makes the feature much less usable, at least for this purpose :( We would want the glyph to be shadowed by all objects from all lights, so that moving a box to let the moonlight through could reveal a glyph that was invisible by candlelight or the player's lantern.

Posted

The shadows on my library ceiling are actually cast by ordinary shadow2 cones (not by the visible spikes, which are too short for it; that room is complete smoke and mirrors). However, the cones cease to cast the shadows if I convert them to func_static.

 

I haven't managed to replicate the effect in my test map, though. :unsure:

Some things I'm repeatedly thinking about...

 

- louder scream when you're dying

  • 2 years later...
Posted (edited)

Well, i liked the signs/symbols in Thief Deadly Shadows, but, i wouldn't call that graffiti. Not everything modern fits in a Steampunk setting. At least i would find it a bit weird, especially when you put it in the quarters where rather the poor folks live. Graffiti is rather something i'd expect in more modern times, where people have "too much time at hand", which is not the case in this setting, as, especially the more poor folks have to do a lot to make a living. So, for me it would be - religious, occult, or other signs - yeah- Graffiti - weird - no.

 

As TDM already has symbols, and text on the walls in many missions anyway, i'd generally say no to this proposition.

Edited by chakkman
Posted

There has always been graffiti throughout human history, it has been around since Pompeii, if not before that. I definitely think we need more options when it comes to decorating the greasy alleyways of Bridgeport, and these assets are nice. These should definitely be added to the core mod. If you don't want to use them, then don't, but I personally have a ton of ideas on how to use these, and the more options that are available to mappers, the better.

Posted (edited)

Sure, up to the mapper. I think a big point of why the atmosphere is coming across so well is the design of the houses and city though. I haven't really seen much graffiti in a middle age context either. I guess it depends what you'd call "graffiti" though. Let's just say i wouldn't add it, if i was doing a map. I think the houses and city in TDM looks just fine, like in the original Thiefs.

Edited by chakkman
Posted

These hobo symbols would look quite obscure to players, I guess. I don't think having all of them would be useful, making them on "per map" basis should do. Same goes for text, otherwise you might end up with situation a la Dishonored, the same "Blood from the eyes!" decals everywhere.

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

    • datiswous

      I moved from Manjaro Linux (rolling release) to Linux Mint (LTS). One of the reasons was that I found the updates a bit too often and long. But now on Mint I get updates every day, although they're usually small updates.
      · 3 replies
    • JackFarmer

      "Hidden Hands: Vitalic Fever" - new update available including subtitles & compressed briefing video (thanks to @datiswous) and several fixes.
      · 0 replies
    • Wolfmond

      🇬🇧

      2025-04-20
      I'd like to track my level design progress a bit more often now, so I'm using the feed in my profile here.
      I've been working intensively on Springheel's YouTube course over the past few days. I'm currently up to lesson 8. There is so much information that needs to be processed and practiced. 
      I have started to create my own house. As I don't have the imagination to create a good floor plan, I grabbed a floor plan generator from Watabou and experimented with it. I chose a floor plan that I will modify slightly, but at least I now have an initial idea. 
      I used two guards as a measuring tape: The rooms are two guards high. It turned out that I can simply double the number of boxes in DarkRadiant in grid size 8 that are drawn in the floor plan. 
      I practiced the simplest things on the floor plan first. Drawing walls, cutting walls, inserting doors, cutting out frames, creating VisPortals, furnishing rooms.
      I have had my first success in creating a book. Creating a book was easier than I thought. I have a few ideas with books. The level I'm creating will be more or less a chill level, just for me, where I'll try out a few things. I don't have an idea for my own mission yet. I want to start small first.
      For the cellar, I wanted to have a second entrance, which should be on the outside. I'm fascinated by these basement doors from the USA, I think they're called Bilco basement doors. They are very unusual in Germany, but this type of access is sometimes used for deliveries to restaurants etc., where barrels can be rolled or lifted into the cellar. 
      I used two Hatch Doors, but they got completely disoriented after turning. I have since got them reasonably tamed. It's not perfect, but it's acceptable. 
      In the cellar today I experimented with a trap door that leads to a shaft system. The rooms aren't practically finished yet, but I want to continue working on the floor plan for now. I'll be starting on the upper floor very soon.

      __________________________________________________________________________________
      🇩🇪

      2025-04-20

      Ich möchte nun mal öfters ein bisschen meinen Werdegang beim Leveldesign tracken, dazu nutze ich hier den Feed in meinem Profil.
      Ich habe mich in den vergangenen Tagen intensiv mit dem Youtube-Kurs von Springheel beschäftigt. Aktuell bin ich bis zu Lektion 8 gekommen. Das sind so viele Informationen, die erstmal verarbeitet werden wollen und trainiert werden wollen. 

      Ich habe mich daran gemacht, ein eigenes Haus zu erstellen. Da mir die Fantasie fehlt, einen guten Raumplan zu erstellen, habe ich mir einen Grundrissgenerator von Watabou geschnappt und damit experimentiert. Ich habe mich für einen Grundriss entschieden, den ich noch leicht abwandeln werde, aber zumindest habe ich nun eine erste Idee. 

      Als Maßband habe ich zwei Wächter genommen: Die Räume sind zwei Wächter hoch. Es hat sich herausgestellt, dass ich in DarkRadiant in Gittergröße 8 einfach die doppelte Anzahl an Kästchen übernehmen kann, die im Grundriss eingezeichnet sind. 

      Ich habe bei dem Grundriss erstmal die einfachsten Sachen geübt. Wände ziehen, Wände zerschneiden, Türen einsetzen, Zargen herausschneiden, VisPortals erstellen, Räume einrichten.

      Ich habe erste Erfolge mit einem Buch gehabt. Das Erstellen eines Buchs ging leichter als gedacht. Ich habe ein paar Ideen mit Bücher. Das Level, das ich gerade erstelle, wird mehr oder weniger ein Chill-Level, einfach nur für mich, bei dem ich ein paar Sachen ausprobieren werde. Ich habe noch keine Idee für eine eigene Mission. Ich möchte erst einmal klein anfangen.

      Beim Keller wollte ich gerne einen zweiten Zugang haben, der sich außen befinden soll. Mich faszinieren diese Kellertüren aus den USA, Bilco basement doors heißen die, glaube ich. Diese sind in Deutschland sehr unüblich, diese Art von Zugängen gibt es aber manchmal zur Anlieferung bei Restaurants etc., wo Fässer dann in den Keller gerollt oder gehoben werden können. 
      Ich habe zwei Hatch Doors verwendet, die allerdings nach dem Drehen vollkommen aus dem Ruder liefen. Inzwischen habe ich sie einigermaßen gebändigt bekommen. Es ist nicht perfekt, aber annehmbar. 
      Im Keller habe ich heute mit einer Falltür experimentiert, die zu einem Schachtsystem führt. Die Räume sind noch quasi nicht eingerichtet, aber ich möchte erstmal am Grundriss weiterarbeiten. In Kürze fange ich das Obergeschoss an.



      · 2 replies
    • JackFarmer

      On a lighter note, thanks to my cat-like reflexes, my superior puzzle skills and my perfect memory, I was able to beat the remastered version of "Tomb Raider: The Last Revelation" in a new superhuman record time of 23 h : 35 m, worship me!
      · 3 replies
    • Goblin of Akenash

      My mapping discord if anyone is interested, its more of a general modding thing rather than just for TDM 
      https://discord.gg/T4Jt4DdmUb

       
      · 0 replies
×
×
  • Create New...