View Issue Details

IDProjectCategoryView StatusLast Update
0005894The Dark ModCodingpublic17.02.2022 06:51
ReporterBikerdude Assigned To 
PrioritynormalSeveritynormalReproducibilityhave not tried
Status resolvedResolutionfixed 
PlatformPCOSWindowsOS Version10 (21H1)
Product VersionTDM 2.09 
Target VersionTDM 2.10Fixed in VersionTDM 2.10 
Summary0005894: Cubemap/Envshot dont line up with geometry
DescriptionAs per the old wiki entry - https://wiki.thedarkmod.com/index.php?title=Cube_maps

Cubemaps/Envshot's dont stay aligned with the adjacent geometry as the player moves around.
TagsNo tags attached.

Activities

Epifire

Epifire

16.02.2022 23:30

reporter   ~0014730

This has to do with normal (old cubemaps) not being parallax corrected. I know we have had working instances of working parallax in place but I cannot remember if that was ever fully pushed to core.
nbohr1more

nbohr1more

17.02.2022 00:18

developer   ~0014731

Yes, parallax corrected cubemap shaders were committed in 2.09.

You just need to use the material def design:

 {
        blend gl_dst_alpha, gl_one
        program parallaxCubeReflect
        vertexParm 0 0, 40, 100, 0 // cubemap capture position
        vertexParm 1 -130, -240, 0, 0 // proxy AABB min
        vertexParm 2 130, 320, 200, 0 // proxy AABB max
        fragmentMap 0 cameraCubeMap env/cubetest // reflection cube map
        fragmentMap 1 _flat // normal map
    }

https://forums.thedarkmod.com/index.php?/topic/19147-parallax-corrected-cubemaps/&do=findComment&comment=446392

It takes a little fiddling since the material needs to have the actual capture location of the envshot.
Bikerdude

Bikerdude

17.02.2022 06:51

reporter   ~0014735

Ah thanks nbhor, will have a look this over the weekend,

Issue History

Date Modified Username Field Change
26.01.2022 17:43 Bikerdude New Issue
16.02.2022 23:30 Epifire Note Added: 0014730
17.02.2022 00:18 nbohr1more Note Added: 0014731
17.02.2022 00:19 nbohr1more Status new => resolved
17.02.2022 00:19 nbohr1more Resolution open => fixed
17.02.2022 00:19 nbohr1more Fixed in Version => TDM 2.10
17.02.2022 00:19 nbohr1more Target Version => TDM 2.10
17.02.2022 06:51 Bikerdude Note Added: 0014735