Stormworks: Build and Rescue

Stormworks: Build and Rescue

220 人が評価
3d Projection Demo (Augmented Reality)
20
10
9
11
4
2
   
アワード
お気に入り
お気に入り
お気に入りから削除
ファイルサイズ
投稿日
更新日
234.031 KB
2022年4月13日 14時38分
2023年10月20日 16時49分
6 項目の変更履歴 ( 表示 )

サブスクライブしてダウンロード
3d Projection Demo (Augmented Reality)

解説
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 件のコメント
Jumper  [作成者] 4月2日 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 3月30日 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 3月27日 15時36分 
the next step is an entire functioning OS in stormworks.
lightnMCberger 1月23日 8時38分 
how do you learn to do this stuff
Jumper  [作成者] 2023年12月1日 13時26分 
@Voss
I've updated the github repo cameraTransform.lua and README.md
Jumper  [作成者] 2023年11月28日 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 2023年11月28日 2時42分 
Additionally, when you calculate head_position_offset, what point is this relative to on the seat?
Voss 2023年11月28日 2時39分 
I'm trying to understand your code:

In CameraTransform.lua, you multiply "sizeX" by 1.8, why is this?
Jumper  [作成者] 2023年11月4日 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 2023年11月4日 13時38分 
Could this techinically be used for a gun? like aimbot or smth, to indentify a target