artifacts drawing un-textured semi-transparent spherical regions

Bug #1174892 reported by Emmanuel on 2013-04-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Medium
Guillaume Chereau

Bug Description

This bug report is about artifacts that appear when drawing un-textured semi-transparent polygons using the stellarium C++ API.

Artifact 1:
Drawing a semi-transparent polygon near the horizon with atmospheric refraction on.
=> The color of the drawn polygon is not uniform, the polygon seems to have areas drawn twice and hence more opaque. These areas have the shape of elongated triangles that touch the horizon.

Artifact 2:
Drawing a large semi-transparent polygon.
=> The color of the drawn polygon is not uniform, the polygon seems to have areas drawn twice and hence more opaque. These areas have the shape of lines or elongated triangles located near the boundary of the polygon.

Artifact 3:
Drawing a large semi-transparent polygon and looking opposite to it.
=> The polygon fills the entire screen when looking in the opposite direction to where it is located and when part of its boundary is visible in the viewport. The part of the polygon that is actually visible is drawn twice, and the complementary of the polygon that should not be visible is drawn once.

These artifacts are illustred in the attached picture and can be obtained with the following code.
Artifact 1:
        renderer->setGlobalColor(0, 1, 0, 0.5);
        StelProjectorP prj = core->getProjection(StelCore::FrameAltAz);
        SphericalCap(Vec3d(1, 0, 0), 0.99).drawFill(renderer, SphericalRegion::DrawParams(prj.data()));
Artifacts 2 and 3:
        renderer->setGlobalColor(0, 1, 0, 0.5);
        StelProjectorP prj = core->getProjection(StelCore::FrameAltAz);
        SphericalCap(Vec3d(1, 0, 0), 0.5).drawFill(renderer, SphericalRegion::DrawParams(prj.data()));

Emmanuel (hacker-emmanuel) wrote :
Changed in stellarium:
importance: Undecided → Medium
Changed in stellarium:
assignee: nobody → Guillaume Chereau (guillaume-chereau)
gzotti (georg-zotti) on 2016-06-22
Changed in stellarium:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments