Re: Palladium - Dymanic Heightmap
Posted: 01 May 2009, 00:32
Make the map texture, I make the code! (maybe)
--
Updated to 0.5, which contains the code to retexture the lowered ramps. As stated previously, it doesn't work too well, but I feel it's still better than nothing. If you don't like it, you can disable it in Map Option: None (so like in 0.4), Per Ramp (default), Per Square (unbearably too slow). I prod with TraceScreenRay of WorldToScreenCoords each corner to see if the texture is hidden by foreground, use DepthTest(true) if yes and DepthTest(false) if no, which means there's the flickering tearing about only half the time.
Yeah, the setting for it should not be in Map Options but in something that can toggled ingame and for each player, but that'd give me more work, and the toggle would be more difficult to find for the players.
--
Updated to 0.5, which contains the code to retexture the lowered ramps. As stated previously, it doesn't work too well, but I feel it's still better than nothing. If you don't like it, you can disable it in Map Option: None (so like in 0.4), Per Ramp (default), Per Square (unbearably too slow). I prod with TraceScreenRay of WorldToScreenCoords each corner to see if the texture is hidden by foreground, use DepthTest(true) if yes and DepthTest(false) if no, which means there's the flickering tearing about only half the time.
Yeah, the setting for it should not be in Map Options but in something that can toggled ingame and for each player, but that'd give me more work, and the toggle would be more difficult to find for the players.