1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00
Commit Graph

71 Commits

Author SHA1 Message Date
Sergey Lipskiy
90e27ea0d6 Correct dummy texture parameters 2015-05-13 10:20:11 +06:00
Sergey Lipskiy
35ea6f28fb Load mip-mapped texture only when LOD emulation is enabled. 2015-05-13 10:19:33 +06:00
Sergey Lipskiy
2edc1bb8e0 Always use mask size first when calculate texture size.
Fixed court texture in Mario Tennis.
2015-05-13 10:19:32 +06:00
Sergey Lipskiy
4be1a379e4 Load 16bit CI as IA88.
Fixed Clay Fighter Sculptor's Cut: no 3d at boot screen #205
2015-05-13 10:19:12 +06:00
Sergey Lipskiy
4bea76d962 Remove texture.forceBilinear option.
Add texture.bilinearMode option:
- standard hardware bilinear filter
- N64 3 point filter
2015-05-13 10:19:04 +06:00
Sergey Lipskiy
cf11996d0e Implement 3 point filtering.
Code ported from mupen64plus-libretro.
2015-05-13 10:19:01 +06:00
Sergey Lipskiy
eb42f8fe46 Code cleanup: remove unused gDP.texRect struct and related code. 2015-05-13 10:18:50 +06:00
Sergey Lipskiy
62aa6495ec Revert "Remove redundunt glTexParameter calls."
Commit was based on wrong assumption that glTexParameters sets parameter
for current texture. Actually it sets parameter for current TMU.
glTextureParameter sets parameter per texture, but it is OGL 4.5

This reverts commit 0526d284ef377981cf45bf764dd8c0e7ea571f6e.
2015-05-13 10:18:44 +06:00
Sergey Lipskiy
e3f51aae25 Correct texture size calculation: use mask size only if mask != 0.
Fixed backgrounds in F-1 Pole Position.
2015-05-13 10:18:36 +06:00
Sergey Lipskiy
d9eab35441 Remove redundunt glTexParameter calls. 2015-05-13 10:18:08 +06:00
Sergey Lipskiy
df4c34bc2c Fix code analizer's warning. 2015-05-13 10:17:58 +06:00
Sergey Lipskiy
17b2db7031 Workaround for Mupen64Plus issue with initialization 2015-05-13 10:17:54 +06:00
Sergey Lipskiy
ced838fed2 Add support for Anisotropic Filtering. 2015-05-13 10:17:46 +06:00
Sergey Lipskiy
64d97e72e0 Remove textureBitDepth settings.
Load textures using most relevant format.
2015-05-13 10:17:32 +06:00
Sergey Lipskiy
3b102d4ebd Fix texture filter usage. 2015-05-13 10:17:05 +06:00
Sergey Lipskiy
dce0019e9a Correct tile width and height masking.
Fix for commit 474398be.
Fixed Pokemon Snap: missing/black texture on beach #203
2015-05-13 10:16:44 +06:00
Sergey Lipskiy
729e753acf Fix load paletted backgrounds.
Fixed logo in Dragon Sword.
2015-05-13 10:16:42 +06:00
Sergey Lipskiy
5af46b47ad Fix mip-mapping with zero level.
Fixed objects in Paper Mario.
2015-05-13 10:16:39 +06:00
Sergey Lipskiy
9c4bb7d0c2 Fix texture address for cached texture. 2015-05-13 10:16:36 +06:00
Sergey Lipskiy
7ca20f8a42 Update CachedTexture::shiftScaleS and CachedTexture::shiftScaleT before call
to TextureCache::activateTexture() since these parameters can change
between frames.

