-
Notifications
You must be signed in to change notification settings - Fork 50
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
Wrong picking index - Any clue ? #34
Comments
I'm having the exact same issue. Unfortunately, I haven't found a solution, but I did some experiments with custom point clouds, maybe the results will help in the future to find a fix. I set up a testing environment using one of the official Potree examples, and loaded my point cloud in there to see the correct results, and be able to compare them with my viewer's results, which uses Potree Core. The point cloud used, in human readable format:
Hovering over each point, I get the following pIndexes: Hovering over the points in the potree example produces the correct result: The
So for example, hovering over the point at What happens instead in my case when hovering over over the point at Since the node geometry's position attribute is correct, it leads me to believe the issue is due something with the material or the shaders it uses. |
Hello,
I have issues with picking (works well in Potree), been trying to fix it by going deep into potree's code and this typescript project.
At the end we're getting a pIndex which corresponds to the bufferGeometry position index of the pcIndex's Node.
To find the final position, getting a vector3 from the bufferGeometry is indeed simple.
While logging the bufferGeometry values lenght and the pIndex; I have found that most of the time the pIndex is too high for the lenght of the bufferGeometry (.fromBufferAttribute will take in this code the 3*pIndex because of size of Vector3).
I tried concerning this issue :
My current hypothesis is that the pick parameters of the pick material are wrong, and the pIndex value we're getting in the iBuffer is wrong aswell.
Wonder if someone had this issue or someone fixed it elsewhere ?
The text was updated successfully, but these errors were encountered: