Celestia
Celestia copied to clipboard
VT Bumpmap on moon causes nighttexture to glitch on planet side and bump to not display
Description: While I was working on an addon for Io, I made a specular, a night and a bump map for it. Upon testing, I noticed the area around Loki wouldn't have the nighttexture render and the bumpmap was not even showing anywhere. Instead, the nighttexture around Loki would show as a discoloration of the surfacetexture itself. UPDATE: Further investigations show bumpmap VTs in general will not display, though the nightmap bug with them is specific to moons.
How it is reproduced: Create a VT bumpmap and place it on a moon. Add nighttexture to same moon
Results Go to planet facing side with nighttexture to see the nighttexture has instead rendered as a discoloration of the surfacetexture rather than the glow of the nighttexture. Go to terminator to see bumpmap is not rendering.
Screenshots
Io with Loki not glowing and discolored surfacetexture
Nighttexture used
Experiment with a texture on Titan to narrow down the cause. Titan also had a bumpmap in my addon set but it was in one piece. I changed the bumpmap on Titan from a one piece texture to a VT and sure enough, the night map glitched out and the bumpmap stopped showing.
Desktop (please complete the following information):
- OS: Windows 10
- Frontend: native Win
- Version: 1.7.0
Additional context
A temporary workaround is to not have the bumpmap be a VT but this prohibits larger bumpmaps from being usable and slows down things around the affected moons. This view of Io lagged the computer considerably because the bumpmap was not a VT.
@Shadow-Dragon-777 please provide test data to reproduce your case.
Modify "Io" "Sol/Jupiter"
{
Texture "Io.ctx"
SpecularTexture "IoSpec."
SpecularColor [ 0.5 0.5 0.5 ]
SpecularPower 10.0
NightTexture "IoNight."
BumpMap "IoBump.*"
BumpHeight 10.05
}
This is the SSC for Io
VirtualTexture { ImageDirectory "IoBump" BaseSplit 0 TileSize 2048 TileType "png" }
This is the CTX for the bumpmap
These are the level0 bumpmap tiles
This is the nighttexture
NOTE: I have noticed another related bug where bumpmap VTs in general do not render.