vjjv
January 28, 2019, 8:09pm
1
Hello! in three.js exist a function calls Projects (onto a camera):
.project ( camera : Camera ) : this
camera — camera to use in the projection.
project: function ( camera ) {
return this.applyMatrix4( camera.matrixWorldInverse ).applyMatrix4( camera.projectionMatrix );
},
Projects the vector with the camera.
anybody know the maths to do something similar in processing?
Just to make sure I’m clear – do you want to know how to do this in Processing(Java), or in p5.js?
vjjv
February 11, 2019, 9:21pm
3
Hi! i want to know how to do this in processing
I’m not seeing Camera.project in the three.js documentation, so I’m not totally clear on what the function does – three.js docs – can you link to the documentation?
Edit – found it: Vector3.project() : three.js docs
and
I think perhaps you should look at the reference
and specifically the Camera section functions and the Matrix functions, such as:
Sets the position of the camera through setting the eye position, the center of the scene, and which axis is facing upward. Moving the eye position and the direction it is pointing (the center of the …
Is your question related to this?
Hi, I’m new to the forum. I’ve appended a jpeg to illustrate my question, sorry for its amateurish appearance. My question: in the given setup, how do I calculate the equation of the image plane from 3 points – pp1, pp2, pp3? I understand how to solve for the 3D plane in real world points that are behind the projected points but not from its projected points.
[quessetup]
See also PMatrix3D.invert:
http://processing.github.io/processing-javadocs/core/processing/core/PMatrix3D.html#invert--
1 Like