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 8882373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:33:43+00:00 2026-06-14T20:33:43+00:00

How does Matrix.setLookAtM work? I’ve been searching all over, and can’t find an explanation.

  • 0

How does Matrix.setLookAtM work? I’ve been searching all over, and can’t find an explanation. I understand that the first three coordinates are to define the location of the camera in the world space, and I take it that “center of view” means the x, y, z coordinate I’m looking at in the world space. That being the case, what does the “up vector” mean/do?

If there is a previous question or tutorial that I’ve overlooked, I would be happy to accept that.

  • 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-14T20:33:44+00:00Added an answer on June 14, 2026 at 8:33 pm

    Up vector is what the camera considers “up”, i.e.: If you were looking forward and held your hand up, that is your “up” vector. Just set it to 0, 1, 0. I’m not an Android developer, but I’m guessing it’s similar to gluLookAt().

    What the function is really doing is setting up a view matrix for you. It needs the eye position to establish where the camera will be. After that, it will subtract eye position from center and normalize it to get a forward vector. Then it will cross the forward vector with the up vector to get a right vector. After normalizing all three, it can construct a matrix from those x, y, z vectors giving you a basic model view matrix.

    It just discretizes the math for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Zen Timestamp Plugin does not work for me with Matrix builds on Windows when
When the determinant of transformation matrix is 1, what does it mean? Transformation can
I am working on some software that does a sparse matrix-vector multiply. The matrix
I'm looking for a good Math library in objective-c that does your usual Matrix
I have noticed that matlab does some matrix function really fast for example adding
Does anyone know of a PHP library that handles matrix multiplication, inversion, etc.?
Why does Google restrict the use of the JavaScript Distance Matrix API so that
Anyone does a jquery plugin that support create 3d gallery as http://www.webpsilon.com/wordpress-plugins/matrix-gallery/
In GNU Octave, How does matrix division work? Instead of doing 1./[1;1] I accidentally
I'm currently using a 3x3 rotation matrix to work with 3D points. How does

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.