Skip to content

Fixes #39 Scene lighting needs improvement #85

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

Merged
merged 10 commits into from
May 23, 2025

Conversation

Yahiewi
Copy link
Contributor

@Yahiewi Yahiewi commented May 12, 2025

This PR adds a Lights folder to give the user the option to manually control the lighting parameters for the three different light sources (Directional, Ambient and Hemispherical) as well as to visualize them using helpers.
For this, there was a need to modify the base CSS class to accommodate the new folder and add make the control panel scrollable and its close button visible.
This way, the user can adjust the lighting settings to their needs depending on the model being viewed.
I also tweaked the initial settings for the lighting to give the models a more "realistic" feel with better contrast and shadows.
For models that are completely white (like the Panda model), changing the background color of the scene (as lighting will have a much less important effect here) is a good solution that improves the contrast and visibility of the object.

Copy link
Contributor

Binder 👈 Launch a Binder on branch Yahiewi/jupyterlab-urdf/lighting

@IsabelParedes IsabelParedes added bug Something isn't working enhancement New feature or request labels May 12, 2025
@Yahiewi Yahiewi requested a review from IsabelParedes May 15, 2025 16:32
@Yahiewi
Copy link
Contributor Author

Yahiewi commented May 15, 2025

Addressed all the suggestions and fixed a major CSS incompatibility caused by this PR (specifically when I made the controls panel scrollable) and the PR that makes the controls panel resizeable. Couldn't solve this through CSS, so solved it in the _setupResizeHandling function in controls.ts by writing the logic for the cursor there.

Copy link
Member

@IsabelParedes IsabelParedes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice! Looks so much better! The panda robot finally looks good 😆

@IsabelParedes
Copy link
Member

Resolves #39

@IsabelParedes IsabelParedes merged commit 15e8671 into jupyter-robotics:main May 23, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants