Sergey Lipskiy
be069adb1f
Fix gSPObjSprite for S2DEX ver 1.03
...
Fixed speedometer in GT 64.
2019-02-02 18:34:13 +07:00
Sergey Lipskiy
b62734d297
Use ValueKeeper for RSP.LLE flag
2019-02-02 18:34:12 +07:00
Sergey Lipskiy
dcd159dc71
Enable texrect drawer in BG commands when enableNativeResTexrects enabled.
2019-02-02 18:34:12 +07:00
Sergey Lipskiy
4a50912283
Enable texrect drawer for BGCopyNew.
2019-02-02 18:34:12 +07:00
Sergey Lipskiy
6ca50bd733
Use old code for frame buffer texture backgrounds
2019-02-02 18:34:11 +07:00
Sergey Lipskiy
1f372fa0ce
Fix S2DEX_MoveWord
2019-02-02 18:34:11 +07:00
Sergey Lipskiy
be1a1fc413
Fixes for S2DEX 1.5
2019-02-02 18:34:11 +07:00
Sergey Lipskiy
9e64d45ac5
New implementation of BgCopy command. It is based on olivieryuyu decoding of actual ucode and works as close to original command as possible.
2019-02-02 18:34:11 +07:00
Sergey Lipskiy
5ac2749bbb
Fixes in gSPObjLoadTxtr.
2019-02-02 18:34:10 +07:00
Sergey Lipskiy
a3613b42ae
Draw backgrounds with TexrectDrawer.
2019-02-02 18:34:09 +07:00
Sergey Lipskiy
25bef0d805
New implementation of BG1Cyc command.
...
It is based on olivieryuyu decoding of actual ucode and works as close to original command as possible.
2019-02-02 18:34:09 +07:00
Sergey Lipskiy
31e2c7e11a
Correct lighting for CBFD.
...
Code refactoring.
2019-01-13 01:07:20 +07:00
Sergey Lipskiy
1ec435d6e7
Correct command S2DEX_Obj_Rectangle_R for ucode version 1.03
2018-11-08 11:58:13 +07:00
Sergey Lipskiy
88aa90d075
Implement NO_XFM mode for Turbo3D ucode.
...
Fixed Dark Rift: gfx of the fist screen doesn't disappear when it should (HLE issue) #626
Fixed Dark Rift: missing transition effect in menu #649
2018-11-05 13:27:07 +07:00
gizmo98
35099ec8cb
Backgrounds: Fix cut off textures and texture fragments and seams
...
-Fix cut off textures in hamster64. Enable coord correction if
gDP.otherMode.textureFilter == G_TF_BILERP.
-Fix seams in hamster64 and texture fragments in starcraft64. Enable
texture clamp if lrs/lrt <= (imageW/imageH - 1).
2018-10-13 19:09:24 +07:00
Sergey Lipskiy
6ba9a81e76
Rewrite Tri commands for SWRS ucode.
2018-10-01 23:15:33 +07:00
gizmo98
13f587a360
tile functions: Replace magic numbers with constants
...
Just refactoring. Replace magic numbers with constants. No functional
changes.
2018-09-30 18:03:46 +07:00
Sergey Lipskiy
b096c1e9fc
Rewrite vertex coordinates calculation for ObjSprite command again.
2018-09-30 18:03:46 +07:00
Sergey Lipskiy
91b17a578c
Rewrite vertex coordinates calculation for ObjRect commands again.
2018-09-30 18:03:46 +07:00
Sergey Lipskiy
0da701e7e5
Rewrite texture coordinates calculation for ObjRect commands.
2018-09-30 18:03:46 +07:00
Sergey Lipskiy
8fd5f910ab
Add support for S2DEX v1.03
2018-09-30 18:03:45 +07:00
Sergey Lipskiy
5abb19bd7a
Disable "yoshi petals fix" because of regression in yoshi's message board.
2018-09-30 18:03:45 +07:00
Sergey Lipskiy
164d012138
Rewrite coordinates calculation for ObjRectangle and ObjRectangleR
2018-09-30 18:03:45 +07:00
Sergey Lipskiy
83995f5dc8
Correct vertex coordinates calculation for gSPObjRectangleR
2018-09-30 18:03:45 +07:00
Sergey Lipskiy
51490b9de0
Correct _YUVtoRGBA
2018-09-30 18:03:45 +07:00
Sergey Lipskiy
ec898f4178
Rewrite vertex coordinates calculation for gSPObjRectangleR using fixed-point math decoded from S2DEX ucode by olivieryuyu
...
Code refactoring.
2018-09-30 18:03:44 +07:00
Sergey Lipskiy
9bbd449812
Correct lrs and lrt calculation for ObjRect commands.
2018-09-30 18:03:44 +07:00
Sergey Lipskiy
38c7eef32b
Code cleanup: use constants for flipS and flipT flags.
2018-09-30 18:03:44 +07:00
Sergey Lipskiy
b012e8b53c
Code refactor:
...
* move implementation of S2DEX commands from gSP.cpp to uCodes/S2DEX.cpp
* code cleanup
2018-09-30 18:03:44 +07:00
Sergey Lipskiy
2e2cbcfcfc
Fix culling in Indi and Naboo
2018-09-24 19:32:10 +07:00
Sergey Lipskiy
73189eb958
Implement olivieryuyu proposal to add Early Fast3D games to custom micricodes, #1303
...
Code refactoring.
2018-08-31 12:53:48 +07:00
Sergey Lipskiy
3bc17f50f3
Correct texture coordinates calculation in z-sort ucodes.
...
Fixed Mia Hamm Soccer 64: wrong textures in menu (regression & HLE) #210
2018-08-20 11:54:00 +07:00
Sergey Lipskiy
b9bfbf40e8
Indi Particle Optimization hack.
...
Add F5INDI_PARTICLE_OPT define to enable.
2018-06-16 18:41:50 +07:00
Sergey Lipskiy
b0a575313a
Implement Factor5 ucodes for Indiana Jones/Battle of Naboo, task #1259
2018-06-16 18:41:50 +07:00
Sergey Lipskiy
3ff1478103
Add matix element conversion functions.
2018-06-11 20:12:13 +07:00
gizmo98
b0647a64d1
ZSortBOSS_Audio2(): use absolut value of fraction
...
fractpart will be cast to u16. Remove sign.
2018-06-09 12:31:35 +02:00
gizmo98
95d5264300
Add better matrix load, insert and store fixed to float logic
2018-06-09 12:29:01 +02:00
gizmo98
35f4ad3b28
gSP.cpp: Replace _FIXED2FLOAT if there is no real fixed to float conversion
...
Use * recip instead
2018-06-02 21:35:32 +07:00
gizmo98
4750e10076
Use _FIXED2FLOATCOLOR
2018-06-02 21:35:32 +07:00
gizmo98
a8349418ce
Use _FIXED2FLOAT
...
Replace x/65536 and x*0.00390625f with _FIXED2FLOAT
2018-06-02 21:35:32 +07:00
Sergey Lipskiy
6725ad474a
Fix warnings of 64bit compiler.
2018-05-06 15:54:12 +07:00
Sergey Lipskiy
10710f96ac
Fix warnings from compiler and static code analizer.
2018-05-06 15:28:07 +07:00
Sergey Lipskiy
75ea06cec7
Code refactoring: fix issues found by static code analizer.
2018-04-19 20:16:21 +07:00
Logan McNaughton
3e734c7b8b
Fix compile for ZSortBOSS
2018-02-13 09:52:16 +07:00
Logan McNaughton
281e900a3f
Minor fixes for ZSortBOSS
2018-02-13 09:52:16 +07:00
Gillou68310
592c732ef3
Implement BOSS ZSort ucode (WDC, Stunt Racer)
2018-02-12 12:28:58 +01:00
Sergey Lipskiy
64335733e5
Simplify Calc_invw() for ZSort ucode.
2017-12-25 11:09:53 +07:00
Sergey Lipskiy
737338ca20
Use fixed point calculation for texrect s and t coordinates.
...
It is impossible to handle integer overflow when coordinates in float format.
Fixed textures in Major League Baseball #146
2017-11-18 15:41:18 +07:00
Sergey Lipskiy
35cc66bad4
Code cleanup:
...
* make RSPInfo::busy and RSPInfo::halt boolean
* remove RSPInfo::close
* rename RSPInfo::bLLE to RSPInfo::LLE
2017-10-24 15:44:37 +07:00
Sergey Lipskiy
7ae98a2bf9
Optimize TriGen functions in F3DSWRS ucode.
2017-09-25 11:37:57 +07:00