this is finding the positions and quaternions to represent secondary and tertiary cameras, for portals this video explains the basic concept pretty well https://www.youtube.com/watch?v=cWpFZbjtSQg the first time I tried making this in 3d, I had some problems with euler angles and gimbal lock so I had to switch to quaternions (the 4th dimension on an imaginary "plane") which fixed it it's probably kinda hard to understand what's happening, but the next few updates should make it easier speaking of the next updates, here's my plan: -link portals to dynamic points -render scenes in place of dynamic points (from secondary cameras) -clip the scenes into the portals @littlebunny for the quaternions library im using, and helping me understand them also https://eater.net/quaternions/ @tsf70 and @kryptoalt for azex tri fill @chrome_can for the z clip tri fill song: https://www.youtube.com/watch?v=YNGgj5-Dwlk