Fixed "Ground incorrect at some place durin mario golf intro #78"
2015-05-13 10:16:33 +06:00
Sergey Lipskiy
232a2c0b84 Rewrite _calculateCRC():
- fixed bytes per line calculation
- fixed CRC for 32bit textures.
2015-05-13 10:16:32 +06:00
Sergey Lipskiy
506ca2b44c Fix textures load for different textureLUT modes. 2015-05-13 10:16:18 +06:00
Sergey Lipskiy
f661fc0be7 Fix I and IA textures load when G_IM_FMT_CI tlut mode is on.
Issue #41
2015-05-13 10:16:16 +06:00
Sergey Lipskiy
041e63c67a Fix HD backgrounds load. 2015-05-13 10:16:16 +06:00
Sergey Lipskiy
5df0bca6b9 Fix load 32bit textures.
Fixed textures in Automobili Lamborghini, #177
2015-05-13 10:16:15 +06:00
Sergey Lipskiy
1262304706 Use input _pTexture parameters for HD texture crc calculation. 2015-05-13 10:16:14 +06:00
Sergey Lipskiy
eaa4ba35b3 Fix bpl claculation for HD tex. 2015-05-13 10:16:13 +06:00
Sergey Lipskiy
67e6f23f36 Remove obsolete hack for Zelda warp texture.
Fixed Bond's Portrait texture in GE.
2015-05-13 10:16:07 +06:00
Sergey Lipskiy
a5360657f9 Disable texture filtering for texrects if txFilterIgnoreBG is on. 2015-05-13 10:16:02 +06:00
Sergey Lipskiy
8d17023217 Add texture filtering for backgrounds. 2015-05-13 10:16:01 +06:00
Sergey Lipskiy
fbe21ef07d Fix code analizer warnings. 2015-05-13 10:15:55 +06:00
Sergey Lipskiy
19a274f9e5 Fix compilation with gcc. 2015-05-13 10:15:52 +06:00
Sergey Lipskiy
dd4b714ccd Enable Texture filtering. 2015-05-13 10:15:44 +06:00
Sergey Lipskiy
42193b49a5 Load Hi-res textures. 2015-05-13 10:15:43 +06:00
Sergey Lipskiy
c984298b7b Implement search for hires texture. WIP 2015-05-13 10:15:41 +06:00
Sergey Lipskiy
f8da3cb792 Calculate texture size using gDPLoadTileInfo. 2015-05-13 10:15:27 +06:00
Sergey Lipskiy
887504c301 Switch to non-POT textures. 2015-05-13 10:15:25 +06:00
Sergey Lipskiy
e2347a09a5 Mask TMEM address.
Fixed images load in Blast Corps.
2015-05-13 10:15:15 +06:00
Sergey Lipskiy
57fb19a7ac Move texture sizes calculation into separate procedure.
Use it to calculate mip-maped tiles sizes.

Fixed globe in Blast Corps.
2015-05-13 10:15:13 +06:00
Sergey Lipskiy
f96bb13a0b Fix textures size calculation: apply mask on width and height to avoid overflow.
Fixed crash in carmadeggon after N logo.
2015-05-13 10:15:10 +06:00
Sergey Lipskiy
43727bc5a3 Correct textures load when gSP.texture.tile == 7 2015-05-13 10:14:46 +06:00
Sergey Lipskiy
e8a9832861 Fix textures size calculation method when tile loaded via LoadTile. 2015-05-13 10:14:44 +06:00
Sergey Lipskiy
0c7b3b9754 Don't clamp textures in COPY cycle type. 2015-05-13 10:14:43 +06:00
Sergey Lipskiy
cb785c2667 Fix textures size when load via LoadTile. 2015-05-13 10:14:42 +06:00
Sergey Lipskiy
4cacd7f818 Fix load RGBA textures when TLUT is enabled.
Fixed water texture in GE Frigate level.
2015-05-13 10:14:40 +06:00
Sergey Lipskiy
8d37143331 Implement YUV textures load. 2015-05-13 10:14:37 +06:00
Sergey Lipskiy
f11617bfa0 Fix 32bit textures load. 2015-05-13 10:14:35 +06:00
Sergey Lipskiy
6277ea1ca7 Enable bilinear filter for sprites. 2015-05-13 10:14:32 +06:00
Sergey Lipskiy
799638c29b Fix TextureCache::_updateBackground():
Load texture image with its actual size, not cast to power of two sizes.
This allows to wrap it easily.
2015-05-13 10:14:23 +06:00
Sergey Lipskiy
e4fa0b5717 Mip-mapping! 2015-05-13 10:13:43 +06:00