Updated readme
This commit is contained in:
1 parent
b5d598102c
commit
f84a8f1862
1 file changed
+9
-40
@@ -2,41 +2,18 @@
|
||||
Based on [Moparisthebest's release](https://www.moparisthebest.com/downloads/rs317.rar).
|
||||
|
||||
## FAQ (Probably)
|
||||
- What changes have you made?
|
||||
- Removed dummies
|
||||
- Removed redundant initializers/assignments
|
||||
- Converted C-array style definitions to Java style. (int array[] to int[] array))
|
||||
- Inverted or removed empty if statements
|
||||
|
||||
- How can I be sure you didn't break anything?
|
||||
- I am very careful. In other words: you can't.
|
||||
- I am very careful.
|
||||
|
||||
- What does this have over other releases?
|
||||
- A release with cleaned up code and no refactoring/renaming.
|
||||
- Documentation on how certain methods work.
|
||||
|
||||
- What are your plans for this?
|
||||
- Fully renamed, possibly a separate branch after that implementing OpenGL from OSRS's steam client. That thing runs smoooooth.
|
||||
- I'd like to have an extensive wiki teaching the inner workings that haven't been covered. Things like:
|
||||
- Scene Graph
|
||||
- Triangle Sorting
|
||||
- Occlusion
|
||||
- Animation/Transforms
|
||||
- ClientScript 1
|
||||
|
||||
- What are you basing the naming on?
|
||||
- Common sense & research on current industry standard definitions. e.g. VertexGroup/FaceGroup not SkinList..
|
||||
# Semantics
|
||||
- Refactored
|
||||
- To change the structure of the code but have the same exact result.
|
||||
- Renamed
|
||||
- To give meaningful names to classes, fields, and methods.
|
||||
- Clean Deob
|
||||
- A clean deob is one that hasn't been refactored or renamed in any way, but has had dummy code removed.
|
||||
|
||||
# Conventions/Standards
|
||||
|
||||
- XYZ? XZY?
|
||||
- **XZY**
|
||||
- The coordinate system goes as follows:
|
||||
- X+ = Right
|
||||
- Y- = Up
|
||||
- Z+ = Forward
|
||||
- To maintain naming between 2D/3D accesses to heightmaps or conversions from world space to 2D space will maintain the same naming scheme, meaning being accessed as X/Z instead of X/Y.
|
||||
|
||||
Since there are a lot of different types of coordinates used, I'll be standardizing some acronyms to better identify their usages and ranges using [interval notation](https://en.wikipedia.org/wiki/Interval_(mathematics)#Integer_intervals).
|
||||
|
||||
```glsl
|
||||
@@ -49,12 +26,4 @@ int stx, sty; // A scene tile. (50, 50) [0...103]
|
||||
int sx, sy, sz; // A scene coordinate. (6400, -104, 6400) [0...13312] see note 2
|
||||
```
|
||||
<sub><sup><sup>1</sup>Description should be inferred by method name or be in comments.</sup></sub><br/>
|
||||
<sub><sup><sup>2</sup>The y coordinate is generally between 0 and -960 depending on the terrain height. Technically the limit is created by the use of 16.16 fixed point math with sin/cos allowing overflow for scene values over 32768.</sup></sub>
|
||||
|
||||
# Semantics
|
||||
- Refactored
|
||||
- To change the structure of the code but have the same exact result.
|
||||
- Renamed
|
||||
- To give meaningful names to classes, fields, and methods.
|
||||
- Clean Deob
|
||||
- A clean deob is one that hasn't been refactored or renamed in any way, but has had dummy code removed.
|
||||
<sub><sup><sup>2</sup>The y coordinate is generally between 0 and -960 depending on the terrain height. Technically the limit is created by the use of 16.16 fixed point math with sin/cos allowing overflow for scene values over 32768.</sup></sub>
|
||||
Reference in new issue
Block a user