1
0
mirror of synced 2024-11-14 19:17:39 +01:00
Commit Graph

40 Commits

Author SHA1 Message Date
SMG
b161949a1f
Updated Tegra X1 swizzling and nutexb block heights (#419)
* avoid using LINQ for array slicing

* separate pitch and block linear swizzle functions

* use tegra_swizzle lib for swizzle/deswizzle for block linear

* clean up tegra swizzle and remove redundant allocation

* add an additional binary for 32 bit

* add check to force valid block heights

* fix sizes for 32 bit swizzle ffi

* simplify mipmap offsets, fix clamping blockHeightLog2

* prevent 0 values for width/height

* port updated nutexb block height function from Cross Mod

* update tegra_swizzle to include corrected block height functions
2021-11-25 18:15:17 -05:00
KillzXGaming
b673b3ee60 Revert "Revert "Revert "Quick fix for switch textures with strange resolutions."""
This reverts commit 2866344409.
2020-07-20 19:52:11 -04:00
KillzXGaming
2866344409 Revert "Revert "Quick fix for switch textures with strange resolutions.""
This reverts commit d7e8d9d50c.
2020-07-20 19:50:33 -04:00
KillzXGaming
d7e8d9d50c Revert "Quick fix for switch textures with strange resolutions."
This reverts commit cfbf39fff6.
2020-07-20 19:50:11 -04:00
KillzXGaming
cfbf39fff6 Quick fix for switch textures with strange resolutions. 2020-07-15 19:01:56 -04:00
KillzXGaming
1e3f2eebb6 Fixup mipsizes in nutexb 2020-07-10 21:29:29 -04:00
KillzXGaming
f4f71b95cf Fix errors 2020-07-09 14:30:20 -04:00
KillzXGaming
00a48d4b4a Some adjustments 2020-02-28 16:52:24 -05:00
KillzXGaming
5e4ec3d131 Start to add a base for multi select tree for layout editor 2020-02-17 19:54:50 -05:00
KillzXGaming
af8a8f17f6 Add latest files
Start on base for BLO. These will probably not be usable for awhile and is wip.. Currently aiming to support more varied layouts so this can help improve the code base.
Add BRFNT and BCFNT support. All merged as BXFNT class.
Fix bflim 3ds with LA4 textures.
Fix loading/saving part panes with property user data.
Fix texture coordinates to default centered UVs for layout panes with no textures.
Cleanup some files and directories.
2020-02-14 18:25:08 -05:00
KillzXGaming
6129ab2b4e Many more bug fixes and layout rendering improvements.
Add support for BCLAN.  (It's basically the same as BRLAN)
Fix saving for BRLAN.
Fix 3DS textures being upside down for BCLYT.
Improve BCLYT rendering.
Improve texture transforms for BCLYT and BFLYT.
Fix tev stage properties not appearing for BCLYT editor.
Fix C4 and C8 decoding.
2020-02-12 16:56:16 -05:00
KillzXGaming
89d5b621b2 Giant layout update. Support BRLYT and BCLYT files!
BRLYT can now be edited and saved.
BCLYT can now be edited and saved.
BRLYT shaders greatly improved using ported shaders from WiiLayoutEditor. Plan to expand upon it for more accuacte shader rendering.
Add support for saving per character transforms.
Add support for BNR files.
Fixed flags so orientation can be edited properly.
Fix issues decoding some gamecube textures.
Fix animation timeline breaking at times for multi selecting animations.
2020-02-11 19:19:23 -05:00
KillzXGaming
e39eec97cb Resize width/height to fit proper 3ds texture limits 2020-02-08 14:48:04 -05:00
KillzXGaming
e3c1525cfe Fix L4 and A4 alpha issues 2020-02-08 14:40:20 -05:00
KillzXGaming
8534f6862c Fix L4 encoding 2020-02-08 14:36:16 -05:00
KillzXGaming
bfc02c117d Add ETC1 compressor 2020-02-08 14:06:01 -05:00
KillzXGaming
238b6f60fb Add CTXB rebuilding and editing (encoding very WIP) 2020-02-08 12:03:37 -05:00
KillzXGaming
706c03f4ac Update material presets 2020-01-26 16:58:13 -05:00
KillzXGaming
f7d674fe18 Start to impliment backend for depth/3D textures 2020-01-14 19:19:02 -05:00
KillzXGaming
435fda17f1 Add support for custom block height log for WTB textures 2019-09-13 19:42:16 -04:00
KillzXGaming
bb7d9d88b1 A few fixes and additions.
Adjust drag and drop support a bit from archives so it doesn't have any issues.
Added BRLYT viewing (very basic)
Fix U8 not adding all the directories. Hopefully any U8 will work correctly now
2019-08-31 17:24:05 -04:00
KillzXGaming
27abdb52fb One last swizzle fix for the image editor and bflim 2019-08-25 21:01:47 -04:00
KillzXGaming
cea6f264cd Some swizzle pattern fixes (Also fixes bflim issues) 2019-08-25 20:46:19 -04:00
KillzXGaming
e0dc6bd12d KCL cleanup 2019-08-08 19:58:14 -04:00
KillzXGaming
9df93a02af KCL library fixes 2019-08-08 18:04:15 -04:00
KillzXGaming
855037d21c Fix TXE decoding with bad image sizes 2019-08-08 17:12:11 -04:00
KillzXGaming
79d78f64ad Textue importer improvements and some gui fixes 2019-08-08 15:26:08 -04:00
KillzXGaming
fb2648205b Parse CTPK 2019-08-07 21:04:44 -04:00
KillzXGaming
9db860f0b8 Start to implement 3ds texture encoding. (Todo ETC1 and L4/A4) 2019-08-07 17:15:31 -04:00
KillzXGaming
714be7d126 Fix bti 2019-08-05 21:08:04 -04:00
KillzXGaming
10a3aa5017 Add suoport for SMB TPL 2019-08-04 13:31:16 -04:00
JohnFiddleystein
dd33b5e6c5 Add support for basic BTI and TXE 2019-08-04 14:15:34 +01:00
KillzXGaming
1ab2164339 Rewrite all the texture modes to use proper enums 2019-08-03 15:23:05 -04:00
KillzXGaming
e1d9dff336 Force ptcl for wii u to generate mip offsets 2019-07-29 15:05:50 -04:00
KillzXGaming
f58efacbef Automatically generate GX2 mipoffsets if null or empty 2019-07-29 14:55:43 -04:00
KillzXGaming
df9641faab Bfres library fixes, and some form fixes 2019-07-26 15:35:15 -04:00
KillzXGaming
419a76a508 Fix btye order for image decoding gc images 2019-07-19 17:24:54 -04:00
KillzXGaming
c0c1e621a4 A few additions and fixes
Add custom color option for image editor background.
Start on character exporting for bffnt. as xlor.
Fix sarc hashes.
Fix bflims in archive editors
2019-07-19 15:11:55 -04:00
KillzXGaming
6cfb6a214f Adjust the toolbox name to no longer include "Switch" in it. 2019-07-16 17:35:21 -04:00
KillzXGaming
43081a4086 Texture decoder cleanup. Also fix wii u texture patterns with null issues 2019-07-16 16:54:46 -04:00