[Feature]: Parallel (orthographic) 3D view for terrain and block diagrams

Open
#2,608 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

This is a design proposal, not a scoped edit: start by locating where the map camera is defined and consumed, since the proposal hinges on a map.camera projection setting that map.goToXY, snapshot, the scale bar, PNG/PDF export and map.exportOrbit must all share. Read the existing perspective camera and projection matrix code first, then trace each of those call sites to see how much already routes through one camera object. Done means a parallel option selectable per map view, defaulting to perspective, with the scale bar reporting scale along the picture's horizontal axis and a test block rendering with parallel edges.

Written by the indexing model from the issue text.

Description

The tilted map is always drawn in perspective. Textbook block diagrams are drawn in parallel (orthographic) projection:

  • the block's edges stay parallel;
  • both visible walls keep one scale;
  • a scale bar "along the south edge" holds everywhere on that edge.

Perspective shrinks the far side. On a 70 km block, the back ridges look lower and smaller than the front ones, and no scale bar can be honest.

Choices in this proposal

  • map.camera {"projection": "parallel" | "perspective"}, saved with the map view. map.goToXY's pitch and bearing work as they do now. In parallel mode, pitch is the elevation of the view direction.
  • In parallel mode, snapshot and the scale bar report the scale along the picture's horizontal axis.
  • Exports (PNG, PDF, map.exportOrbit) and layout map frames with pitch use the same camera.
  • Default stays perspective, so nothing changes for existing projects.

Use case
Block diagrams for teaching geomorphology (a depression, an escarpment, a plateau and a range in one block), where the classic figure is a parallel view from a corner of the block.

Dominant language
Rust
Stars
1.9k
Forks
268
Avg merge
11h 1m
Merged PRs (30d)
942

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from opengeos/RustGIS

All issues in opengeos/RustGIS

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.