View Issue Details

IDProjectCategoryView StatusLast Update
0006651The Dark ModTexturespublic12.01.2026 21:14
ReporterBikerdude Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
PlatformPCOSWindowsOS Version10 (22H2)
Product VersionTDM 2.13 
Summary0006651: Project Proposal: change lit/selflit/moonlit window texture method.
DescriptionFollowing on from the thread on the forum - https://forums.thedarkmod.com/index.php?/topic/22970-project-proposal-change-litselflitmoonlit-window-texture-method/

So I thought I had found a new and BETTER way of creating lit/selflit windows for TDM, but discovered fairly quickly that some window textures are already using this method, but that unfortunately the vast majority are not.

The aforementioned method is that we use the stock material def for the frame (so you retain the diffuse & bumpmap details), and then only 'blend add' the lit window panes which are a separate texture. An example stock texture that uses this method already - textures/darkmod/window/wooden_frame01/wooden_frame01_lit.

What we have above is an overlay of JUST the window panes, and its just this texture that is RGB boosted! I don't know why we HAVENT been doing this in the core mod all this time, and to quote @nbohr1more"Boosting the diffuse is a pretty poor way to achieve that effect." And unfortunately a LOT of the core window textures are using this poor method instead of the window pane overlay method.

Ive already spent some time making overlay versions for frost_salamander for his recently released FM. Please see the zip arcdhive below. @Amadeus has already had a look at and used some, in his upcoming wip.

Here is a copy of the work I have done so far -

- https://drive.google.com/file/d/11168eiBj_m-Lu5d-8FLYUgM7J1MC_92h/view?usp=sharing

Amadeus suggested that I list all the window textures that need looking at. I haven't included the ones I have already fixed in the wip archive above -

- textures/darkmod/window/diamond_pattern02/diamond_pattern02_*** - the lit versions from this series have a diffuse that is basically black, but thankfully the unlit version has a diffuse that can be used.
- textures/darkmod/window/ornate/stained_colourful_dirty
- textures/darkmod/window/ornate/stained_colourful_dirty2
- textures/darkmod/window/pointedtop_big01/pointedtop_big01_*** - there are lit versions in this series, but they are not using any diffuse/bump. So these are perfect to use as overlays as they are.
- textures/darkmod/window/diamond_pattern01_***
- textures/darkmod/window/diamond_pattern_andbars01_*** - So these are good candidates to be used as overlays with some tweaking, but we need a much better diffuse/bump.
- textures/darkmod/window/largesquare01_barelylit - poster child of why this thread was created, all the lit versions of this series are just RGB boosting the diffuse.
- textures/darkmod/window/roundtop_diamond_pattern01_***
- textures/darkmod/window/simple_square01_***- this series also has very poor cropping on the edges.
- textures/darkmod/window/smallpanels_4w_dirty01_*** - this series has diffuse that is basically black.
- textures/darkmod/window/smallpanels_4w_dirty02_*** - this series has diffuse that is basically black.
- textures/darkmod/window/smallpanels_4w_dirty03_*** - this series has diffuse that is basically black.
- textures/darkmod/window/smallpanels_industrial_mesh_selflit
- textures/darkmod/window/square_pattern01_*** - this series needs a complete overhaul.
Additional Information@Amadeus, as requested here is the process of modifying a window texture so that ONLY the window/glass pane is lit and not the surrounding frame:

- Step 1, find a window texture that needs modifying, lets choose the first one in the list above "textures/darkmod/window/diamond_pattern02/diamond_pattern02_brightlit"

- Step 2, create an overlay of the diffuse. My method is I use paint.net (or gimp) to create a 100% black version of the window frame (this prevents it from being effected by the 'blend add' argument in the material) -

- In paint.net, add a layer, move that to uppermost/top, then draw black lines/squares/circles/etc wherever the frame of the window is and the glass panes are not. (your effectively isolating the window frame from the glass panes). Then save this file and give it a name based of the original texture, and add '_overlay' at the end of the name. So "diamond_pattern02_brightlit_overlay" in this instance.

- Step 3, in DR make a copy of the material def, adding the overlay blend_add section (see attached). So from -

{
    map textures/darkmod/window/diamond_pattern02_lit
    rgb 1
}

To -

{
    blend add
    map textures/darkmod/window/diamond_pattern02_lit_overlay
    rgb 0.65
}

- step 4, check the new window textures shows up correctly in-game. And what you should see if that only the glass pane looks like its emitting light and crucially NOT the window frame.
TagsNo tags attached.
Attached Files
material.png (22,101 bytes)   
material.png (22,101 bytes)   
list.png (233,086 bytes)   
list.png (233,086 bytes)   
compare.jpg (128,015 bytes)   
compare.jpg (128,015 bytes)   

Activities

Bikerdude

Bikerdude

05.01.2026 21:40

reporter   ~0017107

There is a copy of this on github - https://github.com/thedarkmodcommunity/tdm-windows-v2
Amadeus

Amadeus

12.01.2026 19:30

developer   ~0017115

Deleted incorrect attachment and note at Bikerdude's request
Bikerdude

Bikerdude

12.01.2026 21:14

reporter   ~0017116

To take this workflow a step further, this particular lit window texture dosen't have a diffuse, (a LOT of these self lit window textures don't). And this issue is then the bumpmap dosen't not show in-game. So the simple fix is to add the diffuse line and for the above window, just adding the diffuse from the non-lit window is the way to go.

And because this windows texture is one of the originals, it dosen't have a spec either.

Issue History

Date Modified Username Field Change
05.01.2026 21:40 Bikerdude New Issue
05.01.2026 21:40 Bikerdude File Added: material.png
05.01.2026 21:40 Bikerdude File Added: list.png
05.01.2026 21:40 Bikerdude File Added: compare.jpg
05.01.2026 21:40 Bikerdude Note Added: 0017107
12.01.2026 18:52 Bikerdude OS Version 10 (23H2) => 10 (22H2)
12.01.2026 18:52 Bikerdude Description Updated
12.01.2026 18:52 Bikerdude Additional Information Updated
12.01.2026 19:24 Bikerdude Additional Information Updated
12.01.2026 19:29 Amadeus File Deleted: adding overlay to the material.jpg
12.01.2026 19:30 Amadeus Note Added: 0017115
12.01.2026 21:14 Bikerdude Note Added: 0017116