Gamma Engine BETA 1.1

Published 2022-04-23
NOTES FROM ME:

I think this is the fastest skybox on scratch. If you can find a radically improved method, I will be happy to use it with credit :)

The skybox will only work if you enable "high quality pen."

Again, this was very rushed *sigh*

NEW FEATURES:

What is new..? There are many bug fixes and a couple of new features(including a skybox, of course). I discovered a new neat quaternion trick called "swing-twist decomposition," it is extremely useful and I cannot wait to explore more of what it can do. Perhaps I'll make a project that explains this operation. Another feature is, of course, ANIMATION KEYFRAMING!!! So far, I have made some pretty cool stuff with animations, and I cannot wait to do more!

BUGS:

There is still a skybox bug which has to do with a unpatched singularity of the quaternion swing-twist decomposition function.
Also, the lens flare does not get obstructed by objects when it is supposed to. Some simple raycasting will probably fix that.


IN THE FUTURE:

Although there was not really a single direction in which this update took, I'd say it unlocks pathways for much more to do. I am planning on implementing volumetric shadowing/lighting using raycasting for the next update.

CREDITS:

The improved BSP(binary space partitioning) algorithm uses a triangle cutting method by @Vadik1. The code itself is slightly based off of their code, except it is pretty much original. You can find and compare their code here:
https://scratch.mit.edu/projects/277701036/editor/

The Bezier code for camera paths is (almost) directly taken from @gtoal's project:
https://scratch.mit.edu/projects/131769048/

Quaternion look-at code from Unity forums. Compare with @ggenije's code:
https://scratch.mit.edu/projects/470670022/

Much of the collision detection-response code comes from:
https://wickedengine.net/2020/04/26/capsule-collision-detection/

Quaternion swing-twist decomposition code and derivation come from:
http://www.euclideanspace.com/maths/geometry/rotations/for/decomposition/index.htm

Song is "Wait" by C418