View Issue Details

IDProjectCategoryView StatusLast Update
0005718The Dark ModFeature proposalpublic22.12.2023 14:35
ReporterBikerdude Assigned To 
PrioritynormalSeveritynormalReproducibilityN/A
Status newResolutionopen 
PlatformPCOSWindowsOS Version10
Product VersionTDM 2.10 
Fixed in VersionTDM 2.11 
Summary0005718: Vertex blended model material unable to support two bumpmaps.
DescriptionAs Greebo added a new function into DR 2.14 for exported .LWO models to retain vertex colours (blend data for vertex blended models) -

- https://bugs.thedarkmod.com/view.php?id=5717

I figured it would be a good idea if support for more than one bump map's could be added for vertex blended models to the core mod. As it is, the mapper can only choose one atm, so blended models will look odd if the mapper isn't careful.
Additional InformationHere is an example blend material I made for NHAT4, no matter what I tried only tecond bump-map was ever shown in-game -

textures/blend/cave_gravel_blend
{
    qer_editorimage textures/darkmod/stone/natural/grey_cracked_001_ed
    surftype15
    description "stone & gravel blend texture"

// Vertex colour stage

    {
        blend diffusemap
        map textures/darkmod/stone/natural/grey_cracked_001
        VertexColor
    }
    {
        blend bumpmap
        map textures/darkmod/stone/natural/grey_cracked_001_local (this bump-map 'is not' recognised by the engine)
        VertexColor
    }

// Inverse Vertex colour stage
    
    {
        blend diffusemap
        map textures/darkmod/nature/dirt/stones_sand01
        InverseVertexColor
        scale 3,3
    }
    {
        blend bumpmap
        map textures/darkmod/nature/dirt/stones_sand01_local (this bump-map 'IS' recognised by the engine)
        InverseVertexColor
        scale 3,3
    }
}
TagsNo tags attached.

Relationships

related to 0005717 closedgreebo DarkRadiant LWO2 Model Exporter doesn't write vertex colours 
related to 0005862 resolvedstgatilov The Dark Mod Backface lighting + bumpmapping broken 

Activities

nbohr1more

nbohr1more

21.08.2021 01:02

developer   ~0014308

Ah, I just noticed:

grey_cracked_001__local

has two underscores...

It should be:

grey_cracked_001_local
Bikerdude

Bikerdude

21.08.2021 09:49

reporter   ~0014309

Corrected typo above, but this doesn't fix/effect the issue. The game will only recognise one bump-map per blended material.
Bikerdude

Bikerdude

19.09.2023 15:35

reporter   ~0016068

All we need to do is have the bumpmap at the beginning of each vertex stage in the material def and only assign the 'vertex' and 'inversevertex' lines to the diffuse/specular stages. And on a side note we can add specular maps to the vertex stages aswell.
after.png (27,226 bytes)   
after.png (27,226 bytes)   
before.jpg (72,144 bytes)   
before.jpg (72,144 bytes)   
image.png (1,284,382 bytes)
Bikerdude

Bikerdude

22.09.2023 10:46

reporter   ~0016078

I have a attached a test map so the team can get users to test this on low end GPU's such as Intel Arc or ATi/Amd to make sure it looks and works ok.
before.png (544,670 bytes)
after-2.png (805,401 bytes)
BlendTest.7z (5,110,030 bytes)
Bikerdude

Bikerdude

22.12.2023 14:35

reporter   ~0016253

See note from 19.09.2023 15:35, 0005718:0016068 or fix. This can be closed, unless the team want to test further.

Issue History

Date Modified Username Field Change
20.08.2021 20:00 Bikerdude New Issue
20.08.2021 20:10 Bikerdude Relationship added related to 0005717
20.08.2021 20:12 Bikerdude Description Updated
21.08.2021 01:02 nbohr1more Note Added: 0014308
21.08.2021 09:46 Bikerdude Additional Information Updated
21.08.2021 09:49 Bikerdude Note Added: 0014309
02.01.2022 12:36 nbohr1more Relationship added related to 0005862
06.08.2022 10:23 Bikerdude Product Version TDM 2.09 => TDM 2.10
19.09.2023 15:35 Bikerdude Note Added: 0016068
19.09.2023 15:35 Bikerdude File Added: after.png
19.09.2023 15:35 Bikerdude File Added: before.jpg
19.09.2023 15:35 Bikerdude File Added: image.png
22.09.2023 10:46 Bikerdude Note Added: 0016078
22.09.2023 10:46 Bikerdude File Added: before.png
22.09.2023 10:46 Bikerdude File Added: after-2.png
22.09.2023 10:46 Bikerdude File Added: BlendTest.7z
22.12.2023 14:35 Bikerdude Fixed in Version => TDM 2.11
22.12.2023 14:35 Bikerdude Note Added: 0016253