-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Line.vert fix for small units #7206
Line.vert fix for small units #7206
Conversation
🎉 Thanks for opening this pull request! Please check out our contributing guidelines if you haven't already. And be sure to add yourself to the list of contributors on the readme page! |
Hi @TiborUdvari , it's a great work. Thank you for opening the pull request! I just tested the issues you were facing, specifically the offset for small coordinates being too high. Fortunately, it doesn't seem to reopen the initial issue (#6956). Your implementation of I do have one question regarding the "popping" effect you are talking here #7200 (comment). I wasn't able to reproduce it using the code in your PR. Could you share the code where you encountered this effect? Additionally, if it’s still reproducible, does the logic @davepagurek mentioned ( |
I don't think I understood 100% the issues with the popping effects, so I didn't go further on this. What I didn't like about my solution is that it was a mix between two solutions and I didn't understand the whole problem space, so I didn't go further on it. It does apply a quick fix for what we have now though. I had to monkey patch p5.xr with the previous version of the shader as a temporary solution, as it really affects most of the AR examples, as they use mostly real world coords, in meters. Unfortunately didn't have the time to go deeper on this. |
This might not be the cleanest solution, but given the current options (since we haven't found any better/cleaner solution yet) I think your solution works well. As for the flickering or popping effects, I couldn't reproduce them on my end. I also reviewed the reference documentation with your code, and everything looks fine to me. Thanks for the fix! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll approve this from my side, and the maintainers can update or merge it when they have time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your work on this so far! If you or anyone else has any further ideas on a new approach, feel free to make a new issue/PR, and in the mean time hopefully this improves the situation a bit.
Line.vert fix for small units
* Will high precision floats make lines render on top? * Merge pull request #7206 from TiborUdvari/fix/line.vert-v1.10.0 Line.vert fix for small units * Apply no z offset to lines when facing the camera Line.vert fix for small units * Add test case for ortho strokes
Resolves #7200
Resolves #[Add issue number here]
Changes:
Screenshots of the change:
PR Checklist
npm run lint
passes