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

[Bug] scaling the model will continuously grow the model, incomplete model display, etc;Mobile system incompatibility #3151

Open
linhuanfeng opened this issue Oct 23, 2024 · 5 comments
Labels
type: bug 🐞 Errors in functionality

Comments

@linhuanfeng
Copy link

Bug description

If the setting of model color is called, there will be problems such as scaling the model will continuously grow the model, incomplete model display, etc.

Steps to reproduce

If the setting of model color is called, there will be problems such as scaling the model will continuously grow the model, incomplete model display, etc

    updateRepProperty(sourceId, fieldName, ...args) {
      // console.log('updateRepProperty', sourceId);
      const methodName = `set${macro.capitalize(fieldName)}`;
      const source = this.$proxyManager.getProxyById(sourceId);
      const myRepresentations = this.$proxyManager
        .getRepresentations()
        .filter((r) => r.getInput() === source);
      for (let i = 0; i < myRepresentations.length; i++) {
        // console.log(myRepresentations[i]);
        if (myRepresentations[i][methodName]) {
          myRepresentations[i][methodName](...args);
        }
      }
      this.$proxyManager.renderAllViews();
    },

image

image

image

image

Detailed Behavior

No response

Expected Behavior

normal

Environment

  • vtk.js version: 28.12.4
  • Browsers: iphone13
  • OS: ios 15.4.1
@linhuanfeng linhuanfeng added the type: bug 🐞 Errors in functionality label Oct 23, 2024
@finetjul
Copy link
Member

I'm afraid I do not understand the problem you stated.
What class is impacted with the bug ? Can you give more context of how you encounter the bug ?

@linhuanfeng
Copy link
Author

I'm afraid I do not understand the problem you stated. What class is impacted with the bug ? Can you give more context of how you encounter the bug ?

https://github.com/Kitware/glance
After modifying the transparency and color on the mobile device (iphone 13,15.4.1), there will be issues with this project. When zooming in, there will be model overlap; Unlimited replication; And the image display is incomplete. That's what the picture above shows.

@linhuanfeng
Copy link
Author

There will be many similar problems that arise
https://github.com/user-attachments/assets/9ed2a676-110f-424f-8f60-af94de783037

@finetjul
Copy link
Member

if you do not modify the color nor the transparency, you do not have any problem with the "scaling" (zooming) ?

@linhuanfeng
Copy link
Author

if you do not modify the color nor the transparency, you do not have any problem with the "scaling" (zooming) ?

yes

37309fd9745730bf2f8df47d098cd823.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐞 Errors in functionality
Projects
None yet
Development

No branches or pull requests

2 participants