1
0
mirror of synced 2024-11-15 03:27:38 +01:00
Commit Graph

153 Commits

Author SHA1 Message Date
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
3769cc12c2 EFFN ptcl fixes and add saving back 2019-08-17 09:58:17 -04:00
KillzXGaming
2264c8117b Add support for v4 PACx files 2019-08-15 17:20:14 -04:00
KillzXGaming
9e3556a5f9 More additions that seem ready for use,
Basic NCCH support, only romfs previewing for easy ripping and testing for file formats. Writing back and more improvements planned soon.
Save BTI files back.
Add structure based parsing from Kuriimu's IO extension. This will be expanded upon later to parse offsets and other things easier.
2019-08-09 18:21:16 -04:00
KillzXGaming
e5bb9fa9d5 Use file streams for non archive based writing. Allow giant file saving from opened streams. 2019-08-06 17:35:18 -04:00
KillzXGaming
e0b8ca5e27 Parse cmb materials almost completely 2019-08-02 21:24:13 -04:00
KillzXGaming
9e5e8d72b5 ZSI progress 2019-08-02 20:08:51 -04:00
KillzXGaming
f4e4afa2f7 Cleanup. Start to impliment texture preview icons in tree 2019-08-01 17:47:35 -04:00
KillzXGaming
25bc66e505 Support loading multiple IArchive and node types from a single format within an archive file 2019-07-31 19:45:03 -04:00
KillzXGaming
2df6d35d17 Add interface to not dispose data (for NSP, NCA, XCI, etc) 2019-07-31 19:33:45 -04:00
KillzXGaming
dd273d88ed Rework ptcl color handling so it works better 2019-07-29 11:19:34 -04:00
KillzXGaming
e0df03cc26 Wip zar, gar,, and more rarc saving progress 2019-07-25 16:49:04 -04:00
KillzXGaming
40c0fcae11 Try to fix the file loader disposing streams 2019-07-25 14:31:33 -04:00
KillzXGaming
1fb66d4490 Always dispose file streams once everything is loaded 2019-07-24 21:15:21 -04:00
KillzXGaming
cd0e3377b4 Sarc fixes and more windows 7 fixes 2019-07-24 15:10:05 -04:00
KillzXGaming
1429a00178 More fixes and additions
Archives now use a link list for archive infos and treenodes. Handling replaced treenodes is easier and fixes renaming issues if a file was opened and renamed.
More LM2 archive improvements, with more chunk loading.
2019-07-22 15:06:49 -04:00
KillzXGaming
4428dd20ef File check fixes if the position is too big for base stream 2019-07-18 17:14:09 -04:00
KillzXGaming
80655a6aaa Parse cmap sections, and add a block check 2019-07-17 19:01:06 -04:00
KillzXGaming
6cfb6a214f Adjust the toolbox name to no longer include "Switch" in it. 2019-07-16 17:35:21 -04:00
KillzXGaming
ea26ebc82f Attribute fixes for bfres and gmx 2019-07-15 15:41:02 -04:00
KillzXGaming
f84753aa11 Add viewer for TPHD file tables 2019-07-14 17:36:52 -04:00
KillzXGaming
a28606e150 Fix some ptcl saving issues from bfres having null data 2019-07-10 19:21:53 -04:00
KillzXGaming
5682def8b7 Another bone fix 2019-07-05 20:41:55 -04:00
KillzXGaming
82201ffd4c Compress files with zstd in archives 2019-07-05 19:06:24 -04:00
KillzXGaming
cfec92db18 Fix compressing files in archives 2019-07-05 19:02:18 -04:00
KillzXGaming
eab5c3ee55 Make batch exporting for all supported wii u texture types 2019-07-05 16:55:50 -04:00
KillzXGaming
ab80051646 More additions and fixes.
Added GMX rendering (note explodes atm)
Fixed mario tennis aces/ultra compression (now uses external dll from Simon)
Fixed a bug where file sizes for IArchives (TMPK and ME01) would not adjust on save. casuing corrupted file data.
2019-07-05 14:45:16 -04:00
KillzXGaming
4cef869688 Save GMX files back 2019-07-04 21:17:09 -04:00
KillzXGaming
9d203da716 Add option to automatically compress on save with no notification 2019-07-03 12:56:28 -04:00
KillzXGaming
2a99dd3308 Decompress zlib files that start after 4 bytes 2019-07-02 21:39:19 -04:00
KillzXGaming
c30f758f8d A few fixes
Fix the UV editor not applying saved UV data.
Start to add basic LM2 dict file support.
Start to add GFA support (todo need BPE compression)
2019-07-02 16:12:23 -04:00
KillzXGaming
42f6b670e0 Some fixes.
Fix zlib compression corrupting the file.
Fix sarc and msbt format descriptions.
Adjust when a file  in an IArchiveFile gets saved.
Porgress on MTA 0X50 compression type. not finished atm.
Start on ICompressionFormat interface. Will soon be the way compression formats are all handled.
2019-07-01 15:44:19 -04:00
KillzXGaming
d99638e6ec magic check ZCMP 2019-06-30 20:59:11 -04:00
KillzXGaming
44dea5fefd Some more fixes for decoding gx2 2019-06-30 18:24:23 -04:00
KillzXGaming
8767898577 Properly decompress target file on batch operations 2019-06-28 20:42:49 -04:00
KillzXGaming
c1f779ebb7 Detect zlib by magic 2019-06-28 19:24:28 -04:00
KillzXGaming
47ca70a015 Fix 0.9 bfres with scene animations. Add toggle for direct x tex decoder 2019-06-27 14:38:13 -04:00
KillzXGaming
27d4b670d8 Fix detecting zstd compression. Add NCA and IStorage support 2019-06-26 12:48:54 -04:00
KillzXGaming
7ad04eedad Fixes for batch bflim 2019-06-25 21:23:00 -04:00
KillzXGaming
059e9d9ecc Auto detect lz4 compression on open files and also sdf 2019-06-22 09:26:45 -04:00
KillzXGaming
285eb3a028 Quick fix 2019-06-21 22:50:12 -04:00
KillzXGaming
067244555a Improve gfmdl support. Fix raw astc exporting 2019-06-21 18:18:22 -04:00
KillzXGaming
15154d75b1 Add a few wip things 2019-06-18 20:52:09 -04:00
KillzXGaming
b8aad096ff Update image formats a bit. Add a fill editor option so editors update properly for archive viewer. 2019-06-17 19:19:27 -04:00
KillzXGaming
8bbe51bb9c Support for decompressing carcs 2019-06-15 20:50:26 -04:00
KillzXGaming
5b156b8c24 Reinstall assimp to fix errors 2019-06-15 14:26:24 -04:00
KillzXGaming
8f18e77ab7 Fix RSTB sizes not using decompressed size 2019-06-15 11:04:29 -04:00
KillzXGaming
1b2de8c7cf Account fot tex2 files for RSTB size fixing 2019-06-15 10:44:22 -04:00
KillzXGaming
a8698a2ef4 Add LZARC support and a few random fixes. 2019-06-14 17:23:02 -04:00
KillzXGaming
0c11a29e03 Add MKAGPDX PAC support 2019-06-13 17:31:35 -04:00
KillzXGaming
0384191687 Fix file name for tphd table 2019-06-12 17:41:03 -04:00
KillzXGaming
376657825c Dispose reader streams for file tables once finsihed 2019-06-12 17:40:15 -04:00
KillzXGaming
ef1550facc Save the file first incase the table fails 2019-06-12 17:28:06 -04:00
KillzXGaming
4045581579 Fix any more issues with tphd file table 2019-06-11 21:20:50 -04:00
KillzXGaming
749ab4e150 Fix error 2019-06-11 21:10:23 -04:00
KillzXGaming
0b87737eac Now twilight princess file table works 2019-06-11 20:59:53 -04:00
KillzXGaming
35f547e9a7 Nearly working now 2019-06-11 19:51:27 -04:00
KillzXGaming
bd7a173876 Progress on twilight princess hd file table 2019-06-11 19:35:02 -04:00
KillzXGaming
9e132a68d3 More RSTB fixes 2019-06-11 18:05:07 -04:00
KillzXGaming
01344bdf68 Adjust save notification to be what it was before until newer one is more polished 2019-06-11 15:43:45 -04:00
KillzXGaming
41adcfffc1 Tons more RSTB progress (Note file in archives don't work yet) 2019-06-11 15:39:23 -04:00
KillzXGaming
e22005bbea Start to impliment RSTB table. 2019-06-10 20:54:23 -04:00
KillzXGaming
7845840209 Some more fixes to magic checks 2019-06-01 10:23:06 -04:00
KillzXGaming
28d00d6a16 Add extension checks for gfpak 2019-06-01 09:49:33 -04:00
KillzXGaming
01ae391de6 Add NUSHDB shader file. 2019-05-31 19:08:55 -04:00
KillzXGaming
d1c32844d1 Fix skeleton issues. More archive improvement. 2019-05-29 14:24:24 -04:00
KillzXGaming
15a59166c5 Fix illegal chatacters for folder extracting 2019-05-28 17:13:01 -04:00
KillzXGaming
aa314095c7 Add a better method 2019-05-28 16:55:17 -04:00
KillzXGaming
be19e8e2e2 Add archive check for extracting files with illegal characters 2019-05-28 16:53:02 -04:00
KillzXGaming
6999a6debf Add SP2 archive stuff 2019-05-28 16:11:40 -04:00
KillzXGaming
bccb8f3af4 Optmize model/shader loading for bfres. Save block setting to 1MB for KSA to not crash 2019-05-20 16:01:43 -04:00
KillzXGaming
ffdb042c3f Improve zlib support. Add NXARC 2019-05-18 10:06:09 -04:00
KillzXGaming
cd57a856fc Add improvements from yesterday.
PBR shader slghtly improved.
Skyobx toggle now works while viewport is active,
Cubemaps now have a check wether or not the file given is a valid cube map dds.
Update column sizing so forms load much faster
Option to right click and clear paths in settings if set
2019-05-15 15:35:05 -04:00
KillzXGaming
f2439f2fdc More image editor improvements
Array textures can be exported to DDS.
Specific channels can be edited.
Uncompressed formats for dds greatly improved.
Array textures can be exported from non dds formats as multiple images.
2019-05-14 15:12:26 -04:00
KillzXGaming
67d1b6920a Some improvements from yesterday. Start to improve uv editor.
Basic tex 3ds support
BC4 textures will be rendered grayscale in opengl (not using opengl decoder)
Fix a few format issues with 3ds
Mip total method is one function in STGeneric texture
Weight format default to floats again until i find a proper fix for the 888 unform format.
2019-05-13 15:29:40 -04:00
KillzXGaming
7e855caa47 Start to save bffnt back. Not finished yet 2019-05-12 13:02:39 -04:00
KillzXGaming
6f1a8ab816 Add all the working BCRES stuff. 2019-05-09 14:49:11 -04:00
KillzXGaming
e744b3de26 Prepare some archive format rework 2019-05-08 16:28:04 -04:00
KillzXGaming
017c1ab1e3 More fixes to 3ds formats. Fix gzip decompressing giving wrong size. 2019-05-04 12:03:07 -04:00
KillzXGaming
4bc037e681 Fix files not compressing even if the dialog is okayed. 2019-05-03 21:08:29 -04:00
KillzXGaming
6d13637654 Save GRTF section properly for switch ptcl 2019-05-01 19:45:50 -04:00
KillzXGaming
79c2d3b384 Load and save the decompressed file size table. 2019-05-01 18:49:44 -04:00
KillzXGaming
84c643d667 Store the compressed and decompressed sizes 2019-05-01 18:08:09 -04:00
KillzXGaming
fd4e3f4853 Add GTX editing/saving back. 2019-05-01 15:38:14 -04:00
KillzXGaming
9b1d36666b Add option to clear LOD meshes 2019-04-30 21:15:56 -04:00
KillzXGaming
18d891e1a0 Add support for .z zlibbed files 2019-04-30 19:38:39 -04:00
KillzXGaming
f2c50f7dd7 Simpify BNTX deswizzling and start to do XTX saving. 2019-04-30 15:25:42 -04:00
KillzXGaming
74973a24bb Add more fixes and improvements 2019-04-22 17:52:21 -04:00
KillzXGaming
7bea95b199 Update to the latest opengl framework and more bug fixes 2019-04-05 19:47:21 -04:00
KillzXGaming
01fda68f93 Fix bone issues and skeleton importing 2019-03-27 14:50:33 -04:00
KillzXGaming
d28a032b24 Fix Wii U model imports crashing 2019-03-26 21:08:52 -04:00
KillzXGaming
356c2eb93f Fix LZ4F typo which gave to too many crashes :( 2019-03-25 21:45:25 -04:00
KillzXGaming
ba760057dd Fix LZ4F decompression in menu 2019-03-24 20:19:40 -04:00
KillzXGaming
cba330d41d Fix LZ4F compression for KSA 2019-03-24 19:45:00 -04:00
KillzXGaming
d1f03b161f Add files for the new one.
Rework UI from scratch with proper themes and custom controls. MDI windows are now used for workspaces, comparing docs, and multiple usages. Tabs organise multiple workspaces and you can keep mdi windows maximized if you want to only use tabs. Themes currently include dark and white theme but plan to have XML files with list of color and styles
Alot of things optimized. UI is very fast and snappy now
Dae rigging fixed.
Dae bones can be imported.
Dae with textures can be imported and exported to a folder
Custom sampler editor for sampler data.
Texture refs, shader options, params, render info, and basically all material data can be added/removed and edited
User data editor
Update opengl framework by JuPaHe64 to the newest. Includes an origintation cube, multiple models in a scene, and many improvements
Skeleton can be viewed
GFPAK with some fixes in saving
NUTEXB has proper mip map viewing
PTCL Editor (Wii U and Switch). Can edit colors ( Wii U) and view textures. Also EFFN files in smash ultimate can be previewed
Files can be associated with the program and opened with on clicking them
ASTC textures can be viewed
UVs can be viewed. Includes wrap modes and also translating and scaling for some basic edits
Textures use a new editor. It includes channel viewing and some new editing options
Fixed black textures on some wii u bfres
Fixed saving sarcs in sarcs
Shortcut keys have been added in. CTRL + S can save the active file in the currently used window
Fix more issues with bfres crashing
File - New includes BNTX for creating new bntx files from scatch
Raw shader binaries can be extracted from bnsh and bfsha. Yuzu and Ryujinx can decompile these
Sharc files can have source data previewed and shader programs in XML
Aamp v1 and v2 data can be previewed. v1 can be edited and saved atm, v2 will be at a later update
Byaml uses it's own editor instead of a seperate window for easy saving within sarcs
Archives have a hex viewer
Dae exporting greatly improved and can export rigged meshes
Scene, shader param, srt, color, and texture pattern animations can all be previewed (in a list)
Memory usage is greatly improved
Narc (Nitro Archives) can be viewed and extracted.
Fixed importing TGA images
Support importing ASTC textures for bntx
Added in PBR lighting for bfres from my implimentaion in forge
Added gradient background for viewport. This can be edited in the settings
Added skybox background option for viewport. Can load cubemaps
Added grid with customizable cells for viewport.
DDS decompression no longer requires Direct X tex.
Zlib decompression has been improved for opening files that use it
Rigid bones are properly ordered on importing a mesh. May fix some exploding issues.
Endianness for KCL can be toggled for saving. Will be set to what it was using orignally
Tangents can be filled with a constant value. Will allow them to not cause seams nor flat lighting however normal maps may not work as good
Vertex buffers can be added and removed. Also re encoded
Parameters now use drop down panels with values for easier editing
Reworked the bone editor. Everything for a bone can be fully edited now besides the index, billboard index and parent index  which get set automatically
Fixed animation scaling for skeletal animations finally!
Textures can be loaded in a tab now with thumbnail displaying for easy real time edits while previewing in the viewport

Fixed support for audio files to be big endian in BARS
Textures for switch now use their own folder. You can easily add textures to this and add textures to bfres that have no bntx. If there are no textures then the bfres will automatically not have one on save.
Animations are split into multiple sub sections for switch's material animation for easier access
Bfres for wii u has better binary exporting and is fully compatiable with Wexos Toolbox (to and from)
Every section can be added in as new for both wii u and switch.
Every section can be renamed properly and mostly everything can be edited. (Key frame editing and a more in depth curve editor later)
Added option to copy UV channel
Bone weights can be previewed
Tons of fixes for the switch bfres library with more games working. Splatoon 2 (more work now), BOTW, Kirby Star Allies, and more!
Fixed 3.3 Wii U bfres from not opening
Wii U Sharcfb files can have shader program data previewed (XML)

And possibly alot more things i missed! All this is still experimental but will improve over the next few weeks
2019-03-23 12:55:09 -04:00
KillzXGaming
00875d5aec Thanos the old tool. 2019-03-23 12:52:50 -04:00
KillzXGaming
2c8f5d2c6c Combine texture methods and functions into one main class. 2018-12-12 21:28:57 -05:00
KillzXGaming
716d1c4520 More clean up and additions
- Starting to make all texture classes use STGenericTexture. This will make all functions usable between each one and converting through other classes much easier.
- Many bug fixes to the texture importer like duped texture importing, dds opening the window, index out of range issues, etc.
- Start on titlebar information.
- Start on ASTC texture format support.
- Support TGA images.
- Support FTEX importing and saving properly.
- Export models properly along with textures (with generic classes). Todo, support rigs and bones.
2018-12-10 18:48:51 -05:00
KillzXGaming
d96f4dec43 Cleanup with new open/save methods. Also add gtx rebuilding. 2018-12-04 21:40:03 -05:00
KillzXGaming
5cfec193bf Rework GTX swizzle thanks to abood and rebuild nutexb 2018-11-30 22:00:43 -05:00