In processing, I loaded a model of a space ship by using the loadShape()
and shape()
command, but the model loaded is upside down.
When I use camera()
command to try to solve the problem, a piece of the background is always get chopped and transformed then projected on the model.
So my question is, how can I turn the ship around, then adjust the perspective of the camera, without affecting the background?
You should have a look at pushMatrix()/popMatrix(). Also checkout the 2D Transformations tutorial. It's using Java syntax and 2D(not Python and 3D), but it does a great job at explaining coordinate systems and using push/pop matrix calls.
Here is the LoadDisplayOBJ Python example modified so it draws the rocket on the right, without affecting the global coordinate system: