Stormworks: Build and Rescue

Stormworks: Build and Rescue

220 beoordelingen
3d Projection Demo (Augmented Reality)
20
10
9
11
4
2
   
Prijs
Toevoegen aan favorieten
Toegevoegd aan favorieten
Verwijderen uit favorieten
Bestandsgrootte
Geplaatst op
Bijgewerkt op
234.031 KB
13 apr 2022 om 14:38
20 okt 2023 om 16:49
6 wijzigingsnotities (weergeven)

Abonneren om te downloaden
3d Projection Demo (Augmented Reality)

Omschrijving
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 opmerkingen
Jumper  [auteur] 2 apr om 4:02 
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 mrt om 1:53 
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 mrt om 15:36 
the next step is an entire functioning OS in stormworks.
lightnMCberger 23 jan om 8:38 
how do you learn to do this stuff
Jumper  [auteur] 1 dec 2023 om 13:26 
@Voss
I've updated the github repo cameraTransform.lua and README.md
Jumper  [auteur] 28 nov 2023 om 7:52 
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 om 2:42 
Additionally, when you calculate head_position_offset, what point is this relative to on the seat?
Voss 28 nov 2023 om 2:39 
I'm trying to understand your code:

In CameraTransform.lua, you multiply "sizeX" by 1.8, why is this?
Jumper  [auteur] 4 nov 2023 om 14:15 
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 om 13:38 
Could this techinically be used for a gun? like aimbot or smth, to indentify a target