Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Synthetic Vision MC
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
81.141 KB
23 Dec, 2022 @ 5:34am
19 Jan, 2024 @ 9:47am
5 Change Notes ( view )

Subscribe to download
Synthetic Vision MC

Description
The microcontroller for synthetic vision, which is used in this vehicle: Synthetic Vision (Augmented Reality)

A simpler bare-bone setup compared to the flying vehicle or multiple screens example by splitting the microcontroller up into two parts.
Code [github.com]


More info on screen relative position[github.com]
Property
Example_Value
Description
w
96
Pixel width of screen.
h
96
Pixel height of screen.
near
0.25
near is the distance from the end of (compact) seat model to the screen. I.e how many blocks between (compact) seat and screen divided by 4.
far
1000
Distance to far plane in meters, max render distance.
sizeX
0.71
Physical sizeX/width of screen in meters. (Important that it is the actual screen part with pixels and not model width)
sizeY
0.71
Physical sizeY/height of screen in meters. (Important that it is the actual screen part with pixels and not model height)
positionOffsetX
0
Physical offset in the XY plane along X:right in meters.
positionOffsetY
0.01
Physical offset in the XY plane along Y:up in meters. (For example the HUD screen is 0.01 m offset in the model upwards)
pxOffsetX
0
Optional pixel offset.
pxOffsetY
0
Optional pixel offset.
tick
4
Tick compensation due to tick delay in microcontroller.
GPS_to_camera
0.25, 1, -1
Offset from physics sensor block to seat headrest block. (X:right, Y:up, Z:forward)
MDT
5000
Max Drawn Triangles. Will cap the amount of rendered triangles, and if the buffer queue when frustum culling the quadtree exceed MDT, then it will only add every other triangle to buffer.
TBR
21
Triangle Buffer Refreshrate. Number of ticks/frames before the buffer refreshes and doing triangle depth sort once too.
Max_T
22500
Max Triangle Size Squared. The threshold for the max accepted size of a triangle, in which it is the 2D minimum enclosing circle radius of triangle squared, which is used as size comparison.
Min_D
400
Point Minimum Density Squared. The minimum threshold for the distance between nearest neighbor/point in point cloud (in 3D), which is used when trying to add new point.
8 Comments
Jumper  [author] 15 Feb @ 11:41am 
Don't feel like trying atm, so don't expect any time soon
Peppie 13 Feb @ 7:38am 
Would be sick if this could work with the new HMD update.
DangerInstructor 24 Dec, 2024 @ 9:32am 
On multiplayer it works for a bit then throws a tick error "attempted to perform arithmatic on nil value (Field "?")
Vergil Sparda 7 Mar, 2023 @ 7:34am 
"(Description/explanation is to be updated)"
We belive.
DE Baumstamm 8 Jan, 2023 @ 9:41am 
thanks
Jumper  [author] 8 Jan, 2023 @ 9:32am 
You can use this: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2907355026
as reference for setup. Screen alpha is just a value from 0-255 for the color alpha value.
DE Baumstamm 8 Jan, 2023 @ 9:30am 
how do i get laser compass, laser tilt foward and screen alpha
bongokat 27 Dec, 2022 @ 12:11am 
Nice!