View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0006126 | Spring engine | Lua | public | 2019-01-30 14:44 | 2019-01-30 14:50 | ||||||||
Reporter | Doo | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | tweak | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0006126: Moving Sun via Spring.SetSunDirection() casts a black "hole" in the skybox | ||||||||||||
Description | Moving the sun via Spring.SetSunDirection() on every update (following a day/night cycle) causes a black "hole" in the sky box as shown in those images. On the other hand, the "sunflare" doesn't move at all, while that black hole does and seems to follow the path the sunflare should be taking. The shadows from units/terrain properly update with the sundir, so it seems it is only affecting the advsky (sunflare/skybox). | ||||||||||||
Steps To Reproduce | You can reproduce by using this: sunframe = math.random(0,8500) function widget:Update(dt) sunframe = sunframe + dt/4 if sunframe then Spring.SetSunDirection(math.cos(sunframe/15), 1+math.sin(sunframe/16), math.sin(sunframe/15)) end end | ||||||||||||
Tags | No tags attached. | ||||||||||||
Checked infolog.txt for Errors | |||||||||||||
Attached Files |
|
Notes | |
Doo (reporter) 2019-01-30 14:48 |
Looking at https://github.com/spring/spring/blob/bdb71cde67c8d5caf32fdc115f41b017fb1ddace/rts/Rendering/Env/AdvSky.cpp#L49 I see the sundir (and therefor sunflare) only update once on advsky init? My 1st guess was that the sky is drawn and takes account of the new sundir: leaves a "gap" in which the sun should be drawn and that would be the "hole", while the sunflare itself isn't updated, which leaves an unmoved sunflare. |
Doo (reporter) 2019-01-30 14:50 |
I forgot to mention, this is on 104.0.1 - 968, but happened at least since 103.0. |