Skip to content

fix: draw polygons that reach behind the camera - #2292

Open
greensopinion wants to merge 1 commit into
pitch-8-raise-pitch-limitfrom
pitch-9-polygons-behind-camera
Open

greensopinion wants to merge 1 commit into
pitch-8-raise-pitch-limitfrom
pitch-9-polygons-behind-camera

Conversation

@greensopinion

Copy link
Copy Markdown
Collaborator

Flutter 3.27 draws nothing of a polygon with a vertex behind the camera,
so on a pitched map such a polygon disappeared. The polygon painter now
clips polygons to the ground in front of the camera before filling them;
the edges that the clip adds are below the map view. Newer Flutter
releases already drew these polygons, and polygons in front of the
camera and unpitched maps don't change.

Depends on #2291.

I wrote this with Claude Code (Claude Opus 5.5). I directed the design,
reviewed the code, and tested it on Flutter 3.27.0 and the current
release.

Flutter 3.27 draws nothing of a polygon with a vertex behind the camera,
so on a pitched map such a polygon disappeared. The polygon painter now
clips polygons to the ground in front of the camera before filling them;
the edges that the clip adds are below the map view. Newer Flutter
releases already drew these polygons, and polygons in front of the
camera and unpitched maps don't change.
@greensopinion
greensopinion added this pull request to stack #2284 October 26, 2026 16:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant