Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Synthetic Vision - Multiple Screens
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
1.416 MB
19 Jan, 2024 @ 11:18am
1 Change Note ( view )

Subscribe to download
Synthetic Vision - Multiple Screens

Description
Example of multiple screens with Synthetic Vision Microcontroller, by splitting the microcontroller up into 2 parts. A single MC for the laser and triangulation system, and a MC for each screen. Can setup screens to act as one big setup or an independent screen for a copilot.

This is an older version of the current up to date system as this implementation was easily done due to the side effect of having to split the scripts into 3 parts to accommodate the 4096 char limit, but as it's now 8192 chars then it has been combined into 2 with more features and optimizations, which doesn't make it easy to split system for a central triangulation script and multiple screens scripts.

Code of this version [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.
1 Comments
NoNameIdk1 18 Aug, 2024 @ 1:41pm 
awesome