In 3d sketches null of coordinares begins here (green number "1"), how to make it begin there (green number "2"), like in 2d sketches? I realize that mouseX and mouseY not working properly because beginning of coordinates is not in the upper left corner.
Answers
@djevazi --
Can you explain your specific problem with an example sketch?
Here is a basic 3D sketch. When you draw a box simple, it appears by default in the upper left hand corner. When you draw a simple line (0,0) refers to the upper left hand corner.
These two examples don't exhibit your problem, so can you explain in more detail what you mean?
I think it's peasycam that centres the origin like that, it's not a default thing.
Alternatively, camera defines a lookat point, maybe he's doing that.
We won't know without some code being posted.
https://forum.processing.org/two/discussion/comment/85129#Comment_85129 here is my previous post with a code, yes, the problem is that peasyCam draw null coordinates not in the upper left cornes, so, I can't understand how to make mouse coordinates work like in 2d.
@djevazi -- Two possible solutions:
@jeremydouglass, here is my code:
@djevazi --
If you do decide to take the "don't use PeasyCam" route, a recent discussion that demonstrates implementing partial rotation of an object without it:
https://forum.processing.org/two/discussion/20235/align-box-with-vector
thanks for help!