We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've got a programming assignment to simulate how 3d viewing works from scratch. I want to use my own defined function for projection instead of using camera() function. Is it possible? If possible, how to do that?
Thank you.
Dunno... Maybe you should take a look at camera()'s implementation by yourself: https://GitHub.com/processing/processing/blob/master/core/src/processing/opengl/PGraphicsOpenGL.java#L4412
Implicitly you'll always have the processing camera.
But you can calculate your own camera, building your own cameraClass with its position, where it is looking at (and maybe rotation and other stuff)
Look at wikipedia viewport / 3D graphics etc. or google
Answers
Dunno... Maybe you should take a look at camera()'s implementation by yourself:
https://GitHub.com/processing/processing/blob/master/core/src/processing/opengl/PGraphicsOpenGL.java#L4412
Implicitly you'll always have the processing camera.
But you can calculate your own camera, building your own cameraClass with its position, where it is looking at (and maybe rotation and other stuff)
Look at wikipedia viewport / 3D graphics etc. or google