-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[p5.js 2.0 Beta Bug Report]: Update examples that use createCamera() to explicitly call setCamera() #7602
Comments
Hey @Forchapeatl |
yes, you work on it. Thank you |
Thanks for finding this @Forchapeatl! I think this might be an intentional change -- previously, I'm going to turn this into a documentation issue (cc @perminder-17 and @GregStanton) to update the examples to include a |
Hi @webermayank should I assign you the issue? Are you still interested in updating the docs? |
@perminder-17 Thank you for considering me Yes i would love to do this task |
hello @webermayank . From the snippet above , the function setup() {
createCanvas(100, 100, WEBGL);
// Create a p5.Camera object.
cam = createCamera();
+ setCamera(cam)
// Place the camera at the top-center.
cam.setPosition(0, -400, 800);
// Point the camera at the origin.
cam.lookAt(0, 0, 0);
describe(
'A white cube on a gray background. The cube goes in and out of view as the camera pans left and right.'
);
} It has to be done in the dev 2.0 branch not the main branch |
@Forchapeatl the error is regarding the is it still under development phase ? because many example have some kind of issue when i run them in sketch.js |
@webermayank The example code is referencing this assets folder here: https://github.com/processing/p5.js/tree/dev-2.0/test/unit/assets Are you running your test code via |
Most appropriate sub-area of p5.js?
p5.js version
No response
Web browser and version
No response
Operating system
No response
Steps to reproduce this
Steps:
Snippet:
The text was updated successfully, but these errors were encountered: