RayTracing / raytracing.github.io

Main Web Site (Online Books)
https://raytracing.github.io/
Creative Commons Zero v1.0 Universal
8.5k stars 840 forks source link

[Book 1, Chapter 4.2] Z axis orientation #1578

Open hollasch opened 3 weeks ago

hollasch commented 3 weeks ago

Discussed in https://github.com/RayTracing/raytracing.github.io/discussions/1386

Originally posted by **dimitry-ishenko** January 24, 2024 From chapter 4.2 of book 1: > For simplicity we'll start with the camera center at (0,0,0). We'll also have the y-axis go up, the x-axis to the right, and **the negative z-axis pointing in the viewing direction.** (This is commonly referred to as right-handed coordinates.) > > It is my understanding that arrows on axes indicate positive direction. So, the above paragraph states that negative Z points towards the viewport, but the image shows the opposite -- the arrow (aka positive Z) is pointing towards the viewport. Did I miss something?
hollasch commented 3 weeks ago

See @ParthKohli's comment.