Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
anekix3916y@Codex404 the thing is i have spent a whole day understanding 3d transforms in opengl & the coordinate system but something is not clicking in mind.
i understood the use of model matrix ,i.e to convert a vector in local space to the world space.
but why on earth i need a view matrix? as i understand it its for converting the world space to camera space? but why everywhere i see peopole are using an identity matrix for a view matrix?
for ex here https://solarianprogrammer.com/2013... -
Totally nontechnical explanation:
Imagine a forest scene with a camera in the middle, pointed at some trees or something. You see the rendered image of the camera.
Now you want the camera to move forward through the scene. In real life, you'd pick up the camera and move it forwards. In computer graphics, you keep the camera where it is and move the entire forest backwards. See? That's the job of the view matrix.
Instead of moving the camera around, the view matrix moves the world around to mimic camera motion. Having your camera fixed in a certain place makes projection, field of view, and other camera properties simple to calculate.
It's identity only in basic stuff. Once you get the ability to move the camera around (i.e. move the world around to make it look like the camera has moved) you'll have to calculate the view matrix too.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
anyone good with opengl/ 3d math here? i have a simple problem i am stuck on
question
3d math
fml
opengl