https://github.com/pixelspark/cactus
A software 3D rendering library that is also easy to understand
https://github.com/pixelspark/cactus
Last synced: about 2 months ago
JSON representation
A software 3D rendering library that is also easy to understand
- Host: GitHub
- URL: https://github.com/pixelspark/cactus
- Owner: pixelspark
- License: lgpl-2.1
- Created: 2010-04-15T08:41:59.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2021-05-02T22:01:00.000Z (about 4 years ago)
- Last Synced: 2025-01-23T11:46:01.230Z (3 months ago)
- Language: C++
- Homepage: https://pixelspark.nl/2003/cactus-the-3d-engine-i-wrote-when-i-was-15
- Size: 4.69 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Cactus
Cactus is a software 3D rendering library written in clean C/C++ and is a port of Peter Walser's idx3dIII engine in Java (currently nowhere to be found on the internet...). Although it is outperformed by 3D hardware of today, it is a nice project to learn 3D principles from.
## Building for WebAssembly
[Install EMCC](https://emscripten.org/docs/getting_started/downloads.html), tl;dr:
````sh
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
````Then, to build:
````sh
emcc -DCACTUS_API="" -DNO_LWO_IMPORTER -D__CACTUS_FPUTWEAK src/*.cpp -O3 ./main.cpp -o index.html
````