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

how I am accessing and changing the "interfaces"? #6

Closed
gabotechs opened this issue Jun 6, 2022 · 2 comments
Closed

how I am accessing and changing the "interfaces"? #6

gabotechs opened this issue Jun 6, 2022 · 2 comments

Comments

@gabotechs
Copy link
Owner

Thank you very much for the fast response!
can you please help me understand how I am accessing and changing the "interfaces"? Let's say I want to set the color or gridWidth. I did not understand how I do this...
Thanks.

Originally posted by @LidorCubee3D in #5 (comment)

@gabotechs
Copy link
Owner Author

I do not fully understand what do you mean by "changing the interfaces".

Maybe this example can help you understand how to set the configuration for the viewer component. For the color and the gridWidth you can set the properties like this:

<StlViewer
  modelProps={{
      color: "#008675"
  }}
  floorProps={{
      gridWidth: 300
  }}
/>

@LidorCubee3D
Copy link

LidorCubee3D commented Jun 7, 2022

Thanks. now I get it.
I have another question please. I am trying to upload "big" files (I see it happens also in 8MB files) and the viewer do not showing anything. sometimes it gives an error in the console (when I try to pan the canvas (empty white canvas), and it is always shows "THREE.WebGLRenderer: Context Lost."
no shadows, grid, or any other props. just the file.
I tried on several PC's and iPhone.
image
Is there a limit for file-size? is there a way to fix that?
I assume it is because of the resolution of the STL file. is there a way to decrease the render quality?
In addition, is there a way to support 3MF, OBJ files?
Thanks in advance.

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