View Issue Details

IDProjectCategoryView StatusLast Update
0006041DarkRadiantRendererpublic13.01.2024 05:32
ReporterDragofer Assigned Togreebo  
PrioritynormalSeveritynormalReproducibilityalways
Status closedResolutionfixed 
Product Version3.0.0 
Target Version3.3.0Fixed in Version3.3.0 
Summary0006041: Renderer doesn't take "translucent" keyword into account
DescriptionToggling the "translucent" global keyword in the Advanced tab > Global Settings seems to have no effect on the preview - it's still fully opaque. I believe this should have the same effect as having 0.5 alpha?
TagsNo tags attached.

Activities

greebo

greebo

04.09.2022 07:18

administrator   ~0015230

Last edited: 04.09.2022 07:18

The "translucent" keyword just sets the material coverage to translucent, which means the engine won't try to auto-detect the coverage.
Being marked as translucent has several implications: any translucent material is implicitly noshadows, it doesn't contribute to the depth fill buffer pass (which is the main cause for the resulting translucent effect) and it affects a couple of other checks and flags in the renderer I didn't fully explore.

DR recognises the translucent keyword and calculates the correct opaque-ness of a material, but during rendering this is not fully respected yet.
greebo

greebo

04.09.2022 12:59

administrator   ~0015232

grafik.png (522,527 bytes)

Related Changesets

DarkRadiant: master 23503c8b

04.09.2022 12:13

greebo


Details Diff
0006041: Translucent materials don't fill the depth buffer Affected Issues
0006041
mod - radiantcore/rendersystem/backend/OpenGLShader.cpp Diff File

DarkRadiant: master e55ea90f

04.09.2022 12:13

greebo


Details Diff
0006041: Add unit test checking coverage of a translucent material with an interaction stage Affected Issues
0006041
mod - test/Materials.cpp Diff File
mod - test/resources/tdm/materials/parsertest.mtr Diff File

DarkRadiant: master 85c0a334

04.09.2022 12:24

greebo


Details Diff
0006041: An explicit "translucent" keyword will determine the material coverage to MC_TRANSLUCENT. Affected Issues
0006041
mod - radiantcore/shaders/ShaderTemplate.cpp Diff File

DarkRadiant: master 7734ee83

04.09.2022 12:30

greebo


Details Diff
0006041: Setting or removing the "translucent" keyword should re-evaluate a material's coverage Affected Issues
0006041
mod - radiantcore/shaders/ShaderTemplate.h Diff File
mod - test/Materials.cpp Diff File

DarkRadiant: master 7092105f

04.09.2022 12:46

greebo


Details Diff
0006041: Setting the "translucent" keyword implies noshadows Affected Issues
0006041
mod - radiantcore/shaders/ShaderTemplate.h Diff File
mod - test/Materials.cpp Diff File

DarkRadiant: master 08b67981

04.09.2022 12:55

greebo


Details Diff
0006041: Lock the noshadows flag when translucent is set Affected Issues
0006041
mod - radiantcore/shaders/ShaderTemplate.h Diff File
mod - test/Materials.cpp Diff File

Issue History

Date Modified Username Field Change
31.07.2022 10:14 Dragofer New Issue
31.07.2022 15:05 greebo Status new => acknowledged
06.08.2022 15:22 greebo Category GUI => Renderer
06.08.2022 15:22 greebo Summary Material Editor: preview doesn't take "translucent" keyword into account => Renderer doesn't take "translucent" keyword into account
04.09.2022 07:13 greebo Status acknowledged => confirmed
04.09.2022 07:18 greebo Note Added: 0015230
04.09.2022 07:18 greebo Note Edited: 0015230
04.09.2022 12:56 greebo Assigned To => greebo
04.09.2022 12:56 greebo Status confirmed => assigned
04.09.2022 12:56 greebo Target Version => 3.3.0
04.09.2022 12:58 greebo Changeset attached => DarkRadiant master 23503c8b
04.09.2022 12:58 greebo Changeset attached => DarkRadiant master e55ea90f
04.09.2022 12:58 greebo Changeset attached => DarkRadiant master 85c0a334
04.09.2022 12:58 greebo Changeset attached => DarkRadiant master 7734ee83
04.09.2022 12:58 greebo Changeset attached => DarkRadiant master 7092105f
04.09.2022 12:58 greebo Changeset attached => DarkRadiant master 08b67981
04.09.2022 12:59 greebo Status assigned => resolved
04.09.2022 12:59 greebo Resolution open => fixed
04.09.2022 12:59 greebo Fixed in Version => 3.3.0
04.09.2022 12:59 greebo Note Added: 0015232
04.09.2022 12:59 greebo File Added: grafik.png
13.01.2024 05:32 greebo Status resolved => closed