Commit graph

301 commits

Author SHA1 Message Date
KillzXGaming
67864cd64f Fix assimp issues please and add lock check for settings current frame 2019-04-01 18:14:13 -04:00
KillzXGaming
194d032798 Reset menus on load 2019-04-01 16:44:23 -04:00
KillzXGaming
49a803584c Cleanup bntx context menus 2019-04-01 16:43:27 -04:00
KillzXGaming
325f1e25f6 Add basic file removale. Will be improved later 2019-04-01 16:19:07 -04:00
KillzXGaming
efd6d6613e Fix errors 2019-04-01 15:35:20 -04:00
KillzXGaming
2a76b8216c Comment out some stuff because of appveyor atm 2019-04-01 15:33:11 -04:00
KillzXGaming
c908e24517 Add some KCL structs to new file for easier reading and writing 2019-04-01 15:30:50 -04:00
KillzXGaming
d411b5bb82 Change a thing 2019-04-01 15:20:32 -04:00
KillzXGaming
dba119ba6e Add BNTX node for bffnt sheets 2019-04-01 15:16:07 -04:00
KillzXGaming
1ec2c26c35 Fix skeleton replacing on wii u 2019-04-01 15:13:30 -04:00
KillzXGaming
7bd00f6de7 Fix dae rigging for good now 2019-04-01 15:04:16 -04:00
KillzXGaming
c98162622f Fix BC5S dds importing. 2019-03-31 19:18:14 -04:00
KillzXGaming
decd83c487 More timeline fixes 2019-03-31 18:23:41 -04:00
KillzXGaming
0c5d53ae61 Fix bone transforms and names from parent skeleton generated by blender 2019-03-31 17:43:19 -04:00
KillzXGaming
2b0957fa53 Transform rigged stuff properly 2019-03-31 17:10:03 -04:00
KillzXGaming
b87cc40857 Fix hash only sarcs from saving 2019-03-31 17:06:12 -04:00
KillzXGaming
831efdb027 Fix one more dll 2019-03-31 16:31:40 -04:00
KillzXGaming
9e44973f72 Cleanup dll mess 2019-03-31 16:22:01 -04:00
KillzXGaming
d8e335f8c0 Copy direct tex folders properly 2019-03-31 15:58:04 -04:00
KillzXGaming
f20e1d26c9 Cleanup some stuff 2019-03-31 15:41:29 -04:00
KillzXGaming
a773074933 Fix appveyor issues 2019-03-31 15:29:36 -04:00
KillzXGaming
3a10c4cf43 More timeline fixes 2019-03-31 14:28:00 -04:00
KillzXGaming
9c439f099d Massive speed improvement to bfres saving with animations + bug fixes
Fixed bfres from taking too long to save with 100s or even 1000s of animations. From 30 - 70 minutes, to over 8- 20 seconds!
Fixed weights and buffers not importing properly.
Fixed byaml editor's dialog buttons improperly placed on resize.
2019-03-30 21:54:19 -04:00
KillzXGaming
db13c0d8b7 Check determinant to prevent singular matrix issue 2019-03-30 17:12:08 -04:00
KillzXGaming
7238de5d37 Set DDS depth count for generic textures to 1. 2019-03-30 16:43:07 -04:00
KillzXGaming
d384a5f8ba Fix it again. This time it works properly 2019-03-30 16:02:30 -04:00
KillzXGaming
383dc2add1 Fix issue with models being hidden causing lag 2019-03-30 15:57:01 -04:00
KillzXGaming
46b9587908 Update container list for texture loader 2019-03-30 14:55:04 -04:00
KillzXGaming
b1db621786 Fix context menu themes 2019-03-30 14:43:49 -04:00
KillzXGaming
48c7477467 Increase opening bfres with animations significantly!
Load context menus for FSKA only when expanded .
2019-03-30 14:40:46 -04:00
KillzXGaming
9be1d645f0 Fix crash when scrolling through 100s of textures in importer 2019-03-30 13:21:01 -04:00
KillzXGaming
70f1f971d9 More fixes to timleline 2019-03-30 12:26:38 -04:00
KillzXGaming
525d6d0b27 Use generic format from DDS for converting formats instead. 2019-03-30 11:24:52 -04:00
KillzXGaming
3821db69d5 Fix all the DX10 BCN formats for dds imports 2019-03-30 11:20:56 -04:00
KillzXGaming
8a7dde7a2f Merge branch 'master' of https://github.com/KillzXGaming/Switch-Toolbox 2019-03-30 11:18:22 -04:00
KillzXGaming
2ee73e7857 Add new timeline by JuPaHe64 2019-03-30 11:18:15 -04:00
KillzXGaming
4b681ef745
Fix be dx10 textures 2019-03-29 23:43:01 -04:00
KillzXGaming
3fb31a0130
Fix bc1 dx10 textures 2019-03-29 23:38:25 -04:00
KillzXGaming
3d63151626 Port temporary SMD animation export code from forge for testing 2019-03-29 21:57:31 -04:00
KillzXGaming
adae13380f Remove zip after extracted for updater 2019-03-29 21:38:01 -04:00
KillzXGaming
ce7a1736a2 Fix appveyor not copying dll 2019-03-29 21:29:46 -04:00
KillzXGaming
201a0ca5a5 More KCL fixes for switching between files 2019-03-29 21:20:39 -04:00
KillzXGaming
240cc5f0b3 Apply the kcl viewport to work better with bfres 2019-03-29 21:05:53 -04:00
KillzXGaming
29e9a0533d Fix dae exporting weights FINALLY! 2019-03-29 19:21:59 -04:00
KillzXGaming
5d0254a5e2 Double click to hide contents of the timeline, console, and texture viewer 2019-03-29 18:57:54 -04:00
KillzXGaming
8b2c8466fc Fix non generic audio files not loading the audio player, 2019-03-29 18:36:30 -04:00
KillzXGaming
6afce74460 Skip textures with the same data position 2019-03-29 18:18:29 -04:00
KillzXGaming
93830c84e1 Load ptcl textures to editor when clicked 2019-03-29 18:07:51 -04:00
KillzXGaming
c34d021ddc Fix wii u textures for ptcl not loading 2019-03-29 18:04:18 -04:00
KillzXGaming
3c9e93b411 Add texture names to ptcl wii u textures 2019-03-29 17:53:49 -04:00
KillzXGaming
92642d165b Add texture folder for Wii U PTCL 2019-03-29 17:48:06 -04:00
KillzXGaming
2bcae8c2eb Check for unused names for unswizzled nutexb types 2019-03-29 17:36:54 -04:00
KillzXGaming
50c0c0bfe8 Check for IEditors for archive file forms. 2019-03-29 16:43:08 -04:00
KillzXGaming
76a82effe7 Fix bfres not opening in archives. 2019-03-29 16:37:20 -04:00
KillzXGaming
71f9ea0276 Fix material removal if not mapped 2019-03-29 16:22:49 -04:00
KillzXGaming
6c676cf410 Add material deletion. 2019-03-29 16:21:07 -04:00
KillzXGaming
d5f50d91b8 More fixes to UI and file saving. Also add in bflim editing.
Fixed the shader param editor not adjusting the height for float4 types.
Fixed the shape editor not adjusting some lists properly.
Fixed hash based sarcs not saving right (menu.szs for example).
Fixed bflim sarc alignment from being corrupted.
Add alignment for effect file formats in sarc.
Add bflim to the texture loader in sarc for batch previewing/edits
2019-03-29 15:28:35 -04:00
KillzXGaming
e4ccae2c93 Dispose some writers so the file isn't active anymore 2019-03-28 21:28:36 -04:00
KillzXGaming
088f9a00e2 Use floats for weights to help prevent exploding since IDK why 8888_unorm breaks :( 2019-03-28 21:13:15 -04:00
KillzXGaming
8d1b5a3674 Fix nutexb saving from edits with the image editor 2019-03-28 20:58:56 -04:00
KillzXGaming
52d8b06d23 Fix objects from not updating 2019-03-28 20:22:22 -04:00
KillzXGaming
a1606187b4 Add option to hide specific bones 2019-03-28 20:19:13 -04:00
KillzXGaming
8cc5e13ace Option to add active files to editor instead of new tab. Fix crash from no objects. 2019-03-28 19:48:56 -04:00
KillzXGaming
210afaae71 Use listview again for nutexb to preview multiple textures better 2019-03-28 18:29:06 -04:00
KillzXGaming
2707c72182 Fix updater not opening exe properly 2019-03-28 18:11:04 -04:00
KillzXGaming
72f80eb8a2 Fix Y and Z axis bone positions swapped for the bone editor. 2019-03-28 17:32:22 -04:00
KillzXGaming
718ddfaea3 Add right click to close tabs, and double click title bar to maxamize 2019-03-28 17:28:39 -04:00
KillzXGaming
8a74942ead Cleanup assimp exporter 2019-03-28 17:05:49 -04:00
KillzXGaming
7ead89f039 Remove update notifcation for an icon to remove nagging 2019-03-28 16:39:23 -04:00
KillzXGaming
183b093997 Fix model importer with proper theme style. 2019-03-28 16:24:00 -04:00
KillzXGaming
025d186c66 Update modle importer window to adjust the theme style 2019-03-28 16:15:01 -04:00
KillzXGaming
d37652aaae Add appveyor config 2019-03-27 21:05:01 -04:00
KillzXGaming
9c8bb26a8f Another error fix 2019-03-27 19:20:29 -04:00
KillzXGaming
d4be5b1e2f Please build 2019-03-27 19:17:54 -04:00
KillzXGaming
c879a1299c Remove framework files and use a .dll for now. Will add submodule later 2019-03-27 19:08:58 -04:00
KillzXGaming
7848428ad5 Clear window buttons when mdi window is closed 2019-03-27 18:54:25 -04:00
KillzXGaming
03f104fbe7 Remove the bone clearing option as that would cause issues 2019-03-27 17:46:16 -04:00
KillzXGaming
aa42b5396f Fix nodes not clearing when model is replaced 2019-03-27 17:45:05 -04:00
KillzXGaming
0b139da8b9 Fix params from not applying right 2019-03-27 15:25:29 -04:00
KillzXGaming
c7eba775b9 Fix param colors not workig properly 2019-03-27 14:59:43 -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
1e0ea5660e Fix user data not removing entries 2019-03-26 18:24:31 -04:00
KillzXGaming
e58e456c1a Update texture maps properly if edited 2019-03-26 18:15:19 -04:00
KillzXGaming
b4c297f572 Fix materials not mapping to objects 2019-03-26 18:01:57 -04:00
KillzXGaming
110d589086 Fix older binaries from crashing 2019-03-26 17:32:53 -04:00
KillzXGaming
cc1f05c1f0 Fix duplicate skeleton folders 2019-03-26 17:14:20 -04:00
KillzXGaming
f4370ab63a Improve binary file exporting greatly.
Fixed version issues between swapping binarys from bfres sections.
Fixed FMDL exports from crashing.
Fixed FSCN and FBNV from not having a replace option
2019-03-26 17:04:45 -04:00
KillzXGaming
ddcd0285b3 More fixes
Fixed samplers for switch not mapping properly.
Fixed DDS files exporting mip maps wrong. Would cause them to not import back with size errors.
Fixed bntx alignment causing corrupted textures.
Fixed bfres not opening from null bone indices/unrigged meshes.
2019-03-26 15:24:20 -04:00
KillzXGaming
356c2eb93f Fix LZ4F typo which gave to too many crashes :( 2019-03-25 21:45:25 -04:00
KillzXGaming
a7183147b0 Add replace textures from folder function for BNTX 2019-03-25 21:29:13 -04:00
KillzXGaming
0fef2f07e4 Cleanup 2019-03-25 19:11:02 -04:00
KillzXGaming
b00a3805f1 Fix index out of range issue for importing models 2019-03-25 19:07:22 -04:00
KillzXGaming
c41ac2f752 Fix csv imports 2019-03-25 17:13:01 -04:00
KillzXGaming
211326d253 More bug fixes
Fix bymls with path nodes from saving.
Fix material list not loading when another object is selected.
Fix skeletons not exporting
Fix materials missing a name and not updating in the editor properly
- Fix dds and bftex not showing on the filter for bntx/nutexb properly
2019-03-25 16:50:05 -04:00
KillzXGaming
5edb6d4174 Fix mip map number displaying in properties for bntx textures 2019-03-25 10:17:10 -04:00
KillzXGaming
5264ec4f5d Fix bone indices not saving and bounding radius. 2019-03-25 10:06:12 -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
a43e00ff5d Fix local transformation issues with imports or editing eixsting meshes with local transforms 2019-03-24 18:56:32 -04:00
KillzXGaming
05dcf8e12d Apply transforming properly when transform tool is saved 2019-03-24 17:49:32 -04:00
KillzXGaming
a47b77bc7c Load all bone anims properly when an animation is loaded so it can save properly 2019-03-24 17:02:19 -04:00
KillzXGaming
c75c171792 Fix sarc's with folders saving wrong 2019-03-24 16:44:12 -04:00
KillzXGaming
5e4313c54f Attempt to fix UV scale issue with a flag in the shader options 2019-03-24 14:40:29 -04:00
KillzXGaming
f9d33324ce More bug fixes
Load drawables on constructor for viewport for scene to be loaded properly.
Detect XML formatting for text documents loaded from an archive.
2019-03-24 14:23:11 -04:00
KillzXGaming
c0328e3b82 Fix bntx corrupting textures on save and round params for displaying. 2019-03-24 13:56:09 -04:00
KillzXGaming
8a352111de Reset channel display when another image is clicked on 2019-03-24 12:57:49 -04:00
KillzXGaming
470b0ead75 Update the channel view properly on another thread after process is finished 2019-03-24 12:51:26 -04:00
KillzXGaming
c8b77411fa Switch to viewport only if models are present. Fix tex2 swizzle value not loading 2019-03-24 12:12:51 -04:00
KillzXGaming
0c37b03bb7 Add new bone children to the bone list for rendering 2019-03-24 11:35:43 -04:00
KillzXGaming
ab44950984 Fix preview scale 2019-03-24 11:31:19 -04:00
KillzXGaming
233b11a022 Fix bugs related to bones.
Fixed bones not displaying when creating new skeletons.
Fixed importing dae bones not displaying properly in the tree.
Fixed bones not clearing when a model is removed
2019-03-24 11:24:40 -04:00
KillzXGaming
777fd47a01 Speedup settings and use emissive pass 2019-03-23 19:51:41 -04:00
KillzXGaming
e2f3afb1a6 Fix lag from hding FMDLs 2019-03-23 18:53:05 -04:00
KillzXGaming
cda5329779 Fix kcl generation from not saving 2019-03-23 17:19:32 -04:00
KillzXGaming
c4903cdb77 Fix bfmat files breaking on importing model 2019-03-23 15:59:15 -04:00
KillzXGaming
a5a8ca10e5 Fix Wii U textures extracted on exporting a model 2019-03-23 15:20:53 -04:00
KillzXGaming
0a53c287b3 Option to reset to T pose, and fix wii u bones 2019-03-23 15:13:54 -04:00
KillzXGaming
792341cfce Fix more issues 2019-03-23 14:41:59 -04:00
KillzXGaming
822a4c699e Enable updater 2019-03-23 13:55:12 -04:00
KillzXGaming
15c88c6284 Some fixes for compiling 2019-03-23 13:44:27 -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
e82d065255 Fix skeletal animation importing/exporting for wii u bfres, 2018-12-10 19:52:58 -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
307a8832c5 Alot of clean up. 2018-12-02 17:30:46 -05:00
KillzXGaming
785f5657b2 Update GTX code and update data types. 2018-12-02 15:01:51 -05:00
KillzXGaming
5cfec193bf Rework GTX swizzle thanks to abood and rebuild nutexb 2018-11-30 22:00:43 -05:00
KillzXGaming
0c9bafe67f Update DDS and nutexb with fixes 2018-11-28 13:22:25 -05:00
KillzXGaming
f51dd17f94 Many improvements and new formats.
Add in nutexb file format. While not finished, it can preview and export them.
Batch exporting for nuteb (tools menu).
Rework GTX code. This is WIP and not finished.
Add XTX code. Unifnished atm.
Add saving for wii u and include fmat exporting.
Proper error handling for assimp and texture swizzling.
2018-11-27 21:21:31 -05:00
KillzXGaming
b5ba944b69 Cleanup and some optimizations 2018-11-23 15:39:16 -05:00
KillzXGaming
216d772dbb Update placeholder textures and fill channel types by format 2018-11-23 12:51:08 -05:00
KillzXGaming
4e1c4a5266 Update library and clean up some things 2018-11-22 19:40:36 -05:00
KillzXGaming
898003ddb2 Doube click for sarc files. Minor fixes 2018-11-22 17:06:22 -05:00
KillzXGaming
e8e5c39b8f Add all sections and start to add menus 2018-11-22 16:17:03 -05:00
KillzXGaming
5d8e765d4c Organise BFRES better 2018-11-22 15:54:52 -05:00
KillzXGaming
c3c26f6a4c Rework UI loading 2018-11-22 13:08:50 -05:00
KillzXGaming
50ea4183ef Tons of stuff!
- Compress BC1 with alpha.
- Add GFPAK rebuilding.
- Fix some lag issues with bntx textures loading
- Fix saving multiple files.
- Support DDS cubemap importing
- Support rigged DAE/FBX files.
- Support animation playing thanks to smash forge.
- Some minor stuff to prepare custom animations.
- Many bug fixes.
2018-11-22 10:20:12 -05:00
KillzXGaming
029f350526 Change FTEX R8G8B8 compression method to new one. . 2018-11-19 13:14:35 -05:00
KillzXGaming
d302808d24 Add mip maps to importer 2018-11-19 13:08:41 -05:00
KillzXGaming
2e1d311649 Remove some previous decompression methods 2018-11-19 12:49:16 -05:00
KillzXGaming
1649456d6b Add all DDS compression methods 2018-11-19 12:39:06 -05:00
KillzXGaming
a81cfc0f98 Fix system dlls compiling and improve KCL shader 2018-11-18 19:03:27 -05:00
KillzXGaming
646982d2ae Fix refrence paths 2018-11-18 12:27:18 -05:00
KillzXGaming
d30f94eb9a Fix compile issues and update to latest 2018-11-18 12:09:54 -05:00
KillzXGaming
5849962617 Add latest 2018-11-17 17:33:00 -05:00
KillzXGaming
db31730291 Add more stuff 2018-11-16 21:13:05 -05:00
KillzXGaming
98bb2c07be Add BFRES cide 2018-11-16 21:08:58 -05:00
KillzXGaming
5b888b98c7 Add file format plugin 2018-11-11 20:51:12 -05:00