Commit Graph
4504 Commits
Author SHA1 Message Date
piexel 59626d2434 Add light theme
Follows the system by default.
2026-10-19 23:01:31 +02:00
piexel 46f5472081 Use IntelliJ icons in view list
Adds flatlaf-extras for SVG icons.
2026-10-19 23:01:31 +02:00
piexel 2cd9167549 Polish map view list
Outline icons, keycaps, row hover.
2026-10-19 22:46:49 +02:00
piexel a648ef6622 Build object meshes from a block grid instead of a BlockVector map
Every face looked up its neighbour in a HashMap keyed by BlockVector,
whose hash codes collide heavily; on the woodland mansion that took 1.8 s
of a 2.4 s build, so making a block see-through lagged by seconds. The
blocks now go into an array over the object's bounds, which brings the
build down to about 50-70 ms with the same faces. Opening an object gets
the same speed-up.

Model used: Claude Opus 5.5
2026-10-19 21:52:11 +02:00
piexel 51c9d01bf7 Follow the layer slider live and keep a ghost of what it cuts away
Cutting layers no longer rebuilds the mesh: it is built once with the top
faces hidden by the block above kept aside, so a cut is a quick filter on
the UI thread and the view follows the slider while it is dragged. The
cut-away part stays as a faint ghost that only fills pixels the shown part
leaves empty, so the object's shape stays readable without hazing over
the floor being looked into.

Model used: Claude Opus 5.5
2026-10-19 21:46:52 +02:00
piexel 99258bfd98 Pin folder headers, cut layers and see through blocks in the Objects view
Folder headers stay pinned at the top of the object tree while scrolling,
one per nesting level; clicking one jumps to that folder. A faint slider
over the 3D view (or Page Up/Down) cuts away the top layers so floors of
large structures like the woodland mansion can be looked into. Clicking a
block in the overview list makes that block type see-through, so whatever
it hides shows behind it.

Model used: Claude Opus 5.5
2026-10-19 21:39:42 +02:00
piexel db3d42df26 Keep every view in sight above the explorer sidebar
The divider between the view list and an explorer's sidebar could sit
or be dragged above the end of the list, squeezing it into a small
scrolling area. The list's full height is now the divider's lowest
limit: it starts there and can only be dragged further down.

Model used: Claude Opus 5.5
2026-10-19 21:06:16 +02:00
piexel b97bd51f20 Draw every block in the Objects view the way Minecraft models it
The 3D object view guessed block shapes: stairs, gates, lanterns and
similar became full cubes, fences and walls showed only their post,
glass fell back to grey, and vines and ladders became crossed plants.
It now reads the real models: every matching multipart part, each box
with its own texture, UVs and face rotation, tilted and rescaled boxes,
blockstate turns with uvlock, cullfaces against covering neighbours, and
Minecraft's side shading.

Chests, heads, banners and the bell use their entity textures; fluids
and other code-drawn blocks get simple shapes. See-through textures like
water, ice and stained glass are blended back to front. Texture objects
with a "sprite" key (glass in 26.x) are read, which also fixes them in
the palette map, and grey PNGs such as stone are no longer brightened by
Java's colour conversion.

Model used: Claude Opus 5.5
2026-10-19 20:59:41 +02:00
piexel a02b4386a4 Add an Objects view to the studio map
Inspired by the Procedural Objects workbench, the map window gets an
Objects view (key O) to browse every object in the pack:

- The sidebar lists the objects as a folder tree, with a search that
  matches every typed word anywhere in an object's path.
- The object is drawn in 3D with Minecraft's textures by a small
  software renderer: an orthographic camera, a depth buffer and only
  the block sides that can be seen. Drag orbits, shift-drag or the
  middle button pans, scrolling zooms and R resets. Plants are drawn
  as crossed sprites, single box models like slabs and carpets keep
  their shape, grass and leaves get plains' colours, and the object
  is centred beside the floating sidebar. A 150,000 block tree draws
  in about 55 ms.
- The right panel shows the object's size, block count, block types
  and how much of its box it fills, with a filterable list of its
  blocks by share.

BlockTextures can now resolve a block's texture on every side through
its blockstate rotation, sharing the model reading with the top
texture lookup.

Model used: Claude Opus 5.5
2026-10-19 20:29:53 +02:00
piexel 5a99091193 Remove the generation load views from the map
The Objects, Decorators and Layers load views coloured each biome by a
rough count from its file: object density times chance, decorator
chance and the number of palette layers. They measured nothing and the
Palettes view shows the same contents in detail, so they go, together
with their render types, biome colours and the engine's per-biome
maximums that only they used.

Model used: Claude Opus 5.5
2026-10-19 20:17:47 +02:00
piexel 88c2688662 Let the view list and explorer sidebar be resized vertically
The divider between the map's view list and the palette or noise
sidebar was one pixel tall, too thin to grab. It is now a 7 px band
with a grip that can be dragged up or down. Palettes and Noise share
the one split, so the divider stays put when switching between them.
Its starting height is measured once the sidebar is laid out.

Model used: Claude Opus 5.5
2026-10-19 19:58:41 +02:00
piexel f73c78349b Show the noise explorer as a view in the studio map
/iris std noise now opens the map window on a new Noise view under
Generators (key N), next to Palettes. The noise sources sit below the
view list in the sidebar island, and the seed and colour controls join
the map toolbar. Reset view (R) resets whichever explorer is showing.

/iris std explore still opens its own noise window for one generator.

Model used: Claude Opus 5.5
2026-10-19 19:53:07 +02:00
piexel 0a76208194 Float the sidebar island over the map
The map now fills the whole window area and the sidebar island floats
over it, with the map showing through the gap around the island. Clicks
in that gap reach the map. Dragging the island's right edge resizes it,
always leaving the map some room.

Model used: Claude Opus 5.5
2026-10-19 18:21:27 +02:00
piexel 38b340ac14 Make the map sidebar a resizable island
Long palette names were cut off by the sidebar's fixed width. The
sidebar is now a rounded island set apart from the window edges, and
dragging the gap beside it makes it wider or narrower.

Model used: Claude Opus 5.5
2026-10-19 18:19:35 +02:00
piexel bfeb017037 Let two block tall plants stand up on the decorator map
Squeezing both halves of tall grass into one block made it look like
short grass. The bottom half now fills its own block and the top half
covers the block above it on the map, so tall plants are two blocks tall
there too. The legend shows them by their top half, like Minecraft's
inventory icon.

Model used: Claude Opus 5.5
2026-10-19 18:16:06 +02:00
piexel 89b864a142 Show both halves of two block tall plants in decorator previews
A decorator places a two-part plant like tall grass as a bottom half with
its top half above it, but the preview only drew the bottom half. It now
squeezes both halves into the one block, and the inspector says so.

Model used: Claude Opus 5.5
2026-10-19 18:12:46 +02:00
piexel a49a4e0949 Stop dimming bare ground and draw layered plant sprites
Bare ground under a decorator preview was dimmed, which made the block
under each decoration look lit up. It now shows at its own brightness;
the sprites alone mark where the decorator places.

Plants whose model stacks several sprites, like the firefly bush with
its glowing fireflies, now draw every layer in order instead of only
the particle texture.

Model used: Claude Opus 5.5
2026-10-19 17:48:02 +02:00
piexel 3c773e3e57 Draw the biome's ground under decorator previews
Decorator previews used the dark "nothing here" colour around and
between their sprites. They now show the biome's top surface layer
there: through the see-through parts of each sprite, and dimmed where
the decorator places nothing or places air. Hovering a bare spot says
the decorator places nothing there.

Model used: Claude Opus 5.5
2026-10-19 17:26:46 +02:00
piexel 84ffce263a Show decorator sprites and list snippets in the palette explorer
Decorators now draw their plant sprite on each block instead of its
average colour, which only suits stacked ground layers.

The Overview tab lists every decorator and block palette snippet with
how often biomes use it. Picking one opens it where the first biome
places it; its rows open each other use. Snippet files no biome uses yet
are listed too. Snippet names keep their folders, so two snippets with
the same file name in different folders stay apart.

Model used: Claude Opus 5.5
2026-10-19 17:21:01 +02:00
piexel e4675ecab8 Show biome decorators in the studio palette explorer
Each decorator of a biome is now listed and previewed next to its layers,
walls and slabs. The preview shows where the decorator places, using the
same seed as the generator, and which block it picks there. Notes explain
what it leaves out: the part it decorates, competition with other
decorators, stacking and height.

Palettes that come from a snippet file show the snippet name, read from
the biome file since snippets are copied in when the pack loads.

Model used: Claude Opus 5.5
2026-10-19 17:15:12 +02:00
piexel b24c38896d List each region biome's palettes in the Here tab
The Here tab listed palettes only for the biome you stand on. The other
biomes in your region, including child biomes nested under their parent,
showed just their name, so a child like Grassland Hills had no way to
reach its wall blocks from there. Every biome in the region now lists its
palettes under it, indented with the biome.

Model used: Claude Opus 5.5
2026-10-19 14:37:27 +02:00
piexel 6270b62552 Revert the 3D noise carving
Carving rock behind cliff faces with noise didn't give mountains the
look it was meant to, so it comes out again: the noiseCarving biome
setting, its mantle component and the NOISE_CARVED flag.

This reverts 8c39f9a01 and 8a1c7ac99.

Model used: Claude Opus 5.5
2026-10-19 14:24:28 +02:00
piexel 8a1c7ac998 Stop noise carving from stalling new worlds
Noise carving ran inside the cave carving pass, which visits every
chunk within cave range of the chunk being generated, and it looked up
the biome and height of every column in all of them. Opening a studio
froze the server for about 35 seconds on its first chunk, even for
packs that don't use noise carving.

It now has its own mantle component that runs last and only for the
chunk being generated, and it does nothing when no biome in the pack
uses it. A fresh studio's spawn chunk is ready in about 1.4 seconds
again.

Model used: Claude Opus 5.5
2026-10-19 14:22:07 +02:00
piexel 8c39f9a01b Sculpt overhangs and arches into terrain with 3D noise carving
Iris terrain is one height per column, so mountains could never lean
out over the ground below. Biomes can now set noiseCarving, which
removes rock behind cliff faces and slopes wherever a 3D noise drops
under a threshold. The hollows open up into overhangs, arches through
ridges and ragged cliffs instead of hiding inside the mountain.

Gentle ground keeps a crust of rock so trees and grass keep their
footing, carving fades out toward the biome's borders, and nothing is
carved at or below sea level. The carved blocks go through the normal
carve pass, so they get cave walls, floors, ceilings and decoration.

Model used: Claude Opus 5.5
2026-10-19 14:14:18 +02:00
piexel 74756dd19e Remove the before and after hotload comparison from the map
The single before picture wasn't pulling its weight. The toolbar
buttons, the C shortcut and the swipe and changes overlays are gone
until there's a better way to compare pack versions.

Model used: Claude Opus 5.5
2026-10-19 13:52:04 +02:00
piexel 5363cbbc02 Show every palette a biome places, and where child biomes grow
Palettes listed only a biome's surface layers. They now include sea
layers, cave ceiling layers, and wall and slab blocks, each previewed
with the noise and random source the generator uses for that kind.
Wall and slab blocks also change with height, so their preview is drawn
at sea level and says so.

The Here tab names the parent of a child biome and lists the region's
biomes with their children nested under them, marking where you stand.

Model used: Claude Opus 5.5
2026-10-19 13:31:45 +02:00
piexel 19bbca0e4b Fit the height colours to the terrain on screen
The height view spread its colours over the whole world height, so a
mountain range and the plains next to it got nearly the same colour.
The legend now measures the visible heights (1st to 99th percentile,
rounded to 8 blocks) and fits the gradient to that range, with sea level
kept as the water/land split.

The map also re-finds its own world after a reload instead of whichever
Iris world is active, now that the active world prefers the open studio.

Model used: Claude Opus 5.5
2026-10-19 13:31:45 +02:00
piexel ec0d2d816a Keep the map legend readable
Long biome names now shorten instead of pushing the percentages out of
the legend, and biomes that share a display name show their key. The
highlight edge tints instead of drawing solid white, which turned
biomes scattered pixel by pixel into noise.

Model used: Claude Opus 5.5
2026-10-19 12:51:58 +02:00
piexel 340e66105c Show the pack you are working on in the noise explorer
/iris std noise listed the generators of whichever Iris world Bukkit
listed first. A normal Iris world runs on its own copy of the pack from
when it was created, so generators added to the pack since (like a new
generators/2026 folder) were missing while you worked in the studio.

The noise commands now use the world you stand in, and otherwise the
open studio before any other Iris world. After a hotload the explorer
stays on the world it was opened for.

Model used: Claude Opus 5.5
2026-10-19 12:49:56 +02:00
piexel e58d065ca4 Make the map explain what it shows
Highlight a biome or region (legend click, right-click, or H under the
cursor) to fade everything else and outline it; Esc clears it. A live
legend beside the map lists the biomes or regions in view with their
share of the screen.

The hover card now answers at once from the drawn tiles and then adds
height, sea level, land or sea, slope, cave biome and the Minecraft
biome; Shift adds keys and files.

After a refresh or hotload, C compares with the map from before: a
draggable before/now divider, or a view that fades out everything that
stayed the same and says how much changed.

Shading (S) adds hillshade relief to every view and Borders (B) outlines
the regions. Tiles now remember what each pixel shows, so all of this
restyles without rendering again.

Model used: Claude Opus 5.5
2026-10-19 12:46:35 +02:00
piexel cebd582018 Hand the display server one finished map picture per paint
The map drew every visible tile to the window on its own, hundreds of
scaled images per paint, and since tiles are no longer cached in the
display server each of those was uploaded again on every frame, which
made dragging and zooming lag. The tiles are now put together in memory
once, only when tiles or the view change, and drawn as a single image
like the palette view does.

Model used: Claude Opus 5.5
2026-10-19 11:18:59 +02:00
piexel f44ce5b327 Keep map tiles out of the display server's GPU memory
Opening the map crashed Xwayland inside Mesa's Intel driver, which took
the server, the game client and every other X window down with it.
Map tiles and noise frames were left for Java2D to copy into textures
inside the display server, hundreds of them for one map. They are now
drawn straight from memory again, like before the render rework.

Model used: Claude Opus 5.5
2026-10-19 11:14:37 +02:00
piexel b1445430bb Size the studio windows for high DPI screens
FlatLaf grows fonts and its own controls to the screen's DPI, but the
sizes the studio set itself stayed fixed, so on a 192 DPI screen text
was cut off and overlapped. Every padding, row height, column, card and
legend now grows with the same scale or follows the font, the windows
open at a scaled size that still fits the screen, and the theme is
installed before any window builds its controls. Long status text now
shortens with an ellipsis instead of pushing the rest of the bar away.

Model used: Claude Opus 5.5
2026-10-19 11:05:55 +02:00
piexel 80e7e37791 Put the palettes inside one modern, faster map window
/iris std map now opens a single window with a grouped list of views
(world, biome layers, generation load and the new Palettes view), each
with a number or letter key. The palette explorer lives in that window
instead of its own: double-click or right-click a spot on the map to see
its palettes, and switching views keeps both looking at the same place.
/iris std pal still works and opens the map straight on its palettes.

The map draws much faster. Tiles are cached per power-of-two zoom level
so zooming reuses them, coarser and finer tiles already in the cache
stand in while new ones render, renders start the moment you drag or
zoom, and tiles that are still on screen keep rendering instead of being
thrown away. The noise explorer keeps one worker pool instead of making
threads for every frame and skips work for frames that were replaced.
Pointer coordinates now live in a status bar, so moving the mouse no
longer redraws the whole map.

Model used: Claude Opus 5.5
2026-10-19 10:42:40 +02:00
piexel 8e71c14f65 Give the studio windows an IntelliJ style dark theme with FlatLaf
FlatLaf is loaded at runtime through slimjar like the other libraries.
Every studio window now opens with FlatLaf's dark look tuned to the
IntelliJ New UI colours, and shares a small kit of controls: a flat
toolbar, toolbar buttons and tabs, search boxes, a status bar and the
rounded cards drawn over maps.

Model used: Claude Opus 5.5
2026-10-19 10:42:35 +02:00
piexel eb1a244114 Let /iris find search the focus region a dimension is locked to
With focusRegion set the world only generates that region, but find
checked the dimension's region list, which the focus region does not
have to be part of, so everything in it was reported as missing.

Model used: Claude Opus 5.5
2026-10-18 22:46:04 +02:00
piexel 05eed1f6a5 Let /iris find look inside child biomes
Find biome, structure and object only checked the biomes a region lists
directly, so a biome that only appears as another biome's child was
reported as not being in any region.

Model used: Claude Opus 5.5
2026-10-18 22:43:59 +02:00
piexel 6c3822cdaf Find textures for blocks whose palette entry leaves properties at their defaults
Textures were looked up by the block state with only the properties the
pack set, so a plain grass_block never matched its snowy=false variant
and fell back to its map colour. The lookup now uses the full state.

Model used: Claude Opus 5.5
2026-10-18 22:20:41 +02:00
piexel 13312e9182 Show textures when they finish loading before the first palette layer
The explorer only reloaded the map for textures once a layer was already
showing. Now that the Minecraft jar is cached, textures can finish while
the first layer is still loading, which left that layer on map colours
until another layer was picked.

Model used: Claude Opus 5.5
2026-10-18 22:06:11 +02:00
piexel 674502eeda Colour grass, leaves and water in the palette explorer like Minecraft does
Every tinted block used one fixed plains green, so biomes with their own
grass colour looked nothing like the game. Tints now follow Minecraft's
own rules: its block tint table, the grass, foliage and dry foliage
colour maps from the client jar, vanilla biome colour overrides, the
dark forest and swamp grass modifiers with an exact copy of the swamp
noise, and the client's 5x5 biome blend. Custom biomes use the colours
Iris writes into their data pack, and the variant is picked per chunk
the same way Iris generates them.

Plants have no top face, so they now show their average colour instead
of their side-on sprite tiled into stripes.

Model used: Claude Opus 5.5
2026-10-18 21:59:35 +02:00
piexel 143ba4771b Make dragging the explorer map follow the mouse smoothly
While dragging or zooming, the map stood still until the mouse paused,
then restarted from a blocky draft. The last finished frame is now moved
and scaled with the view straight away, and a new frame starts as soon
as the previous one is done, sized from how fast the last frame drew so
cheap views come out sharp immediately.

Budgets are now measured in drawn pixels, so a frame where the layer is
missing everywhere no longer breaks the refinement step.

Model used: Claude Opus 5.5
2026-10-18 21:34:05 +02:00
piexel 02956fd358 Make the palette explorer open on the palette you are standing in
The explorer read the persistent world instead of the studio world the
player was in, and left out the studio focus region, so it showed the
wrong palettes. It now uses the player's own world, lists the focus
region first and opens on the surface biome centred on the player.

Blocks are sampled once per whole block and drawn at full resolution
without smoothing, so textures look like they do in game. The view and
depth controls use styled buttons instead of the default Swing widgets.

Model used: Claude Opus 5.5
2026-10-18 21:22:31 +02:00
piexel 76860e94fa List where you are in the palette explorer instead of following you
Biomes are 3D, so the biome at a player's position underground isn't the
surface biome above it. The Here tab now lists the region, the surface
biome and, when different, the biome at the player's position, each with
its layers, followed by the region's other biomes. It updates as the player
moves but no longer changes the selection, and biomes without a key no
longer crash it.

Model used: Claude Opus 5.5
2026-10-18 21:09:50 +02:00
piexel 252facf41e Show real block textures and a region overview in the palette explorer
Block textures come from the Minecraft client jar, downloaded once from
Mojang and cached under plugins/Iris/cache. Each block shows its tinted top
face: texture pixels when zoomed in, the texture's average colour when
zoomed out, and the map colour when no texture is available.

The sidebar now has two tabs. Here follows the player who opened it and
shows their region, the biome they stand in with its layers, and the
region's other biomes, opening each new biome they walk into. Overview is a
searchable tree of region, biome group, biome and layer.

Model used: Claude Opus 5.5
2026-10-18 20:33:32 +02:00
piexel ad88b00c2a Add a palette explorer for previewing biome palette layers
/iris studio palette (alias pal) opens the explorer on the biome you stand
in, listing each biome's palette layers instead of noise styles. The map
shows the blocks the layer places, the raw noise, or both, and a side panel
shows which noise values the layer produces, which value range each block
owns, and how its real share of the ground compares to its weight.

World generation and the preview now sample layers through the same
IrisBiome methods, so the preview matches what the world places.

Model used: Claude Opus 5.5
2026-10-18 20:12:00 +02:00
piexel 6f930d1370 Apply axialFracturing to a style's built-in fractures
axialFracturing on a style only changed how that style fractures its
parent, so setting it on a style like IRIS changed nothing. It now also
makes the style's own built-in fractures axial. A fracture the pack
adds keeps its own axialFracturing setting.

Model used: Claude Opus 5.5
2026-10-18 14:38:20 +02:00
piexel 855ab90be4 Stop fractured noise from drawing straight diagonal lines
Default fracturing pushed every sample by one value along the (1, -1)
diagonal, so heavily fractured styles such as FRACTAL_SMOKE and the
IRIS family formed straight 45 degree edges. It still takes a single
fracture sample, but the push direction now turns with that sample's
value. That costs a few multiplications per fracture level: 0% on
FRACTAL_SMOKE and FRACTAL_WATER, 4% on IRIS_DOUBLE.

axialFracturing read its second offset from the same noise with
swapped coordinates, which mirrors the warp across x = z. Each axis
now samples a far, uncorrelated part of the fracture noise instead.

Both change terrain for fractured styles, so existing worlds will show
seams at the border to newly generated chunks.

Model used: Claude Opus 5.5
2026-10-18 14:35:31 +02:00
piexel 8783fa09a5 Generate schemas for snippets nested in lists and maps
Snippet discovery only followed a field's raw type, so element types of
KList, KMap and arrays were never visited. Snippets that only appear in
collections, such as decorator, deposit and tree, got no schema and no
workspace mapping.

Model used: Claude Opus 5.5
2026-10-18 13:23:08 +02:00
piexel 87dc78934f Port the v4 noise explorer and Vision map, and fix blank windows on Wayland
Brings over v4's Noise Explorer and Vision viewers: a tiled, cancellable
renderer, viewport math, palettes, player and entity markers, and
click-to-teleport.

On Wayland desktops whose Xwayland window manager does not reparent
windows (niri, sway, Hyprland), Java's X11 toolkit waits for a reparent
that never comes, so it keeps its guessed window size and insets and
leaves most of the window white. Iris now sets
_JAVA_AWT_WM_NONREPARENTING natively before opening its first window
when the desktop needs it. GNOME and KDE are left alone because Java
already recognises their window managers.

All Iris windows, including the pregen view, now come from GuiHost, and
the studio commands report a headless server instead of failing.

Model used: Claude Opus 5.5
2026-10-15 14:42:28 +02:00
piexel d35fe93f7f Compile against Adventure 5.2.0, the version Paper 26.3 ships
Paper still provides Adventure at runtime. Every Adventure method Iris calls has the same signature in 4.17 and 5.2.0, so older servers keep working.

Model used: Claude Opus 5.5
2026-10-15 14:24:20 +02:00