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

Update shader on demand #1

Open
bsrunnels opened this issue Dec 6, 2023 · 0 comments
Open

Update shader on demand #1

bsrunnels opened this issue Dec 6, 2023 · 0 comments
Assignees

Comments

@bsrunnels
Copy link
Member

The shade and select colormap buttons are not working correctly if the MD_object has already been loaded. Steps to reproduce:

  1. Load an MD file
  2. Open an ovito script and enable property calculation (e.g. centrosymmetry)
  3. Reload file
  4. Update "select shader" to specify "Centrosymmetry"
  5. Click shade
    Result: the MD object is not shaded

Desired behavior would include:

  • The "select shader" box should be a dropdown menu showing all available properties
  • When the "select shader" box is updated, the "data min" and "data max" values should change accordingly
  • When the shade button is clicked, update the texture.

I think this is the result of safeguards put in place to keep shaders from being overwritten. Let's change tactics instead and risk overwriting the existing shaders, and add safeguards later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants