Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

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.
share|improve this question

1 Answer 1

up vote 0 down vote accepted

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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