plotly / plotly/plotly.py

Mesh3d ignores lighting with orthographic projection

Offen
#4,759 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

bug P3
Vorherrschende Sprache
Python
Sterne
18.8k
Forks
2.8k
Ø Merge
16 Std. 26 Min.
Gemergte PRs (30 T.)
21

Beschreibung

It seems like lighting of Mesh3d is ignored when orhogonal projection is used, example image:

image

With exactly the same plot, but with perspective projection, lighting is fine:

image

I just wonder if this is a known issue, or is it a bug somewhere?

I tried to play around with camera locations and lighting parameters (diffuse, ambient, etc.).

Only ambient lighting has effect when orthographic projection is enabled (as you can see in the picture above the whole mesh only has a single flat color) - maybe shader issue?

The version of plotly.py that I am using is 5.6.0.

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das Mesh3d-Beispiel mit orthografischer und perspektivischer Projektion in plotly.py 5.6.0 zu reproduzieren, vergleiche anschließend das Rendering-Verhalten und untersuche den vermuteten Shader-Pfad. Die Arbeit ist abgeschlossen, wenn diffuse und andere nicht-ambientale Beleuchtung das Mesh bei orthografischer Projektion beeinflussen, ohne das perspektivische Rendering zu beeinträchtigen.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.