Space Engineers

Space Engineers

975 betyg
Whip's Artificial Horizon Redux
2
3
4
2
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Taggar: visualization
Filstorlek
Lades upp
Uppdaterades
497.518 KB
23 apr, 2019 @ 5:48
14 okt, 2024 @ 11:30
18 ändringsnotiser ( visa )

Abonnera för att ladda ner
Whip's Artificial Horizon Redux

I 1 samling av Whiplash141
Whip's Scripts
22 artiklar
Beskrivning
Whip's Artificial Horizon Redux


Updated the space orientation indicator to draw 3D arrow heads for better visual clarity



Howdy!

This is my rendition of an artificial horizon for use on the ship cockpit screens and regular LCDs and text panels; I wasn't satisfied with Keen's so I made my own. This script utilizes the new sprite based drawing API to allow the visuals to be much more crisp than my old pixel-based variant.

In atmosphere, the script will display a colored artificial horizon with graphical indicators for velocity, pitch, and roll as well as text displays of altitude, speed, and heading.


When you leave a planet's atmosphere, the horizon disappears and the screen functions as a graphical velocity indicator where speed and acceleration are displayed on screen. Also, the world XYZ axes are drawn to help you orient yourself in space.



  • Works with new cockpit LCDs
  • Prograde and retrograde velocity indicators that never go off screen
  • Fully configurable colors
  • Uses Custom Data for customization (No more need to modify the code!)
  • Uses new sprite drawing API to generate crisp visuals
  • PULL UP warning displays when the script detects that a collision with the ground is imminent
  • Works as a graphical velocity indicator in space
  • World XYZ axes are shown when in space to help you orient yourself


Required Steps
  1. Place this script on your ship
  2. Place one or more ship controllers on your ship (Cockpits, Flight Seats, or Remote Controls)
  3. Add Horizon to the name of text panels or blocks with text surfaces that you want the artificial horizon displayed.
    • Blocks with text surfaces include: Cockpits, flight seats, programmable blocks, and console blocks
    • Configure which text surface the horizon is displayed on within the block's custom data (You don't need to do this for text panels). The default config will be populated automatically.

  4. Enjoy!

Optional steps
  • Place the word Reference in the name of the ship controller that you want use to orient the the artificial horizon.
    • If you do not specify, the code will automatically detect and use the seat you are controlling the ship from.
  • Place the word Horizon in the name of any sound blocks you want to use for ground collision warnings.
    • Make sure to select a sound to play on the sound block. You can configure the loop interval in the custom data of the programmable block.

How to read the XYZ axes



You can change how the artificial horizon looks and behaves within the Custom Data of the programmable block this script is running from. Simply open the custom data, modify it, and click "Ok". The code will update to reflect these changes within 10 seconds at most.



Can I customize the colors?
Yes, in the custom data of this programmable block.

Does this work with the new cockpit LCDs?
Yes.

Can I have an Artificial Horizon and a Radar on different cockpit screens?
Yes, as long as they are configured to write to different cockpit screens, my scripts will not conflict.

Will this work with Configurable Auto LCDs 2?
Yes. Simply append the CAL2 configuration to the END of the Custom Data like so:
Artificial horizon configuration --- Auto LCD configuration
The three hyphens (---) need to go after everything else in the Custom Data, but before the Auto LCD configuration.

Do you have an Elite Dangerous color scheme that matches the Radar script?
Yes! Check out the presets below in the Color Schemes discussion!


Be sure to report any bugs below in the Bug Reports discussion. Hope y'all enjoy :)

(Do not reupload without permission, not even to mod.io)
Populära diskussioner Visa alla (3)
11
17 okt, 2024 @ 16:47
KLISTRAD: Bug Reports
Whiplash141
7
5 maj, 2021 @ 20:20
KLISTRAD: Color Schemes
Whiplash141
0
27 apr, 2024 @ 3:57
Feature Idea: In space "reference horizon" within "docking range".
Leconite
229 kommentarer
Leconite 31 aug @ 8:48 
Totally understandable, deploying it in a large grid LCD block of some type is usually how I use it too.
Can't really read it otherwise.
Felix 31 aug @ 6:11 
@ Leconite, I'd really only want it visible inside a gravitational field, not in space. The problem with the cockpit screen is it is too small for me to see well. The text on it is literally unreadable. Plus it is so far out of normal view, it also becomes mostly useless when trying to see where you are going. If I had access to the clear LCD panel I'd try using it in front of my cockpit window, but alas, I do not.
Leconite 30 aug @ 8:26 
The displays actually do make sense, if you could explain what parts you don't understand, we could probably help you out with that.

In space, a pitch angle doesn't make much sense, as there is no reference to pitch to.

In planetary gravity, I believe the reference is sea level altitude.
@Whiplash141, let me know if I'm wrong about that.

If the target indicator, the symbol in the center of the screen is in the blue section, I am pitching up according to the planetary reference. 0 to 90 degrees, as indicated by the numbers on the edges of the blue section.

If the target indicator, is in the black, I am pitching down according to the planetary reference. 0 to -90 degrees, as indicated by the numbers on the edges of the black section.

The line between blue and black sections can be used to visualize roll angle.

The up arrow symbol near the target indicator indicates directional velocity, and can be used to visualize yaw and pitch as well.
Felix 29 aug @ 15:34 
Any way to get the planetary hud from this to replace the artificial horizon bar (or perhaps know of a mod that does) on the player hud. I can't stand not knowing the pitch angle of my ship and the screens are entirely unintelligible to me.
Whiplash141  [skapare] 12 jul @ 20:47 
rad :)
Leconite 12 jul @ 3:19 
Confirmed, can see through it on transparent and holographic lcd's.
Have used this with both.
Whiplash141  [skapare] 10 jul @ 20:50 
All of it should be
AIM-9X 10 jul @ 20:44 
I was wondering how much of it was see-through on a transparent LCD
Whiplash141  [skapare] 10 jul @ 20:43 
Works on all LCD's, yes
AIM-9X 10 jul @ 20:30 
Will this work on a transparent LCD and allow me to see past it?