View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0005894 | The Dark Mod | Coding | public | 26.01.2022 17:43 | 17.02.2022 06:51 |
Reporter | Bikerdude | Assigned To | |||
Priority | normal | Severity | normal | Reproducibility | have not tried |
Status | resolved | Resolution | fixed | ||
Platform | PC | OS | Windows | OS Version | 10 (21H1) |
Product Version | TDM 2.09 | ||||
Target Version | TDM 2.10 | Fixed in Version | TDM 2.10 | ||
Summary | 0005894: Cubemap/Envshot dont line up with geometry | ||||
Description | As 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. | ||||
Tags | No tags attached. | ||||
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. | |
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. |
|
Ah thanks nbhor, will have a look this over the weekend, | |
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 |