Add creative inventory with GPU-rendered 3D block icons#17
Draft
Add creative inventory with GPU-rendered 3D block icons#17
Conversation
- Scrollable grid showing all ~1500 items from azalea registry - 5 tabs: All, Building, Nature, Redstone, Tools - Click item to place in selected hotbar slot (stack of 64) - Sends SetCreativeModeSlot packet to server - Opens with E in creative mode, Escape to close - Item tooltips on hover - Scroll wheel navigation within grid
Creative inventory: - Vanilla tab_items.png background with exact slot positions (195x136) - 10 tabs matching vanilla order from CreativeModeTabs.java - Vanilla tab sprites (top/bottom selected/unselected) - Vanilla scroller sprites (active/disabled) - Items in exact vanilla order per tab (creative_tabs.json) - Click to place stack of 64 in selected hotbar slot - Sends SetCreativeModeSlot packet to server - Opens with E in creative mode, Escape to close - Hotbar display at bottom showing current items - Item tooltips on hover GPU block icon pipeline: - BlockIconPipeline renders baked model quads at native resolution - Uses chunk atlas texture with push constants for per-icon MVP - Vanilla GUI transform: rotationXYZ(30,225,0), scale(0.625) - Orthographic projection with Vulkan Y-flip - Per-face lighting matching vanilla (top=0.98, side=0.80, right=0.608) - No backface culling for correct rendering after rotation - Depth clear before icon batch prevents world geometry occlusion - BlockIcon MenuElement variant handled by dedicated pipeline Item atlas improvements: - Scans jar-extracted textures instead of hashed asset objects - Asset index keys_with_prefix method for texture discovery - Atlas size increased to 2048x2048 for ~1857 textures - Sprite atlas increased to 1024x1024 for creative inventory sprites - All 32 creative inventory sprites loaded (tabs, scrollers, backgrounds)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CreativeModeTabs.javaBlockIconPipelineat native resolutionSetCreativeModeSlotpacket for item placementTest plan
/gamemode creative)