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

Better strokeWeight default to account for new line perspective feature #221

Closed
TiborUdvari opened this issue Sep 2, 2024 · 0 comments · Fixed by #222
Closed

Better strokeWeight default to account for new line perspective feature #221

TiborUdvari opened this issue Sep 2, 2024 · 0 comments · Fixed by #222
Assignees
Labels
AR bug Something isn't working

Comments

@TiborUdvari
Copy link
Collaborator

The new line perspective feature introduced in p5.js v1.9.2 makes it so all examples, especially in AR look buggy. Since WebXR uses real world measurements, especially in immersive-ar mode this means that lines will have a thickness of 1m. Will add a way to add better defaults.

Here you can see the same sketch with v1.9.1 vs v.1.9.2 which introduces the new linePerspective feature.

This is related to what I thought broke in #219

push();
translate(0, 0, -0.4);
box(0.1, 0.1, 0.1);
pop();
Screenshot 2024-09-02 at 12 46 36 Screenshot 2024-09-02 at 12 45 54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AR bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant