Perspective Projection Matrix and Depth

Поделиться
HTML-код
  • Опубликовано: 7 фев 2025
  • Shows perspective projection and how the view frustum with the near and far plane determine the z depth values for the depth test and depth buffer. Perspective projection compresses the 3D scene into 2D coordinates with depth.

Комментарии • 8

  • @TheSgrizli
    @TheSgrizli 4 года назад +1

    I cannot thank you enough for these videos I have watched many videos about OpenGL but none of them explain the concepts as good as you do

  • @RebelliousX
    @RebelliousX 9 лет назад +4

    I enjoy these videos, they are informative, thanks a billion. Keep them coming.

  • @fille.imgnry
    @fille.imgnry 10 лет назад

    This playlist is awesome!

  • @ryan2009cov
    @ryan2009cov 5 лет назад +2

    Why is the camera in between the near and far plane?

    • @Kitulous
      @Kitulous 12 дней назад

      it's not between the near and far plane, it's behind them
      the camera is sitting at (0,0,0), the near plane starts at z=0.01 which is just ever so slightly in front of the camera, and the far plane is z=1000, which is very far away.
      the projection matrix needs to squish everything that is between z=0.01 and z=1000 to z=-1.0 and z=1.0, since, as you remember from previous 2d videos, these are the coordinates opengl actually understands.
      and since it squishes everything to z=[-1.0, 1.0], the visualizer tool makes it look like the object is behind the camera.
      it's just that the visualizer tool always considers the coordinates of visualized objects as opengl coordinates, which are different from the coordinates of actual 3d objects.

  • @raygun369
    @raygun369 9 лет назад +1

    THANK YOU JAMIE

  • @MrCybin
    @MrCybin 8 лет назад

    This video is not in the github list. There is no code for this tutorial.

  • @itierney
    @itierney 10 лет назад +1

    You sound like Trent Reznor.