Here is a Proof of Concept of a 3D Engine I wrote from scratch for the Pebble.
It's a watchface that uses the accelerometer to apply rotations to the world famous Utah Teapot.
This 3D Engine Handles hidden surfaces as you can see in this screenshot.
The Teapot model has 306 points and 576 triangle facets, and all the rotations, hidden surface removal and drawings take about 0.1 second for each frame.
This can be achieved this quickly using several optimizations including fixed point arithmetic, custom function to fill a triangle 2x faster than gpath_draw_filled, custom squareroot and arccos functions, etc.
![image]()
The PBW has been compiled with SDK 2.0BETA7 and tested with firmware 2.0-RC2.
You can download it here if you don't believe me or just want to see it running :)
I have a few ideas about how to use this engine in some funny ways to display time.. This will come some day, stay tuned!
If you have some cool ideas, feel free to express them in this thread, this may lead to cool stuff!
It's a watchface that uses the accelerometer to apply rotations to the world famous Utah Teapot.
This 3D Engine Handles hidden surfaces as you can see in this screenshot.
The Teapot model has 306 points and 576 triangle facets, and all the rotations, hidden surface removal and drawings take about 0.1 second for each frame.
This can be achieved this quickly using several optimizations including fixed point arithmetic, custom function to fill a triangle 2x faster than gpath_draw_filled, custom squareroot and arccos functions, etc.

The PBW has been compiled with SDK 2.0BETA7 and tested with firmware 2.0-RC2.
You can download it here if you don't believe me or just want to see it running :)
I have a few ideas about how to use this engine in some funny ways to display time.. This will come some day, stay tuned!
If you have some cool ideas, feel free to express them in this thread, this may lead to cool stuff!