-
Notifications
You must be signed in to change notification settings - Fork 193
Picker example does not work when I change geometry #248
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
Comments
Hi @nickc92! Thanks for your feedback. Would you mind sharing how you specify the Geometry? Does it render correctly but with a broken picker? Are there any errors/warnings in the browser developer console? |
I basically cut and pasted the example of an indexed geometry (a cube with different color vertices) from the Examples.ipynb notebook into the 'Clickable Surface' example in that same notebook. What happens is that the cube renders, but the picker seems to do nothing. I've pasted the code below. Fortunately, I found that the BufferGeometry seemed to work with Picker, and I was able to accomplish what I wanted to. But nonetheless, plain Geometry doesn't seem to work for me. Code:
|
Sorry for the slow response here. Having looked at this a little closer, the error is an incorrect default value for the cubeGeometry.faceVertexUvs = [[]] |
The Picker example uses a
SurfaceGeometry
. I would like to use a plainGeometry
, where I specify a polyhedron via its vertices and faces, but when I modified the example to use a plainGeometry
, it no longer worked.I tried a
DodecahedronGeometry
for the heck of it, and that seemed to work fine. Is there something I'm not getting?The text was updated successfully, but these errors were encountered: