G
G
ggg3fm2020-10-15 12:49:48
C++ / C#
ggg3fm, 2020-10-15 12:49:48

How to work with camera in OpenGL 3x?

Started learning OpenGL and I don't understand this.. I'm going to make a game with a big world. And I want to move the cube. Only that the cube would be fixed in the center of the window. How to do it? Do I understand correctly that I will have to move the entire scene relative to the cube?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Armenian Radio, 2020-10-15
@gbg

In your vertex shader, the whole scene will be multiplied by the projection matrix anyway, so it won't cost you anything in fact.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question