Typos + formatting
This commit is contained in:
parent
207b7a6bd5
commit
daed020c59
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
![In action!](ovl.gif)
|
![In action!](ovl.gif)
|
||||||
|
|
||||||
This example code demonstrates how to use the companion 'ovl-upload.py' script that should be provided with this file.
|
This example code demonstrates (as opposed to this gif above) how to use the companion 'ovl-upload.py' script that should be provided with this file.
|
||||||
|
|
||||||
Once the code is loaded on a unirom enabled PSX via a serial/USB cable, 'ovl-upload.py' listens for a specific command
|
Once the code is loaded on a unirom enabled PSX via a serial/USB cable, 'ovl-upload.py' listens for a specific command
|
||||||
|
|
||||||
@ -42,13 +42,13 @@ You should see a cube on a blue background.
|
|||||||
|
|
||||||
* Push the **select** button on your controller. The cube should change shape ! In reality, we are loading the geometry data from another file : `Overlay.ovl1`
|
* Push the **select** button on your controller. The cube should change shape ! In reality, we are loading the geometry data from another file : `Overlay.ovl1`
|
||||||
|
|
||||||
Alternativly, you can use the bin/cue in an emulator or xstation.
|
Alternatively, you can use the bin/cue in an emulator or xstation.
|
||||||
|
|
||||||
Helper scripts are provided for convenience and are dependent on `pcsx-redux` and `mkpsxiso` being in your $PATH.
|
Helper scripts are provided for convenience and are dependent on `pcsx-redux` and `mkpsxiso` being in your $PATH.
|
||||||
|
|
||||||
* `isotest.sh` will make, build the bin/cue, and open the resulting image in pcsx-redux.
|
* `isotest.sh` will make, build the bin/cue, and open the resulting image in pcsx-redux.
|
||||||
* `ovly-upload-helper.sh` is a small wrapper for `nops`, hence depending on it being in your $PATH that takes args : load address,
|
* `ovly-upload-helper.sh` is a small wrapper for `nops`, hence depending on it being in your $PATH, that takes 4 args :
|
||||||
overlay filename, ps-exe filename and optional comport/serialdevice - e.g :
|
load address, overlay filename, ps-exe filename and optional comport/serialdevice - e.g :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# make &&
|
# make &&
|
||||||
|
@ -201,13 +201,10 @@ int main() {
|
|||||||
|
|
||||||
overlayFile = "\\cube.bin;1";
|
overlayFile = "\\cube.bin;1";
|
||||||
|
|
||||||
//~ loadFile = &level0;
|
|
||||||
|
|
||||||
} else if ( loadFileID == 1) {
|
} else if ( loadFileID == 1) {
|
||||||
|
|
||||||
overlayFile = "\\tri.bin;1";
|
overlayFile = "\\tri.bin;1";
|
||||||
|
|
||||||
//~ loadFile = &level1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load overlay from CD if definde
|
// Load overlay from CD if definde
|
||||||
@ -240,7 +237,6 @@ int main() {
|
|||||||
|
|
||||||
SVECTOR Rotate={ 0 }; // Rotation coordinates
|
SVECTOR Rotate={ 0 }; // Rotation coordinates
|
||||||
VECTOR Trans={ 0, 0, CENTERX, 0 }; // Translation coordinates
|
VECTOR Trans={ 0, 0, CENTERX, 0 }; // Translation coordinates
|
||||||
// Scaling coordinates
|
|
||||||
VECTOR Scale={ ONE, ONE, ONE, 0 }; // ONE == 4096
|
VECTOR Scale={ ONE, ONE, ONE, 0 }; // ONE == 4096
|
||||||
MATRIX Matrix={0}; // Matrix data for the GTE
|
MATRIX Matrix={0}; // Matrix data for the GTE
|
||||||
|
|
||||||
@ -338,9 +334,10 @@ int main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (AutoRotate) {
|
if (AutoRotate) {
|
||||||
|
|
||||||
Rotate.vy += 8; // Pan
|
Rotate.vy += 8; // Pan
|
||||||
|
|
||||||
Rotate.vx += 8; // Tilt
|
Rotate.vx += 8; // Tilt
|
||||||
//~ Rotate.vz += 8; // Roll
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user