Commit Graph

71 Commits

Author SHA1 Message Date
miku-666
470c60e3c4 Core(PckFileExtensions) - Fix adding capepath to skin 2025-12-08 19:06:46 +01:00
miku-666
b808905962 Core - Add snow, rain & clouds texture resource 2025-12-08 19:05:38 +01:00
miku-666
2e6dbf97d1 Core - Move modelMetaData into Core 2025-12-08 19:04:45 +01:00
miku-666
13516e204e Core - Update PckAudioFile class 2025-12-08 16:47:18 +01:00
miku-666
c89ef30059 Core(PckFileExtensions) - Add 'HasDirectory' & 'GetDirectoryContent' extension methods 2025-12-06 06:20:14 +01:00
miku-666
dd57d715f9 Core - Rename 'UnknownDLCPackage' to 'RawAssetDLCPackage' 2025-12-06 06:01:41 +01:00
miku-666
dcc72a8397 Merge branch 'main' into DLCManager 2025-11-30 10:59:54 +01:00
miku-666
def66dc251 Core - Update ResourceLocation.cs 2025-11-30 10:37:13 +01:00
miku-666
0cde286376 Core - Fix Skin.GetPreviewImage 2025-11-30 10:27:25 +01:00
miku-666
fbc0f66aea PckStudio - Add SkinsPanel.cs 2025-11-29 11:06:13 +01:00
miku-666
5930e1e31b Core(SkinBOX) - Add BoxVisibility member property 2025-11-29 06:57:58 +01:00
miku-666
ae85bc4b39 Core(DLCManager) - Upate type scanning 2025-11-28 08:54:17 +01:00
miku-666
2edb8986bb Core - Add TreeNodeCollectionExtensions.cs 2025-11-28 08:33:20 +01:00
miku-666
9af82e162a PckStudio(Skin) - Add 'theme' member to constructor 2025-11-28 08:30:46 +01:00
miku-666
b84ebf2383 Core(PckAssetExtensions) - Fix constant code style 2025-11-28 06:29:26 +01:00
miku-666
a2fe2b7ea3 Core - Add PckFileExtensions & move exts. from asset exts. 2025-11-26 09:39:29 +01:00
miku-666
dabc177917 Core - Update Skin.cs to use cape id instead of cape texture 2025-11-26 09:34:32 +01:00
miku-666
87fd010ee0 PckAssetBrowserEditor - Add armor resoucre handling 2025-11-26 08:58:45 +01:00
miku-666
0cec1a9f31 Core - Add resources related to texture packs 2025-11-26 08:47:11 +01:00
miku-666
ef5a0f0e57 Core(ImageExtensions) - Add 'GetImageData' & 'CreateMipMap' 2025-11-26 06:51:14 +01:00
miku-666
71518bed8c Core - Move default atlases into atlas folder 2025-11-22 15:58:37 +01:00
miku-666
ec976d4be2 Core - Add ArmorPiece.cs & ArmorSet.cs & rename 'ArmorPieceDescription' to 'ArmorSetDescription' 2025-11-22 07:32:23 +01:00
miku-666
aa9185d291 Core - Move 'AppLanguage' into 'App' namespace 2025-11-22 03:24:45 +01:00
miku-666
b6b6a355a8 Core - Add ArmorPieceDescription.cs 2025-11-20 05:27:01 +01:00
miku-666
d86c1fa628 Core - Rename SettingsManager.KeyToStringContextKeyConst constant 2025-11-20 03:27:43 +01:00
miku-666
65853f8176 Core - Move fileds required for AtlasResource away from ResourceLocation 2025-11-20 02:57:55 +01:00
miku-666
e04719cd25 PckStudio(AtlasEditor) - Add FileWatcher when extracting tile 2025-11-20 02:49:07 +01:00
miku-666
f7a77336d4 Core - Add 'SkinBOX.InvariantFormat' 2025-11-20 02:47:59 +01:00
miku-666
d373d8f263 Core - Add FileObserver.cs 2025-11-20 02:47:09 +01:00
miku-666
1edc12b4ff Core - Refactor ResourceLocation 2025-11-20 02:45:41 +01:00
miku-666
f0d6b77447 Core - Add 'additionalMapiconsData.json' 2025-11-20 01:27:16 +01:00
miku-666
9a21db12f7 Core - Add BlendOption.cs 2025-11-19 21:48:33 +01:00
miku-666
d87817b6b5 Core - Impprove AbstractGameRule classes 2025-11-19 21:47:39 +01:00
miku-666
e3259a8f5c Core - Update GraphicsConfig 2025-11-19 21:36:51 +01:00
miku-666
83f0aff8b7 Core - Add TagCompoundExtensions.cs 2025-11-19 21:26:46 +01:00
miku-666
1cbc51def8 Core - Rename const 'Animation.MinimumFrameTime' to 'Animation.MINIMUM_FRAME_TIME' 2025-11-19 20:11:03 +01:00
miku-666
8a3c45260d Core - Add 'DLCPackageRegistry.cs' 2025-11-15 19:09:09 +01:00
miku-666
e2df19ccf9 Core - Update const variables 2025-11-15 14:21:05 +01:00
miku-666
e371406bfd Core - Rename const 'GameTickInMilliseconds' -> 'GAMETICK_IN_MILLISECONDS' 2025-11-13 15:25:28 +01:00
miku-666
c8ac0438b6 Core - Made AbstarctGameRules public 2025-11-13 15:22:21 +01:00
miku-666
d8c6fd485e Core - Update how the ByteOrder is aquired via Platform type 2025-11-13 15:18:59 +01:00
miku-666
63f3b09ae8 Core - Change how constants are styled 2025-11-12 19:33:16 +01:00
miku-666
8904f39011 Core - Fix AbstractGameRule not getting all gamerules 2025-11-12 19:28:30 +01:00
miku-666
e1a7dd855c Core - Update DLCManager ctor 2025-11-12 15:57:23 +01:00
miku-666
07cda4b177 Core - Add AppLanguage 2025-11-12 15:54:36 +01:00
Miku-666
8dfe9cf5b0 3d skin renderer (#50)
* Add 'Validate Skin Dimension' setting

* AddNewSkin - Fix cape box not showing after skin selection

* Extended ResourceLocation for better atlas handling

* ModelImporter - Add block bench export for models inside models.bin

* ModelIporter - Rename 'GetPivot' to 'GetSkinBoxPivot'

* ModelImporter - Fix ANIM2BOX to properly support slim skin models

* ModelImporter - Update BedrockModel json class

* ModelImporter - Update 'FixTexture' to be more generic

* Update ModelContainer API inside OMI-Lib

* Update skin vertex shader to not swap yz

* Update CubeMesh class

* SkinRenderer - Move framebuffer and error checking function to SceneViewport

* SceneViewport - Change OnUpdate parameter

* SkinRenderer - Fix Highlight part having wrong transform

* SkinRenderer - Move call to 'SwapBuffers' into SceneViewport.OnUpdate

* AppSettingsForm - Update API to be more flexible

* SkinBOXExtensions - Update 'GetUVGraphicsPath'

* SkinRenderer - Update 'OnUpdate' function

* SkinRenderer - Add 'LockMousePosition' option

* CustomSkinEditor - Update HighlightlingColor when selecting a part

* CustomSkinEditor - Add render settings

* CustomSkinEditor - Small non-technical changes

* SkinRenderer - Small non-technical changes

* CustomSkinEditor - Load render settings when 'OnLoad' is called

* SkinRenderer - Fix centering leg0/1

* SkinRenderer - Update 'ReInitialzeSkinData' to upload new data to shader

* Rename 'ModelImporter' -> 'SkinModelImporter' and add api interface to add custom import/export providers

* CubeGroupMesh - Fix overlay parts not showing proerly

* SkinRenderer - Fix part highlighting respecting inflate

* Split up model and skin importer into seperate classes and improved api

* IModelImportProvider - Add 'SupportImport' and 'SupportExport' property fields

* ModelImporter - Rename 'SimpleSkinImportProvider' to 'InternalImportProvider'

* modelTextureLocations.json - Add todo

* SkinModelImporter - Move 'ModelTextureLocations' to GameModelImporter

* CustomSkinEditor - Add SettingsManager for RenderSettings

* ModelImporter::Import - Check if file exists

* Rename 'modelTextureLocations' to 'modelMetaData'

* GameModelImporter - Change blockbench name when exporting

* SettingsManager - Add functionality to create internal settings object and add settings to it

* GameModelImporter - Fully implemented game-model export to block bench

* AppSettingsForm - Fix re-adding settings description to default settings

* AppSettingsForm - Add settings description to 'ValidateImageDimension'

* GameModelImporter - Add copyright notice and remove unnecessary using statements

* ModelImporter - Add copyright notice and remove unnecessary using statements

* BlockBenchModel - Fix Texture class json deserialization

* SkinModelImporter - Add 'TryConvertToSkinBoxType' function

* modelMetaData - Remove comments

* SkinModelImporter - Fix 'GetSkinBoxPivot' function

* SkinModelImporter - Add null check in 'FixTexture' function

* SkinModelImporter - Add offset detection when importing skin model

* CustomSkinEditor - Add 'export template' button

* GameModelImporter - Rename 'ModelTextureLocations' -> 'ModelMetaData'

* ModelImporter - Add summary to 'SupportedModelFileFormatsFilter' property

* GameModelImporter - Change function signature of 'CreateElement'

* GameModelImporter - Add options to create root outline

* GameModelImporter - Update Debug message in 'TraverseChildren'

* MainForm - Small code refactor

* Rename class 'Meta' ->'BlockBenchFormatInfo' and update BlockBenchModel.Create function signature

* MainForm - Update 'GetModelTextures' local function

* GameModelImporter - Check model metadata before conversion

* GameModelInfo - Mark class as sealed

* SkinModelImporter - Check if blockbench model uses box uv

* BlockBenchModel - Add export property to class 'Element'

* CustomSkinEditor - Remove unused 'PreviewImage' property

* CustomSkinEditor - Change highlight color on texture

* SkinModelImporter - Fix Block Bench Model import

* modelMetaData - Add meta data for 1.14 models

* SkinModelImporter - Update 'TryConvertToSkinBoxType' function

* SkinModelExporter - Fix model export for bbmodel and bedrock model

* SkinRenderer - Fix order of applying anim animations to match the game

* SkinModelImporter - Fix exception thrown in 'FixTexture'

* CustomSkinEditor - Add Anim editor button and fix anim not being updated when exporting

* SkinModelImporter - Fix offset detection when importing

* SkinModelImporter - Swap box bottom texture when texture is available

* GameModelImporter - Sort using statements

* SkinModelImporter - Small code clean up inside 'ImportBedrockJson'

* SkinModelImporter - Update 'AddBone' function inside 'ExportBedrockJson'

* SkinModelImporter - Fix bottom texture swaping being done bofre parts where imported

* SkinMoelImporter - Rename 'GetSkinBoxPivot' to 'GetSkinPartPivot'

* SceneViewport - Rename 'Init' to 'Initialize'

* SkinModelImporter - Add texture import in 'ImportBedrockJson'

* SkinModelImporter - Fix becrock model import

* Skin-/GameModelImporter - Rename 'fileName' parameter to 'filepath'

* Add ModelEditor

* modelMetaData - Add cavespider texture location

* GameModelImporter - Update 'ExportBlockBenchModel' function

* GameModelImporter - Mark 'ModelExportSettings' as sealed

* ModelEditor -Add Save tool menu item & add TrySetTexture Delegate

* ModelEditor - Add model node icons

* Update CubeMesh & rename CubeGroupMesh to CubeMeshCollection

* ModelEditor - Rename 'GetModelNodes' & 'GetModelPartNodeChildren'

* Update GenericMesh & mesh rendering

* Move Cube conversion into SkinBOXExtensions

* GenericMesh - Made 'Transform' property abstract

* SceneViewport - Add shaderLibrary and api to it

* Rename 'skin...' shaders to 'texturedCube...'

* Update modelMetaData part hierarchy structure

* ShaderProgram - Add 'SetUniform2' overload for System.Drawing.Size

* ModelEditor - Create factory methods for custom model treenodes

* modelMetaData - Add 'slime.armor' texture location & pattern texture locations for 'tropicalfish_-a/-b'

* Move Debug & Camera control into SceneViewport

* Update BoundingBox

* Add ModelRenderer

* ShaderProgram - Update GetUniformLocation to retrive all active uniforms when linking program

* ModelEditor - Add option to show bounding box of the model

* SceneViewport - Add OnPaint override to clear color and depth buffer and enable depth testing

* Update OMI submodule

* Update  Texture base class to accept slot when calling Bind

* Plain color fragment shader - Update uniform names to be PascalCase

* SceneViewport - Add 'ResetCamera' virtual function

* CustomSkinEditor - Add missing render setting 'Show Armor'

* ModelRenderer - Fix centering model after selecting

* Move 'SceneViewport.GetBounds' to 'BoundingBox.GetEnclosingBoundingBox'

* CubeMeshCollection - Implemented 'GetBounds'

* SkinRenderer - Add option to show skins bounding box

* ModelEditor - Update 'GetModelImageIndex'

* SceneViewport - Disable blend when rendering debug graphics

* ModelEditor - Remove 'Model' property in favor to 'LoadModel' function

* JsonModelMetaData - Initialize 'RootParts' to empty array

* BoundingBox - Fix exception when empty enumerable was passed

* CubeMesh - Remove 'SetName' and add constructor with 'name' parameter

* SkinBOX - Change class to record & make member properties getter only

* BoundingBox - Move 'Abs' function into extension class

* SceneViewport - Change 'Transform' to 'GetTransform'

* BoundingBox - Make 'GetVertices' static & add GetTransform

* SkinRenderer - Fix bounds calculation when offset is set & fix part highlighting

* CubeMesh - Move translation & scaling into 'GetTransform'

* CubeMeshCollection - Update 'Contains' overload function & 'SetVisible'

* ModelRenderer - Fix pivot point rendering

* ModelRenderer - Add part highlighting

* modelMetaData - Add missing part to dolphin

* modelMetaData - Add missing parts to dragon

* CubeMesh - Fix 'GetTransform' function

* ModelRenderer - Fix model rotation, pivot & translation issues

* ModelRenderer - Add offset to render transform & camera

* ModelRenderer - Tried fixing alpha rendering issues

* modelMetaData - Add missing part to dragon & add comment

* Add 'ITryGetSet.cs' and useful wrappers for it

* ModelRenderer - Rename 'HighlightInfo.Pivot' to 'HighlightInfo.Translation'

* ITryGetSet - mark classes and interfaces public

* ModelEditor - Add material render support

* ModelRenderer - Add 'TryGetModelMetaData' method

* Fix rendering invisible vertecies

* ModelRenderer - Simplefied populating 'metaData.RootParts' property

* ModelRenderer - Add 'modelOffset' field

* ModelRenderer - Update 'SetModelMaterial'

* ModelRenderer - Add simple way of rendering a 2nd layer of a model(the bed model only for now)

* ModelRenderer - Fix pivot points not working on horse model properly

* ResourceLocation - Add 'Unknown' ResourceLocation instance & improved 'ResourceLocation.GetFromPath'

* ResourceCategory - Add 'MobEntityTextures' & 'ItemEntityTextures'

* Add default model handling (defaults unfinished)

* Add Default Bed model

* Add default chicken model

* Add default cow model

* AddSkinPrompt - Fix Custom skin editor not having anim flag properly set

* SceneViewport - Fix Designer crashing when trying to call 'OnPaint'

* Update OMI submodule

* SceneViewport - Call 'base.OnMouseUp' before our own code

* BlockBenchModel - Fix 'Texture.Name' being null

* ItemSelectionPopUp - Fix 'okBtn_Click' condition

* MainForm - Add export function for default models

* MainForm - Fix model selector ignoring cancel button

* MainForm - Remove unnecessary wrapper for 'entityMaterials.TryGetValue'

* ModelEditor - Add remove model to context menu

* ModelEditor - Add 'GetModelContainer' function

* GameModelImporter - Add import functionality

* MainForm - Add texture when exporting default models

* Add default model for: redcow, pig, snowgolem & dragon head

* Add SkinModel & SkinIdentifier class

* Refactor Skin.cs
- Move texture from 'SkinModel' to Skin.cs
- Move 'Id' from SkinMetaData into it's own class(SkinIdentifier.cs)
- Create SkinModelInfo class for keeping skin conversion simple

* Skin.cs - Rename 'ANIM' property to 'Anim'

* Move 'hasInvalidEntries' into 'MaterialExtensions.HasInvalidEntries'

* Add ISaveContext

* PckAssetExt - Rename parameter names for 'GetSkin'

* Add Editor.cs

* Update most editors to use new Editor class and save context

* CustomSkinEditor - Use Editor as base class

* SkinMetaData - Change to Immutable data type

* PckAssetExtension - [SetSkin] Change adding loc key to setting loc key

* ImageDeserializer - Add format check when deserializing

* MainForm - [HandleSkinFile] Rename some varibale names

* ModelEditor - Use Editor as base class

* Move static variables from 'ModelPartSpecifics' to 'GameConstants'

* Texture.cs - Add IDisposable interface

* PckAssetExtensions - [SetSkin] Add null check for loc file

* AnimationEditor - Fix auto save check

* TextureAtlasEditor - Refactor animation access control

* TextureAtlasEditor - Sort using directives

* MainForm - [HandleTextureFile] Add Debug message when animation has no frames to save

* AddSkinPrompt - Update save context for custom skin editor

* Editor - Move autosave check in 'OnFormClosing'

* ModelRenderer - Update designer specifics

* Merge 'multi-pck-files-feature' into '3dSkinRenderer'

* [WIP] Sub-pck in new tab with savecontext etc.

* SceneViewport - Change base refresh rate to 60 fps

* CustomSkinEditor - Move max offset value into a constant

* ModelEditor - Add highlighting of sinfgle model boxes

* MainForm - Add constant for max pck id value

* CustomSkinEditor - Remove fps slider and re-ordered ui

* EditorForm - Remove abstract from class declaration

* EditorControl - Made virtual funtion throw `NotImplementedException`

* CustomSkinEditor - Fix naming violations

* CustomSkinEditor - Move initialization of render settings into a seperate funtion & remove `show armor` setting

* Move Common functionality to Core project & rendering and Model support as well

* Change namespace of EditorForm & EditorControl

* Add Constant 'NDEBUG' to Core, Rendering & ModelSupport project

* PckStudio.csproj - Remove `defaultModels.json` & `modelMetaData.json`
- files were moved to PckStuido.ModelSupport

* PckStudio.csproj - Remove unused `ApplicationBuildInfo.cs`

* PckStudio.Core - Add NamedData.cs

* PckStudio - Move some Resources to Core

* Add Altas class & refactored Atlas editor

* Update OMI Submodule

* TextureAtlasEditor - Fix clear button not reseting color

* Fix PackInfo.cs - OMI.Endianess -> OMI.ByteOrder

* TextureAtlas - Impl extraction&import of large tiles

* PckStudio.Core - Remove duplicated resources

* LOCEditor - Added menu item for copying loc id

* Core - Move 'MAX_PACK_ID' into GameConstants

* TextureAtlasEditor - small refactor + TODOs

* Update OMI submodule ref
2025-11-11 21:53:32 +01:00
miku-666
f9162d291c Core - Add 'MapReader' & refactor 'MapData' 2025-11-11 21:43:29 +01:00
miku-666
2b7eac7e63 Core - Mark 'AbstractGameRule.AddRule(s)' as internal 2025-11-11 21:41:43 +01:00
miku-666
8fea6f35ea Core - Refactor DLCManager 2025-11-11 21:40:41 +01:00
miku-666
a8ae596c93 Core - Refactor DLCMashUpPackage 2025-11-11 21:39:54 +01:00