1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-12-28 01:29:29 +00:00
6502bench/SourceGen
Andy McFadden b3dacc2613 Switch to left-handed coordinate system
There's no "standard" coordinate system, so the choice is arbitrary.
However, an examination of the Transporter mesh in Elite revealed
that the mesh was designed for a left-handed coordinate system.  We
can compensate for that trivially in the Elite visualizer, but we
might as well match what they're doing.  (The only change required
in the code is a couple of sign changes on the Z coordinate, and an
update to the rotation matrix.)

This also downsizes Matrix44 to Matrix33, exposes the rotation mode
enum, and adds a left-handed ZYX rotation mode.

This does mean that meshes that put the front at +Z will show their
backsides initially, since we're now oriented as if we're flying
the ships rather than facing them.  I considered adding a 180-degree
Y rotation (with a tweak to the rotation matrix handedness to correct
the first rotation axis) to have them facing by default, but figured
that might be confusing since +Z is supposed to be away.

Anybody who really wants it to be the other way can trivially flip
the coordinates in their visualizer (negate xc/zc).

The Z coordinates in the visualization test project were flipped so
that the design is still facing the viewer at rotation (0,0,0).
2020-03-14 13:59:08 -07:00
..
AsmGen Rename project/platform symbols that clash with opcode mnemonics 2020-01-17 18:29:20 -08:00
Examples Fix tutorial 2020-01-27 13:23:05 -08:00
Properties Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
Res Progress on wireframe visualization 2020-03-01 18:34:34 -08:00
RuntimeData Switch to left-handed coordinate system 2020-03-14 13:59:08 -07:00
Sandbox Add VisParamDescr default value type check 2020-01-21 11:02:36 -08:00
SGTestData Switch to left-handed coordinate system 2020-03-14 13:59:08 -07:00
Tests Label rework, part 6 2019-11-18 13:36:53 -08:00
Tools Improve CPU instruction chart 2020-02-18 13:25:20 -08:00
WpfGui Allow custom colors in Notes 2020-03-13 13:58:52 -07:00
Anattrib.cs Correctly handle embedded instruction edge case 2019-10-19 17:28:45 -07:00
App.config Fix startup issues 2019-07-20 17:36:12 -07:00
App.xaml Improve visualization 2019-12-04 15:59:37 -08:00
App.xaml.cs Version 1.6.0-dev1 2020-03-12 10:08:26 -07:00
AppSettings.cs Improve CPU instruction chart 2020-02-18 13:25:20 -08:00
AutoLabel.cs Label rework, part 1 2019-11-08 21:02:15 -08:00
ChangeSet.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
CodeAnalysis.cs Correct handling of no-op .ORG statements 2020-02-28 14:49:18 -08:00
DataAnalysis.cs Correct handling of no-op .ORG statements 2020-02-28 14:49:18 -08:00
DefSymbol.cs Prefer narrower project/platform symbols 2020-01-23 10:49:22 -08:00
DisasmProject.cs Correct handling of no-op .ORG statements 2020-02-28 14:49:18 -08:00
DisplayList.cs Fix adding header comment to project without header lines 2020-01-21 10:29:58 -08:00
DisplayListSelection.cs Add C64 encodings to instruction and data operand editors 2019-08-15 17:53:12 -07:00
Exporter.cs Implement wireframe animation 2020-03-09 13:56:20 -07:00
ExternalFile.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
FormatDescriptor.cs Fix junk alignment check 2019-10-23 13:25:50 -07:00
FormattedOperandCache.cs Add a string operand cache 2019-08-17 17:03:06 -07:00
HelpAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
LineListGen.cs Fix various local variable de-duplication bugs 2020-01-13 18:32:56 -08:00
LocalVariableLookup.cs Fix various local variable de-duplication bugs 2020-01-13 18:32:56 -08:00
LocalVariableTable.cs Fix various local variable de-duplication bugs 2020-01-13 18:32:56 -08:00
MainController.cs Progress on wireframe visualization 2020-03-01 18:34:34 -08:00
MessageList.cs Check for hidden visualizations 2019-12-25 11:15:22 -08:00
MultiLineComment.cs Tweak line folding code 2019-11-01 19:47:56 -07:00
NavStack.cs Tweak navigation 2019-10-10 11:57:36 -07:00
PlatformSymbols.cs Update comments, remove unused var 2019-10-27 21:29:44 -07:00
ProjectFile.cs Progress toward wireframe animations 2020-03-08 17:05:08 -07:00
ProjectProperties.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
PseudoOp.cs Two changes to "dense hex" bulk data formatting 2019-12-10 17:41:00 -08:00
RuntimeDataAccess.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
SourceGen.csproj Implement wireframe animation 2020-03-09 13:56:20 -07:00
Symbol.cs Fix symbol entry bug in operand editors 2019-12-26 11:04:37 -08:00
SymbolTable.cs Prefer narrower project/platform symbols 2020-01-23 10:49:22 -08:00
SystemDefaults.cs Optionally treat BRKs as two-byte instructions 2019-10-09 14:55:56 -07:00
SystemDefs.cs Move WPF code from SourceGenWPF to SourceGen 2019-07-20 13:28:37 -07:00
UndoableChange.cs Groundwork for visualization sets 2019-11-22 20:45:57 -08:00
VisBitmapAnimation.cs Progress toward wireframe animations 2020-03-08 17:05:08 -07:00
Visualization.cs Minor tweaks to wireframe viewer 2020-03-11 16:23:52 -07:00
VisualizationSet.cs Minor tweaks to wireframe viewer 2020-03-11 16:23:52 -07:00
VisWireframeAnimation.cs Fix object timeout 2020-03-10 11:23:18 -07:00
WeakSymbolRef.cs Add local variable uniquification 2019-08-31 14:19:50 -07:00
WireframeObject.cs Switch to left-handed coordinate system 2020-03-14 13:59:08 -07:00
XrefSet.cs Fix various local variable de-duplication bugs 2020-01-13 18:32:56 -08:00