Commit graph

320 commits

Author SHA1 Message Date
KillzXGaming
c47d9bc2bc Fix bfres shape flags, msbt text fixes, and extracting archive fixes 2019-09-19 20:11:21 -04:00
KillzXGaming
314d1e7c20 Some layout editor improvments.
Convert white colors to srgb for more accurate colors.
Fix displaying bflims with using bc4 alpha and no alpha.
Preview alpha theshhold for color blending.
Fix window pane alpha if frame vertex colors are disabled.
2019-09-19 18:02:10 -04:00
KillzXGaming
6ec78fa2c5 More layout rendering fixes 2019-09-18 20:50:52 -04:00
KillzXGaming
0f19107dd2 More layout editor improvements
Window panes render near perfectly aside from materials. Update fixes the texture flip flags and other uv fixes,
Fixed UV transformation issues. Commonly when a uv is suppose to be centered but it shifts wrong.
Add basic white and black color blending.
Fix LA8 texture rendering.
Start on BRLAN support.
2019-09-18 18:23:27 -04:00
KillzXGaming
3f142c4e81 Add ASTC support for XTX 2019-09-18 17:43:17 -04:00
KillzXGaming
36a09eafdd Zlib fixes 2019-09-18 17:02:25 -04:00
KillzXGaming
4b83f9f17c Fix build errors 2019-09-17 19:30:07 -04:00
KillzXGaming
4133289486 More compression fixes 2019-09-17 17:42:39 -04:00
KillzXGaming
84c81fec96 Add in game render preview setting 2019-09-16 21:02:00 -04:00
KillzXGaming
902bfc4d98 Fix rendering horizontal windows no content 2019-09-16 20:32:33 -04:00
KillzXGaming
7677822665 Few more quick rendering fixes 2019-09-16 20:13:07 -04:00
KillzXGaming
1198e3de6d More layout editor improvements.
Fixed texture coordinate transformations from materials.
Window panes of all types, horizinal, around, and 1,4, and 8 frames are all supported.
Note window pane uv coordinates are very wip, and need proper flipping and transformation from the flags.
Fix bflim editor issues with filling contents.
2019-09-16 19:56:41 -04:00
KillzXGaming
585845ae2d Improve tvol support 2019-09-15 19:40:50 -04:00
KillzXGaming
0c126e4155 More improvements.
Rewrote the compression handling from scatch. It's way easier and cleaner to add new formats code wise as it's handled like file formats.
Added wip TVOL support (Touhou Azure Reflections)
Added XCI support. Note I plan to improve NSP, XCI, NCA, etc later for exefs exporting.
The compression rework now compresses via streams, so files get decompressed properly within archives as streams.
Added hyrule warriors bin.gz compression along with archive rebuilding. Note i do not have texture rebuilding done just yet.
2019-09-15 19:13:01 -04:00
KillzXGaming
4d72a725c5 Improve archives for FE3H.
Can be opened within an archive like an NSP.
Will work properly on the existing data0/data1.bin names
2019-09-15 16:01:50 -04:00
KillzXGaming
3bfbafbada Fix texture animation playback flickering 2019-09-14 20:11:08 -04:00
KillzXGaming
435fda17f1 Add support for custom block height log for WTB textures 2019-09-13 19:42:16 -04:00
KillzXGaming
891e5e0bc3 Allow loading custom fonts for msbt.
Note bffnt is not loadable for this yet because idk how to create fonts from bitmaps yet for the text editor.
2019-09-12 21:26:11 -04:00
KillzXGaming
90e7853412 Kcl library fixes 2019-09-12 21:09:39 -04:00
KillzXGaming
d350821e27 Preview BFTTF fonts 2019-09-12 19:57:24 -04:00
KillzXGaming
8372179173 Support negative start frames for bflan 2019-09-12 19:34:12 -04:00
KillzXGaming
c38ae37562 Finish bflan saving and more editor improvements. 2019-09-12 18:52:47 -04:00
KillzXGaming
149cae5a0c Add proper panel toggle by type. 2019-09-11 19:52:57 -04:00
KillzXGaming
0a5b673d35 Adjust how window panes load frame sizes to prevent divide zero errors. 2019-09-11 19:42:01 -04:00
KillzXGaming
f8d8d0ea30 Bflyt loading fixes 2019-09-11 19:23:17 -04:00
KillzXGaming
6fdafddfdc Add support for previewing bffnt with text.
Thanks to EFE as it's basically like how CFFNT works.
2019-09-11 16:52:06 -04:00
KillzXGaming
82761a6120 bflan saving progress 2019-09-10 21:25:30 -04:00
KillzXGaming
674917f326 Bflan fixes 2019-09-10 21:04:39 -04:00
KillzXGaming
52bb137db5 Support previewing cubemaps for WTB 2019-09-10 19:00:57 -04:00
KillzXGaming
32fb5444e7 Add all the newest changes.
Add support for bayonetta/astral chain dat.
Add support for darc archives.
Support previewing window panes for bflyt (1 frame atm with around kind)
Add bflan reading. Saving needs more testing and will be enabled soon.
Bflyt editor will keep the editor open within an archive when saved.
A custom dialog will be added soon to customize saving parameters.
Bflims will be loaded if in the same folder as the bflyt when opened.
2019-09-10 18:42:48 -04:00
KillzXGaming
0a3fada53a Fix U8 archive not loading all nodes 2019-09-10 18:04:38 -04:00
KillzXGaming
636d294454 Update WTB support 2019-09-10 17:54:10 -04:00
KillzXGaming
1c065e9c27 More uv fixes 2019-09-09 18:56:35 -04:00
KillzXGaming
f72b855c1a Bflyt fixes to UVs. 2019-09-09 18:37:33 -04:00
KillzXGaming
9180a6cc75 BCLYT fixes 2019-09-08 21:05:51 -04:00
KillzXGaming
b05b526f3f Load BRLYT and BCLYT picture panes and bound boxes 2019-09-08 20:47:19 -04:00
KillzXGaming
aa374d6241 Check archives in the folder the file is for layout parts 2019-09-08 18:47:28 -04:00
KillzXGaming
c960404f42 Fix build errors one more time 2019-09-08 17:45:57 -04:00
KillzXGaming
ffb41778c3 Try to fix build again 2019-09-08 17:08:09 -04:00
KillzXGaming
9dc4aeccc5 Fix build errors please 2019-09-08 17:03:00 -04:00
KillzXGaming
ed78d46545 Tons more bflyt improvements
Opengl textures that are not power of 2 decode from ST decoder. This prevents those from not loading. (Common in SMM1, SMM2, and also BFLYT).
Bflyt displays bounding panes, and window panes display textures. Window panes still need more work for rendering.
Bflyt now uses custom shaders for more advancements with rendering. Legacy PCs should still work fine with this.
Fixed uv transforms for bflyt if they are negative, which flips them.
Fixed an issue loading bclyt layouts.
Fixed pane trnasformation issues. They are nearly perfect, but rotations for X and Y are off.
Parts now search for opened sarc archives.
Fixed an issue with some spaces not quite saving for txt1 panes. This may fix some saving issues, as most i've tried output back identically.
Fixed an issue displaying LA8 textures.
2019-09-08 15:15:42 -04:00
KillzXGaming
4e63b2f5a4 Some fixes
Fixed some byaml editor issues with applying changes.
Fixed some editors updating within iarchives if files are switched.
Fixed l8 textures displaying wrong.
2019-09-07 21:16:16 -04:00
KillzXGaming
a0e680e626 Alot of layout editor improvements
- Parent origins are now properly applied. Origin values are also correct (were previously being done wrong).
- Rotations on X and Y axis now work correctly.
- Selection shows a proper bounding if the rotation is rotated on the X or Y axis.
- Perspective and orthographic modes can be toggled be
tween in the layout editor.
Alpha influence is applied properly to picture boxes.
Adjustments to bflim loading, so it can load textures without an extension.
2019-09-06 19:12:39 -04:00
KillzXGaming
245a503a18 Fix little endian bin.gz 2019-09-05 21:52:10 -04:00
KillzXGaming
d62b5ab3a3 More accurate WTB formatting and support PKZ archives 2019-09-05 21:29:43 -04:00
KillzXGaming
ccbb566a88 Bflyt editor improvements 2019-09-05 16:24:03 -04:00
KillzXGaming
fce999e1fb Add bflyt file settings (endianness and version edits) 2019-09-04 14:10:17 -04:00
KillzXGaming
d5b9de852d Force decompression for bin.gz files 2019-09-03 19:32:20 -04:00
KillzXGaming
ebd7870c96 More USD1 editor improvements 2019-09-03 19:23:04 -04:00
KillzXGaming
4a92d0320a Some fixes.
USD1 fixes and also start to impliment an editor for USD1.
Fix L8 and LA8 displaying.
Fix channel compents. Temporaily uses the swizzle parameter. Todo, do these by shader.
Material saving fixes for bflyt version 8 and higher
2019-09-03 18:58:58 -04:00
KillzXGaming
1ded215e52 Fix batch replacing for bntx 2019-09-02 19:48:47 -04:00
KillzXGaming
711889ad26 More material improvements 2019-09-02 17:10:24 -04:00
KillzXGaming
e2ea36a7a9 Fix bflyt with multiple user data entries 2019-09-01 22:04:45 -04:00
KillzXGaming
5a52151f3a Fix build errors 2019-09-01 21:56:10 -04:00
KillzXGaming
18a64c528b Perfectly save bflyt files with parts 2019-09-01 20:41:04 -04:00
KillzXGaming
2f1468a83f More bflyt saving fixes 2019-09-01 20:06:46 -04:00
KillzXGaming
1b0eb20ce2 read and write USD1 section. Add support for reading/writing unknown sections for bflyt 2019-09-01 17:21:36 -04:00
KillzXGaming
e839ab4985 Some cleanup and parse parts for bflyt 2019-09-01 16:05:03 -04:00
KillzXGaming
f92195e8e1 Add wip bflyt saving.
Todo prts,usd, and bnd1 section is needed however
2019-09-01 13:02:48 -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
ca1b62e45e Support reading WTB textures. 2019-08-30 21:53:00 -04:00
KillzXGaming
b8135703ec Fully parse window panes. Fix v9 bflyt reading texture maps 2019-08-30 19:16:17 -04:00
KillzXGaming
e4cb00c237 Add BCLYT support. Some ram usage optmization for bflyt editor 2019-08-30 18:53:45 -04:00
KillzXGaming
0f587d2624 Fix botw switch sesetlist/ptcl saving 2019-08-29 20:51:41 -04:00
KillzXGaming
18ffeb980b Add option to create new layout editor. Sort the file selector. 2019-08-29 19:35:50 -04:00
KillzXGaming
7724a056f5 Tons more bflyt progress 2019-08-29 19:01:47 -04:00
KillzXGaming
1e4b18844f Add drag drop support for layout editor. Load textures per layout file 2019-08-29 18:05:44 -04:00
KillzXGaming
cb5be622b8 Reload the layout info properly and fix texture maps with -1 index 2019-08-29 17:17:24 -04:00
KillzXGaming
6076afa9d6 Update the editor properly if a material animation is replaced 2019-08-29 16:37:04 -04:00
KillzXGaming
668265dd13 Adjust the editor a bit to later add bclyt 2019-08-29 16:33:23 -04:00
KillzXGaming
47fc8b39cb Add latest bflyt progress and add some animation fixes 2019-08-29 15:45:32 -04:00
KillzXGaming
777ba269bc Fix chr0 issues 2019-08-28 16:21:37 -04:00
KillzXGaming
b4e2c070be Fix bfres library 2019-08-27 21:14:37 -04:00
KillzXGaming
d426bb490e Properly batch edit mip maps if multiple textures are selected in the importer 2019-08-27 19:03:01 -04:00
KillzXGaming
4d2d3502eb Fix build errors hopefully 2019-08-27 16:58:46 -04:00
KillzXGaming
bb77a80ad3 Add alot of bflyt progress 2019-08-27 16:38:06 -04:00
KillzXGaming
9c99e0fd3b More converter fixes. Conver the constants 2019-08-26 20:32:36 -04:00
KillzXGaming
2ce4ff14b9 Convert switch to wii u param anims and also convert yaml 2019-08-26 20:24:14 -04:00
KillzXGaming
4ea3e5967f Quick workaround, use floats for param yaml conversion 2019-08-26 19:49:44 -04:00
KillzXGaming
372f0b3c43 Export switch shader param data as yaml 2019-08-26 17:37:12 -04:00
KillzXGaming
4c49056b81 Some cleanup and remove gl shader logs notifcations 2019-08-26 16:46:41 -04:00
KillzXGaming
445bbe9f07 Fix rgb8 bflims encoding the wrong format (bgr8) 2019-08-25 21:24:22 -04:00
KillzXGaming
677de2c525 More fixes
Update 3ds ptcl.
Update 3ds ptcl for the new UI
Sharc supports SHIFT JIS encoding
Fix build errors
2019-08-25 21:11:10 -04:00
KillzXGaming
27abdb52fb One last swizzle fix for the image editor and bflim 2019-08-25 21:01:47 -04:00
KillzXGaming
374488c992 Keep bflim swizzle pattern on texture edit 2019-08-25 20:55:20 -04:00
KillzXGaming
71a7d06ad0 Merge branch 'master' of https://github.com/KillzXGaming/Switch-Toolbox 2019-08-25 20:49:24 -04:00
KillzXGaming
cea6f264cd Some swizzle pattern fixes (Also fixes bflim issues) 2019-08-25 20:46:19 -04:00
LockeExile
a8b96185ca resolve a few warnings 2019-08-25 13:08:32 -07:00
LockeExile
50bd4e2e65 fix rigid skins from csv 2019-08-25 13:07:43 -07:00
LockeExile
7fa31fdcd3 fix MapOriginalMaterials 2019-08-25 10:06:49 -07:00
KillzXGaming
503e4f964d
Fix some seek issues when writing switch PTCL 2019-08-21 21:10:13 -04:00
KillzXGaming
a6c691bd82 Some shader and sampler fixes 2019-08-21 17:08:24 -04:00
KillzXGaming
3993017ea6 Add GUI improvements for wii u ptcl (Note types are not parsed yet) 2019-08-20 17:38:59 -04:00
KillzXGaming
2bed8a49a6 Fix UV editor if no textures are present 2019-08-20 17:22:01 -04:00
KillzXGaming
957639f80d Adjust PTCL UI a bit for switch. Slowly add some stream stuff to archives. 2019-08-20 16:52:48 -04:00
KillzXGaming
e649ec13bf Fix emitter samplers for switch ptcl 2019-08-19 20:04:17 -04:00
KillzXGaming
2f8041bc93 Improve PTCL color editing and add texture icon previewing. 2019-08-19 18:28:59 -04:00
KillzXGaming
b311e6d012 Merge branch 'master' of https://github.com/KillzXGaming/Switch-Toolbox 2019-08-18 20:11:17 -04:00
KillzXGaming
33456d0295 More fixes
Limit the texture renderer to prevent memory issues.
Prevent textures to be loaded and bound if gl textures cannot load.
Fix gen bntx types (PC) from having inaccuate target set.
2019-08-18 20:10:29 -04:00
KillzXGaming
333e236142
Another ptcl adjustment 2019-08-18 18:40:23 -04:00