Question about the function that rotates an object in OpenGl.

Asked 2 weeks ago, Updated 2 weeks ago, 1 views

When you open an obj file with a program like Notepad, it consists of a lot of vertexes and faces, but I can't think of a way to rotate the entire obj file that I called it by myself. For example, if you put a square obj on the screen and you rotate it with your mouse, you have to calculate and move a lot of vertexes in real time at the same time as the mouse rotates, but is there a function in opengl that supports it? Or should I add the rotational value to the whole vertex?

opengl

2022-09-20 10:18

1 Answers

Clip the MVP to -1 to -1 NDC qualified information Sends to the window coordinate system and is displayed on the screen.

Try implementing matrix aggregation without using external functions such as glut It will help a lot


2022-09-20 10:18

If you have any answers or tips


© 2022 pinfo. All rights reserved.