Mesh3d ignores lighting with orthographic projection
Dieses Issue hat noch niemand übernommen.
- 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:
With exactly the same plot, but with perspective projection, lighting is fine:
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
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Ö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