Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9019679
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:50:24+00:00 2026-06-16T04:50:24+00:00

I haven’t found any example which uses perspective camera in LibGDX(OpenGL ES 2.0). How

  • 0

I haven’t found any example which uses perspective camera in LibGDX(OpenGL ES 2.0). How to initiate it and use it in render method? Any help will be appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:50:25+00:00Added an answer on June 16, 2026 at 4:50 am

    To some extent you can use a perspective camera as the ortho camera (to set position, look at, up vector). The one big difference is that the viewport size (what you see on screen) is determined by the distance to the object and the field of view angle. There is plenty of theory around the web, but to get started in libgdx you can follow this example

    EDIT:
    Example provided uses GL 1.x I thought you just didn’t know how to use a perspective camera. You mixed up two different problems.

    1. How to manipulate cameras (varies with camera type, regardless of GL version),
    2. How to apply cameras (varies with GL version, regardless of camera type).

    To complete my answer, once you updated your camera (cam.update) insted of calling camera.apply(Gdx.gl10); you give the matrix to your shader – it will depend on your shader, but the simplest case would be something like this:

    shader.setUniformMatrix("u_modelviewporj_mat", cam.combined);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't found any get equivalent to appendBytes. If I've understood getBytes correctly, that
Haven't found in docs. Does java ResultSet supports query arguments,like jdbcTemplate? For example, something
I haven't made any thorough analysis of which implementation of PHP is the best
I haven't found a straight answer to how to make an animation in a
I haven't found a coherent answer to my quesion here :( My server's ISP
I am trying to understand how to use SyndicationItem to display feed which is
I haven't so far found how I can most easily check if a string
Haven't found what i'm looking for so far. I want to redirect all my
I haven't been able to figure out how to use strings from resource files
Haven't found this in my search on Stackoverflow - I know I've seen a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.