2025-07-21 05:16 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003542Spring engineGeneralpublic2013-03-11 23:02
Reportersmoth 
Assigned ToKloot 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version 
Target VersionFixed in Version 
Summary0003542: camera angle breaks sun visual
Description
When in fps camera, at a low angle the sun gets sheered in half at a certain point.

terribly bad for screenshots. Using the default settings for the "dawn" map option in blue print you can see this..

(note version is 93 because 93 is all that is available.)
(note colors in shot have been altered away from the default blueprint)
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0010022

abma (administrator)

still present in 93.0?


why didn't you write the Version you used? also, the Version field is optional...

~0010023

cleanrock (reporter)

Still present in 93.
I attached a screenshot when using glBlendFunc(GL_ONE, GL_ZERO) in UpdateSunFlare().
Looks like some kind of clipping is going on, my guess is near plane clipping.

~0010024

Kloot (developer)

Last edited: 2013-03-10 13:18

View 2 revisions

Does not reproduce for me with either sky mode.

e: correction, it does, but only near the corners of the viewport

~0010026

cleanrock (reporter)

kloot, bug is more visible if sun is near horizon:
--- a/rts/Map/MapInfo.cpp
+++ b/rts/Map/MapInfo.cpp
@@ -187,6 +187,7 @@ void CMapInfo::ReadLight()
                light.sunDir = lightTable.GetFloat3("sunDir", float3(0.0f, 1.0f, 2.0f));
                light.sunDir.w = FLT_MAX;
        }
+ light.sunDir = float3(0.0f, 0.5f, 2.0f); // TODO remove
        light.sunDir.ANormalize();
 
        light.groundAmbientColor = lightTable.GetFloat3("groundAmbientColor", float3(0.5f, 0.5f, 0.5f));
+Notes

-Issue History
Date Modified Username Field Change
2013-03-10 01:02 smoth New Issue
2013-03-10 01:02 smoth File Added: screen00685.jpg
2013-03-10 01:02 smoth File Added: broken sun.jpg
2013-03-10 09:26 abma Note Added: 0010022
2013-03-10 09:27 abma Status new => feedback
2013-03-10 09:27 abma Product Version 93.0 =>
2013-03-10 09:27 abma Description Updated View Revisions
2013-03-10 10:20 cleanrock Note Added: 0010023
2013-03-10 10:23 cleanrock File Added: shot1.jpg
2013-03-10 13:15 Kloot Note Added: 0010024
2013-03-10 13:18 Kloot Note Edited: 0010024 View Revisions
2013-03-10 14:41 cleanrock Note Added: 0010026
2013-03-10 15:45 Kloot Assigned To => Kloot
2013-03-10 15:45 Kloot Status feedback => assigned
2013-03-10 20:50 Kloot Changeset attached => spring develop 4d625ff8
2013-03-10 20:50 Kloot Status assigned => resolved
2013-03-10 20:50 Kloot Resolution open => fixed
2013-03-11 23:02 Kloot Changeset attached => spring release 2d6bb553
+Issue History