Skip to content
프로젝트

소개

A 3D graphics and physics engine coded from scratch in C++ and OpenGL.

과학 및 공학

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
0

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Pescado 3D Engine

This is a 3D graphics and physics engine coded in C++ and OpenGL. All the libraries, including the vector math and matrix math libraries were coded from scratch. The physics and geometry processing happens in 3D but when you want to display the image to your 2D monitor you can only plot 2D points. Thus, every 3D point is projected and squashed to the screen using a perspective projection matrix and perspective division. Although it looks 3D, it is actually 2D. There is no such thing as 3D graphics.

Meshes

Points and lines are grouped into triangles. Triangles are grouped into meshes (shapes). These shapes then get placed (transformed) into the world by a model-to-world matrix (TRS). This TRS matrix scales, rotates, and translates every point visible (in that exact order) from local space to world space.

Camera

The camera itself is just a position and a rotation transformation that gets transformed into the world the same way meshes are. To see the world from the cameras view, each point in the world is repositioned or converted to a position relative to the camera using the camera's Inverse TR matrix ( R^-1*T^-1 or R^T*T^T). Everything outside the camera's view is then algorithmically discarded.

One small step for GUI

GUI

All praise to Jehovah for creating the real 3D world which no man could do.

관련 프로젝트 살펴보기

불러오는 중…