-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Update examples that use createCamera() to explicitly call setCamera() #7607
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
Update examples that use createCamera() to explicitly call setCamera() #7607
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! |
did my PR didnt solve the issue? The extra lines that were useless at the bottom, i tried to revert those changes but it keeps coming when i staged the files, may its the formatter of my ide, tell me if it will make any issue , i'll remove those unnecessay changes. |
I correct the unwanted changes, sorry for inconvenience |
Hi @webermayank! Thanks for working on this. I'm adding it to a list of documentation changes that need to be reviewed. We should be able to review and merge this by the end of the month. In the meantime, in case you'd like to continue helping out, I'll outline some additional steps you can take.
Each link can start out with "[need to check page]." Once all the pages are tagged with either "[no change needed]" or "[change reviewed]", we should be able to merge this PR. If you want to do this work (except for the reviewing), just let us know, and at least one of us (@davepagurek, @perminder-17, @holomorfo, or myself) will do a review, so we can merge this. If you don't have time to work on this by the end of next week, we'll help out. Also, @davepagurek: I could look into this more, but since you're already familiar with the changes, I thought I'd ask you a couple things first.
|
@GregStanton, Okay i'll do it, i'll mention all the links related to the |
Thanks so much @webermayank! |
p5.Framebuffer.createCamera is updated too! For the |
Hi @davepagurek! Did you check the pages that are listed at the top of this PR? @webermayank Did a great job of listing all those possible dependencies, but based on the checkboxes in the list, it looks like they hadn't been updated yet when you merged the PR? I'm trying to get us all on the same page with respect to reference dependencies. The idea is to have one PR that covers both (a) the reference page for the feature that was directly changed, and (b) the dependent reference pages that mention the feature in the description or use the changed feature in the examples. Otherwise, we may end up with reference pages that have outdated descriptions. Those would be very hard to catch when we do overall sense checks (the reviewer would need to be super familiar with all changes that have been made in 2.0), so those likely wouldn't get fixed at all. Those kinds of oversights probably wouldn't be too frequent, but we'd also run the risk of having a lot of broken code examples when we do the sense check. That'd be quite likely, and it'd be much harder to coordinate fixes at that point, since the reviewer typically won't be the person who made the updates (that's by design). (Sorry if you did already do this stuff. I just want to make sure we're all on the same page, and I'm trying to save a bit of time by not rechecking everything myself.) Also, are the docs for |
@GregStanton , i think i mistakenly forgot to allow edit by maintainers check box may be that's why they are still unchecked, |
Hey @webermayank, no worries -- part of why I wanted to merge was so that I could get a deploy of the current state of examples + docs live on https://beta.p5js.org/reference/, which also makes it easier to click through reference links (there are some bugs on the local development server where you also have to add a I noticed a few small areas where one example on a page was missing @GregStanton sorry for moving quickly and not maintaining the 1 PR per section. I've looked through the camera section of the docs in the process though, so we can consider this to be part of the sense check for this subject area. |
@webermayank No problem! You've been a great help. @davepagurek Well, I should probably apologize for moving too slowly before you apologize for moving too quickly 😅 Also, thanks for your help with checking the docs, and for the extra explanation. That helps me to understand some of the challenges. |
#7602 fix
updated the documentation to call
setCamera()
in case it hadn't been called, in the examples which usescreateCamera()
.List of links with potential changes
p5.Camera/camera
p5.Camera/centerX
p5.Camera/centerY
p5.Camera/centerZ
p5.Camera/eyeX
p5.Camera/eyeY
p5.Camera/eyeZ
p5.Camera/frustum
p5.Camera/lookAt
p5.Camera/move
p5.Camera/ortho
p5.Camera/pan
p5.Camera/perspective
p5.Camera/roll
p5.Camera/set
p5.Camera/setPosition
p5.Camera/slerp
p5.Camera/tilt
p5.Camera/upX
p5.Camera/upY
p5.Camera/upZ
p5/camera
p5/createCamera
p5/linePerspective
p5/ortho
p5/p5.Camera
p5/perspective
p5/setCamera