isl-org / Open3D

Open3D: A Modern Library for 3D Data Processing
http://www.open3d.org
Other
10.82k stars 2.24k forks source link

Emissive Color not Working for TriangleMesh + MaterialRecord #6834

Open FishWoWater opened 2 weeks ago

FishWoWater commented 2 weeks ago

Checklist

Describe the issue

I am working with O3DVisualiser, when I set the base color of the material, it works normally. But the emissive color not working.

base color set to red

image

emissive color set to red

image

Steps to reproduce the bug

import open3d as o3d
from open3d.visualization import gui

app = gui.Application.instance
app.initialize()

viser = o3d.visualization.O3DVisualizer()
app.add_window(viser)

mesh = o3d.geometry.TriangleMesh.create_box()
mat = o3d.visualization.rendering.MaterialRecord()
# works
mat.base_color = [1.0, 0.0, 0.0, 1.0]
# not working
mat.emissive_color = [1.0, 0.0, 0.0, 1.0]

viser.add_geometry('__model__', mesh, mat)
gui.Application.instance.run()

Error message

No response

Expected behavior

When I set the emissive color of the cube to red, it should emit red light and display red color in the rendering, just similar to the behavior of the base_color.

Open3D, Python and System information

- Operating system: Windows 11 64-bit
- Python version: Python 3.10
- Open3D version: 0.18.0
- System architecture: x86_64
- Is this a remote workstation?: no
- How did you install Open3D?: pip

Additional information

No response

ssheorey commented 2 weeks ago

Please try with the latest development Python wheel from here: http://www.open3d.org/docs/latest/getting_started.html#development-version-pip and let us know if you still have this issue.

This was added in PR https://github.com/isl-org/Open3D/pull/6758

FishWoWater commented 2 weeks ago

@ssheorey Thanks, but the development wheel url seems 404: https://[storage.googleapis.com/open3d-releases/python-wheels/open3d-0.18.0+5c982c7-cp310-cp310-win_amd64.whl](https://storage.googleapis.com/open3d-releases/python-wheels/open3d-0.18.0+5c982c7-cp310-cp310-win_amd64.whl) image