plotly / plotly/plotly.py

Mesh3d ignores lighting with orthographic projection

未关闭
#4,759 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug P3
主要语言
Python
星标
18.8k
派生
2.8k
平均合并
16 小时 26 分钟
30 天内合并 PR
21

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先在 plotly.py 5.6.0 中使用正交投影和透视投影复现 Mesh3d 示例,然后比较渲染行为并调查疑似的 shader path。完成的标准是:在正交投影下,漫反射光和其他非环境光会影响网格,同时不会导致透视渲染发生回归。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
data-visualization
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。