0
\$\begingroup\$

I am trying to setup a viewport using perspective camera. I am trying to render a scene like this scrolls screenshot I read an official blog post about the cameras and found a few tests within gdx test suits. However, I am still kinda confused. I have no idea how to manipulate the test suits nor i have any idea what the code does other than just following the code given in the test.

I have a couple of sub-questions,

  • was the game in the screenshot rendered with perspective camera or just the grids?
  • Is it possible to work with Orthographic and Perspective Camera at the same time? so that i can render different elements with different camera?
  • Is there any detailed and easy to understand guide that explain perspective camera really well? I find libgdx severely lack of documentation regrading these.
\$\endgroup\$
0
\$\begingroup\$

was the game in the screenshot rendered with perspective camera or just the grids?

I think it's 2D. Just because of there're no true 3D objects.

Is it possible to work with Orthographic and Perspective Camera at the same time?

Yes, it is possible. Example and explanation.

Is there any detailed and easy to understand guide that explain perspective camera really well?

Very good tutorial about cameras in libgdx: here

More links about mixing 2D and 3D

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.