Giter VIP home page Giter VIP logo

gamemath's Introduction

<이득우의 게임 수학> 예제

이득우의 게임 수학에 사용되는 예제 CK소프트렌더러 프로젝트입니다. 브랜치를 사용해 단계별로 코드가 구현되어 있으니 책의 가이드에 따라 올바른 브랜치를 다운받기 바랍니다.

전체 로드맵

로드맵

[단계별 예제 확인하기]

요구사항

  • 비주얼 스튜디오 2019 혹은 비주얼 스튜디오 2022
  • CMake 3.1버젼 이상 ( https://cmake.org/download/ )
  • 본 프로젝트는 윈도우만 지원합니다.

컴파일 방법

  • 소스를 다운 받은 후에 비주얼 스튜디오 2019는 CMake-VS-16-2019.bat 배치 파일을, 비주얼 스튜디오 2022는 CMake-VS-17-2022.bat 배치 파일을 실행합니다.
  • 배치 파일을 실행하면 소스를 푼 폴더에 Project폴더와 솔루션 파일이 생성됩니다.
  • 솔루션을 더블클릭해 비주얼 스튜디오를 열고 컴파일하고 실행합니다.

사용하는 키

기능
F1 일반 모드
F2 와이어 프레임 모드
F3 깊이 버퍼 모드 ( 3D 전용 )
F10 2D 엔진과 3D 엔진의 변경
왼쪽,오른쪽 화살표 키 캐릭터 좌우 회전
위,아래 화살표 키 캐릭터 전후 이동
홈(Home),엔드(End) 카메라 FOV 조절

일반 모드

텍스쳐를 매핑해 렌더링합니다. 기즈모는 표시되나 본은 표시되지 않습니다.

구동이 느린 경우 Release 모드로 컴파일해 실행하기 바랍니다.

와이어프레임 모드

선을 사용해 외곽선만 렌더링합니다. 기즈모와 본을 모두 표시해줍니다.

와이어프레임 모드

가까이서 확대하는 경우 동차좌표계에서 삼각형이 분할되는 과정을 확인할 수 있습니다.

와이어프레임 모드 2

깊이 버퍼 모드

원근 투영 변환 후 깊이 값을 선형화시켜 보여줍니다.

깊이 버퍼 모드

gamemath's People

Contributors

ideugu avatar onlybooks avatar

Stargazers

Roman avatar

Watchers

James Cloos avatar

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.