Stormworks: Build and Rescue

Stormworks: Build and Rescue

3d Projection Demo (Augmented Reality)
Affichage des entrées 1-6 sur 6
Mis à jour le : 20 oct. 2023 à 16h49

Updated 3d Projection Demo (Augmented Reality).

Mis à jour le : 17 oct. 2023 à 15h38

Updated 3d Projection Demo (Augmented Reality).

Mis à jour le : 9 juin 2022 à 11h22

Updated 3d Projection Demo (Augmented Reality).
Updated pastebin

Improved head offset accuracy by a lot and some other small changes.
The data for analysing head pos: https://www.geogebra.org/classic/uaphpn2k

Mis à jour le : 22 mai 2022 à 13h26

Wasn't aware that the camera zoom changed, which I use to get higher pixel density, but that's fixed now.

Older Code: https://lua.flaffipony.rocks/?id=f9DXpxqapP

Mis à jour le : 17 avr. 2022 à 8h19

Updated 3d Projection Demo.

Changed the code for roll to:
math.atan(math.sin(tiltSensor.left * tau), math.sin(tiltSensor.up * tau))

Instead of:
math.asin(math.sin(tiltSensor.left*tau)/math.sin((.25-tiltSensor.forward)*tau)
if tiltSensor.up < 0 then ang.y = math.pi-ang.y end


Yields the same accurate output, but the former is a lot nicer.

Mis à jour le : 13 avr. 2022 à 14h38

Uploaded 3d Projection Demo to the Workshop.