https://github.com/samchenyu/3dengine
https://github.com/samchenyu/3dengine
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/samchenyu/3dengine
- Owner: SamChenYu
- Created: 2024-05-11T12:33:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-29T18:52:05.000Z (over 1 year ago)
- Last Synced: 2025-01-29T19:37:34.919Z (over 1 year ago)
- Language: Java
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Rasterization Pipeline: Tests each triangle against pixels by computing a bounding box
- Apply transformation matrix
- Intialise z buffer
- Rasterize each triangle in each shape
- compute normal for shading
- compute rectangular bounds [ identifies 2d screen space are affected by 3d object ]
- loop through every pixel in bounding box
- check if pixel is inside the triangle
- compute z depth
- set color of pixel if z buffer is smallest
Ray Tracing Pipeline: Shoots a ray from camera through each pixel using mathematical equations
- Generate a ray from camera passing through lookAt
- Loop through all objects and find closest intersection
- Anti aliasing to sample out colours