-
-
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
ortho() rendering blank canvas #6755
Comments
Can I work on this issue?! @wagedu |
@wagedu Bro when I am running the given code I get the spehere with grid.Can you explain what is the issue ? |
I think this may be due to the default near/far values of |
@Vishal2002 Mate, does it appear BEFORE you interact? To me it doesn't UNTIL interaction. |
Also, @davepagurek maybe I should be asking this on the Discord but... do you know of any workaround to make this work in the current 1.9? I tried setting/unsetting a custom camera without luck. |
Here are the new default values: https://github.com/diyaayay/p5.js/blob/dc065a2b99fe8110fc617da5682620cc1f444fed/src/webgl/p5.Camera.js#L908-L915 Maybe try setting these manually in your ortho(-width/2, width/2, -height/2, height/2, 0, max(width, height) + 800) |
@davepagurek , thanks, now it works perfectly. Previously I had tried with the values given in the reference, where the "far" value is 500, instead of max(w,h) + 800 Thanks a lot! |
Good point, I think the |
Most appropriate sub-area of p5.js?
p5.js version
1.9
Web browser and version
all
Operating System
all
Steps to reproduce this
Steps:
Snippet:
The text was updated successfully, but these errors were encountered: