Stormworks: Build and Rescue

Stormworks: Build and Rescue

220 ratings
3d Projection Demo (Augmented Reality)
20
10
9
11
4
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
234.031 KB
13 Apr, 2022 @ 2:38pm
20 Oct, 2023 @ 4:49pm
6 Change Notes ( view )

Subscribe to download
3d Projection Demo (Augmented Reality)

Description
Demo to show my 3d projection (Augmented Reality) in action.

Explanation and code on github: https://github.com/Jumper-44/Stormworks_AR-3D-Render

If interested in the Spatial Testing Rig
86 Comments
Jumper  [author] 2 Apr @ 4:02am 
https://github.com/Jumper-44/Stormworks_AR-3D-Render/blob/master/Template/CameraTransform.lua#L99
There is a section for head_position_offset (approximation), also variable/vector for the relative position at the seat headrest block to the player head (When holdning nothing in hand).
That local position vector (head_position_offset) only depends on the seat look direction (and gender of player, defaults to male).

Picture of local coordinate space origin at seat headrest block:
https://github.com/Jumper-44/Stormworks_AR-3D-Render/blob/master/Pictures/Local%20Coordinate%20Space.png
Voss 30 Mar @ 1:53am 
Would you consider publishing a standalone micro controller that just outputs the position of the player head relative to a point on the seat based on look direction?

I think it would help a lot of technical players including myself.
ZellyBelly 27 Mar @ 3:36pm 
the next step is an entire functioning OS in stormworks.
lightnMCberger 23 Jan @ 8:38am 
how do you learn to do this stuff
Jumper  [author] 1 Dec, 2023 @ 1:26pm 
@Voss
I've updated the github repo cameraTransform.lua and README.md
Jumper  [author] 28 Nov, 2023 @ 7:52am 
1.8 = 288/160
aspectratio = w/h

It was used to quickly get the correct aspectratio of the screen to run the "Quick debug" that is commented out. The sizeX|Y values aren't correct to match the 9x5 screen in game, but just the right ratio so the result isn't warped.
That's my bad, I haven't yet explained what each property paremeters are yet. I'll do a edit in cameraTransform.lua and configure the README.md to the github repo.

head_position_offset origin, or relative point, is in the center of the seat headrest block.
The headrest block is also the block that "GPS_to_camera" offsets to.
I.e. the offset from the physics block to headrest block.
Voss 28 Nov, 2023 @ 2:42am 
Additionally, when you calculate head_position_offset, what point is this relative to on the seat?
Voss 28 Nov, 2023 @ 2:39am 
I'm trying to understand your code:

In CameraTransform.lua, you multiply "sizeX" by 1.8, why is this?
Jumper  [author] 4 Nov, 2023 @ 2:15pm 
You could project the bullet trajectory, as in you constantly simulate you are shooing a bullet and see its trajectory over time, which results you seing the trajectory of, let say 60 bullets at a time and see the old trajectory to the newest in form of multiple points.
That would form a sort of arc of trajectory, but not a static bullet arc that falls towards the ground. Can be used to account for over/under shooting.
I think so, just thought of it.
christigpa 4 Nov, 2023 @ 1:38pm 
Could this techinically be used for a gun? like aimbot or smth, to indentify a target