https://github.com/davcri/rayca-ts
Raycaster study
https://github.com/davcri/rayca-ts
raycaster ts
Last synced: 10 months ago
JSON representation
Raycaster study
- Host: GitHub
- URL: https://github.com/davcri/rayca-ts
- Owner: davcri
- Created: 2022-03-12T15:57:14.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-18T07:44:33.000Z (almost 3 years ago)
- Last Synced: 2025-01-23T09:33:00.392Z (12 months ago)
- Topics: raycaster, ts
- Language: TypeScript
- Homepage: https://rayca-ts.netlify.app/
- Size: 151 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# rayca-ts
[](https://app.netlify.com/sites/js-ray/deploys)
✍️ WIP raytracer written in JS/TS, inspired by https://www.scratchapixel.com/


> Photo by [Snapwire](https://www.pexels.com/photo/photo-of-gray-cat-looking-up-against-black-background-730896/)
### Other Raycaster implementations
- [Fahien/rayca](https://github.com/Fahien/rayca) - 🦀 Rust implementation.
## Interesting resources
- BVH: [How to build a BVH](https://jacco.ompf2.com/2022/04/13/how-to-build-a-bvh-part-1-basics/)
### GFX
- https://en.wikipedia.org/wiki/Ray_tracing_(graphics)
- https://github.com/OmarShehata/webgpu-compute-rasterizer
- https://jacco.ompf2.com/2022/04/13/how-to-build-a-bvh-part-1-basics/
- https://kristoffer-dyrkorn.github.io/triangle-rasterizer/
### Optimizing JS math code
- [Efficient JavaScript Vector Math Brandon Jones](http://media.tojicode.com/sfjs-vectors/)
- Box2D web port: https://github.com/illandril/box2dweb-closure/blob/master/src/common/math/b2Vec2.js
- [scirra.com/blog/76/how-to-write-low-garbage-real-time-javascript](http://web.archive.org/web/20140724034530/https://www.scirra.com/blog/76/how-to-write-low-garbage-real-time-javascript)