Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

KCL Collision Importer Switch: Difference between revisions

From GameBrew
(Created page with "{{Infobox Switch Homebrews |title=KCL Collision Importer |image=kclcollisionimporterswitch.png |description=A library for reading and editing .kcl collision file binaries used by various games. |author=KillzXGaming |lastupdated=2022/04/16 |type=Hack Utilities |version=1.94 |license=MIT |download=https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch.7z |website=https://gbatemp.net/threads/kcl-collision-importer.572864/ |source=https://github.com/KillzXGami...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=KCL Collision Importer
|title=KCL Collision Importer
|image=kclcollisionimporterswitch.png
|image=kclcollisionimporternx.png
|description=A library for reading and editing .kcl collision file binaries used by various games.
|description=A library for reading and editing .kcl collision file binaries used by various games.
|author=KillzXGaming
|author=KillzXGaming
|lastupdated=2022/04/16
|lastupdated=2022/04/16
Line 9: Line 8:
|version=1.94
|version=1.94
|license=MIT
|license=MIT
|download=https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch.7z
|download=https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporternx.7z?k33p0fil35
|website=https://gbatemp.net/threads/kcl-collision-importer.572864/
|website=https://gbatemp.net/threads/kcl-collision-importer.572864/
|source=https://github.com/KillzXGaming/KCollisionLibrary
|source=https://github.com/KillzXGaming/KCollisionLibrary
|donation=
}}
}}
{{#seo:
KCL is a common collision format used in various Nintendo games. This tool can export and create new .kcl files with .obj files to and from other 3D programs. The primary focus of this tool is Wii U and Switch support but older versions will work.
|title=Switch Rom Hacks (Hack Utilities) - GameBrew
 
|title_mode=append
For those that use [[Switch Toolbox]], it has been updated to use this library as well so it has the same support. This tool is for easier lightweight use and for those that cannot run the toolbox.
|image=kclcollisionimporterswitch.png
 
|image_alt=KCL Collision Importer
What this tool has over other existing tools is that this supports very high poly V2 KCL (which would either fall through in random spots in some tools or crash in others) along with a simple to use preset system users can define per game with different settings and materials.
}}
 
