Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emissive Color not Working for TriangleMesh + MaterialRecord #6834

Open
3 tasks done
FishWoWater opened this issue Jun 18, 2024 · 2 comments
Open
3 tasks done

Emissive Color not Working for TriangleMesh + MaterialRecord #6834

FishWoWater opened this issue Jun 18, 2024 · 2 comments
Labels
bug Not a build issue, this is likely a bug.

Comments

@FishWoWater
Copy link

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

@FishWoWater FishWoWater added the bug Not a build issue, this is likely a bug. label Jun 18, 2024
@FishWoWater FishWoWater changed the title Emissive Color not Working for TriangleMeshModel + MaterialRecord Emissive Color not Working for TriangleMesh + MaterialRecord Jun 18, 2024
@ssheorey
Copy link
Member

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 #6758

@FishWoWater
Copy link
Author

@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
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Not a build issue, this is likely a bug.
Projects
None yet
Development

No branches or pull requests

2 participants