I am just tinkering with the Orbiter mesh format and wanted to see if I could make a simple triangle mesh that could be loaded into a scenario. I have a Triangle.msh file in the Meshes directory which contains the following very basic mesh info (3 vertices and two triangles, with opposing left-handed normals).
If I simply replace Meshname = Triangle with Meshname = Carina, the scenario loads properly and loads the Carina mesh as expected, so it seems the problem is something with the Triangle.msh. I'm not sure what the problem is as it was really meant to be as basic as possible.
What am I missing?
Under Config/Vessels I have a Triangle.cfg file that contains the following:MESHX1
GROUPS 1
GEOM 3 2
0.0 0.0 0.0
0.5 0.866025403784439 0.0
1.0 0.0 0.0
0 1 2
0 2 1
I am trying to load this using a scenario file modified from the Delta Glider at KSC scn file:; === Configuration file for Triangle ===
Classname = Triangle
Meshname = Triangle
With the above, when I start the scenario, Orbiter crashes.BEGIN_HYPERDESC
<h1>KSC Update</h1>
<p>A Triangle waits for takeoff at SLF Runway 33 of the new and improved Kennedy Space Center.</p>
END_HYPERDESC
BEGIN_ENVIRONMENT
System Sol
Date MJD 54723.6694482476
Script ksc_sweep
END_ENVIRONMENT
BEGIN_FOCUS
Ship Triangle
END_FOCUS
BEGIN_CAMERA
TARGET Triangle
MODE Extern
POS 799.63 36.01 -15.36
TRACKMODE TargetRelative
FOV 40.00
END_CAMERA
BEGIN_HUD
END_HUD
BEGIN_MFD Left
END_MFD
BEGIN_MFD Right
END_MFD
BEGIN_VC
END_VC
BEGIN_SHIPS
Triangle:Triangle
STATUS Landed Earth
POS -80.6825940 28.5969240
HEADING 330.01
END
END_SHIPS
If I simply replace Meshname = Triangle with Meshname = Carina, the scenario loads properly and loads the Carina mesh as expected, so it seems the problem is something with the Triangle.msh. I'm not sure what the problem is as it was really meant to be as basic as possible.
What am I missing?