Stormworks: Build and Rescue

Stormworks: Build and Rescue

3d Projection Demo (Augmented Reality)
6件中 1-6 を表示
更新:2023年10月20日 @ 16時49分

Updated 3d Projection Demo (Augmented Reality).

更新:2023年10月17日 @ 15時38分

Updated 3d Projection Demo (Augmented Reality).

更新:2022年6月9日 @ 11時22分

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

更新:2022年5月22日 @ 13時26分

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

更新:2022年4月17日 @ 8時19分

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.

更新:2022年4月13日 @ 14時38分

Uploaded 3d Projection Demo to the Workshop.