Giter VIP home page Giter VIP logo

Comments (1)

ideugu avatar ideugu commented on August 28, 2024

안녕하세요. 이 부분이 꽤나 난해한 부분인데, 요점을 잘 정리해주었네요.

1번의 답변
10장의 예제는 z값을 고려하지 않고 x,y 값만 참고해 그립니다. 따라서 뒤에 있는 물체도 그려지도록 로직이 설정되어 있습니다. 만약에 z>0의 조건을 추가로 준다면 뒤에 있는 물체는 안그립니다.
( 이 부분은 13장에서 확실히 처리하기 때문에 우선 그대로 두었습니다. )

2번의 답변
180도 Yaw 회전이라는 것은 x와 z값을 반전시키는 것으로 간단히 구현 가능합니다.
말씀하신대로 코드의 Yaw회전은 카메라 게임 오브젝트를 돌리는 것을 의미하고, GetViewMatrix()함수의 x와 z값을 반전시키는 작업은 좌표계를 바꾸는 것으로 이해해주시면 됩니다.

좋은 질문 감사합니다~

from gamemath.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.