{{cleanup|article|Needs cleanup}}
The [https://github.com/KillzXGaming/KCollisionLibrary/tree/master/KclLibrary library] has build options using both the net framework and net standard so cross platform net core apps can be developed using it.
A library for reading and editing .kcl collision file binaries used by various games.
 
==Features==
*Supports all versions. GCN, WII, DS, 3DS Wii U, and Switch.
*Supports multiple model subdivisions for V2 KCL (WiiU/Switch) allowing for high poly collision models.
*Can go even higher than 65k polygons for V2 KCL (WiiU/Switch).
*Can easily load and save KCL binaries, change endianness, version, etc.
*Supports mapping material attributes by .obj files (COL_## for material name, ## is hex value).
*KCL importer GUI which can load various game material and collision presets and export .obj files.


==User guide==
The project is comprised of:
*KclImporter - A executable program used for importing and exporting collision models.
*KclLibraryGUI - A library for gui handling importing and configuring material attributes.
*KclRender - A 3D view displaying collision models and hit detection of octree boundings.
*KclLibrary - The main collision library for handling the file binaries, hit detection, etc. Can be built using dot net core for cross platform.


==Media==
[https://github.com/KillzXGaming/KCollisionLibrary/wiki/Usage KCL Collision Importer Tutorial].
<youtube></youtube>


Notes:
*You must triangulate imported .obj files so your model is made of triangles only.
*Wii U and Switch only support very high poly collisions Older platforms will still be limited to 16k polygons due to limitations of the file format.
*Make sure the collision is scaled correctly. You shouldn't import a small collision and scale it in some map editor, that can cause lag.


==Screenshots==
==Screenshots==
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-01.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporternx2.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-02.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporternx3.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporternx4.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-04.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-05.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-06.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-07.png
https://dlhb.gamebrew.org/switchhomebrews/kclcollisionimporterswitch-08.png


==Changelog==
==Changelog==
'''v.1.0'''
'''V1.94'''
* First Release.
*Fix invalid format/float parse error for .obj importing.
'''V1.92'''
*Split .obj faces by meshes from collision materials.
'''V1.91'''
*Optimize .obj more fixing some collision issues.
'''V1.9'''
*Fix multiple subdivisions not shifting offsets for the model octree key values. May fix falling through issues.
'''V1.7'''
*Optimizations made to .obj to fix some division issues from dupe triangles.
*Fix model octree loading.
*Fix model octree order causing issues falling through the ground for advanced high poly division.
'''V1.4'''
*Fix reading .obj with different floating separators (like commas) in certain cultures.
'''V1.3'''
*Add little endian Mario Galaxy preset for 3D All Stars. Improve Galaxy 1 preset.
'''V1.2'''
*Fix obj collision generation with NaN position values.
'''V1.1'''
*Added support for Mario Galaxy and Mario 3D Land material presets (.ba files).
 
==Credits==
Library by Syroot & KillXGaming.
 
Thanks to MasterF0x for the first V2 KCL implimentation and exelix11 for some help with odyssey support.
 
Thanks to Syroot/Ray Koopa for the [https://gitlab.com/Syroot/NintenTools/MarioKart8/-/tree/master/src/Syroot.NintenTools.MarioKart8/Collisions original library base].


== External links ==
== External links ==
* Gbatemp - https://gbatemp.net/threads/kcl-collision-importer.572864/
* GitHub - https://github.com/KillzXGaming/KCollisionLibrary
* Github - https://github.com/KillzXGaming/KCollisionLibrary
* GBAtemp - https://gbatemp.net/threads/kcl-collision-importer.572864/
* Reddit -

Latest revision as of 01:52, 5 February 2024

KCL Collision Importer
Kclcollisionimporternx.png
General
AuthorKillzXGaming
TypeHack Utilities
Version1.94
LicenseMIT License
Last Updated2022/04/16
Links
Download
Website
Source

KCL is a common collision format used in various Nintendo games. This tool can export and create new .kcl files with .obj files to and from other 3D programs. The primary focus of this tool is Wii U and Switch support but older versions will work.

For those that use Switch Toolbox, it has been updated to use this library as well so it has the same support. This tool is for easier lightweight use and for those that cannot run the toolbox.

What this tool has over other existing tools is that this supports very high poly V2 KCL (which would either fall through in random spots in some tools or crash in others) along with a simple to use preset system users can define per game with different settings and materials.

The library has build options using both the net framework and net standard so cross platform net core apps can be developed using it.

Features

  • Supports all versions. GCN, WII, DS, 3DS Wii U, and Switch.
  • Supports multiple model subdivisions for V2 KCL (WiiU/Switch) allowing for high poly collision models.
  • Can go even higher than 65k polygons for V2 KCL (WiiU/Switch).
  • Can easily load and save KCL binaries, change endianness, version, etc.
  • Supports mapping material attributes by .obj files (COL_## for material name, ## is hex value).
  • KCL importer GUI which can load various game material and collision presets and export .obj files.

User guide

The project is comprised of:

  • KclImporter - A executable program used for importing and exporting collision models.
  • KclLibraryGUI - A library for gui handling importing and configuring material attributes.
  • KclRender - A 3D view displaying collision models and hit detection of octree boundings.
  • KclLibrary - The main collision library for handling the file binaries, hit detection, etc. Can be built using dot net core for cross platform.

KCL Collision Importer Tutorial.

Notes:

  • You must triangulate imported .obj files so your model is made of triangles only.
  • Wii U and Switch only support very high poly collisions Older platforms will still be limited to 16k polygons due to limitations of the file format.
  • Make sure the collision is scaled correctly. You shouldn't import a small collision and scale it in some map editor, that can cause lag.

Screenshots

kclcollisionimporternx2.png kclcollisionimporternx3.png kclcollisionimporternx4.png

Changelog

V1.94

  • Fix invalid format/float parse error for .obj importing.

V1.92

  • Split .obj faces by meshes from collision materials.

V1.91

  • Optimize .obj more fixing some collision issues.

V1.9

  • Fix multiple subdivisions not shifting offsets for the model octree key values. May fix falling through issues.

V1.7

  • Optimizations made to .obj to fix some division issues from dupe triangles.
  • Fix model octree loading.
  • Fix model octree order causing issues falling through the ground for advanced high poly division.

V1.4

  • Fix reading .obj with different floating separators (like commas) in certain cultures.

V1.3

  • Add little endian Mario Galaxy preset for 3D All Stars. Improve Galaxy 1 preset.

V1.2

  • Fix obj collision generation with NaN position values.

V1.1

  • Added support for Mario Galaxy and Mario 3D Land material presets (.ba files).

Credits

Library by Syroot & KillXGaming.

Thanks to MasterF0x for the first V2 KCL implimentation and exelix11 for some help with odyssey support.

Thanks to Syroot/Ray Koopa for the original library base.

External links

Advertising: