Commit Graph
41 Commits
Author SHA1 Message Date
piexel bdb3d16dfc Read block pictures inside their faces when antialiased
Far off, a block face is a pixel or less, and an antialiased pixel only partly on it was shaded from its centre off the
face, reading the picture beside it in the atlas. Trees and grass were speckled with other blocks' colours. Centroid
coordinates read the picture where the face is.
2026-11-12 11:36:26 +01:00
piexel ebd31db06f Draw the 3D world on the discrete GPU, off the main thread
The studio drew on the integrated GPU of a hybrid laptop, where a view
of the near ground block by block ran at a few frames a second. On
Linux it now starts again, once, with NVIDIA's EGL driver and PRIME
offload, its window's buffers made on the NVIDIA render node, unless
the environment already names an EGL driver.

Tiles are built on worker threads and sent back packed small:
positions in sixteenths of a block, colours a byte a channel. A frame
hands the GPU at most 16 MB of new meshes, and a tile keeps its old
mesh until the finer ones filling its holes are drawn.

The ground is drawn block by block until a block is a quarter of a
pixel, with up to 256 tiles in sight. Runs now record the plants on
their tops, which tint them as the near ground's plants do, and faces
of neighbouring columns in one plane over the same heights merge.
2026-11-12 09:20:20 +01:00
piexel 428f9cfb0e Draw the 3D world's far ground as runs of blocks
Far tiles showed one height and one block per column, sampled from a
single column, so trees became pillars of leaves or vanished.

For each generated chunk the server now finds, in areas 2 to 16 blocks
across, the runs of heights that are solid in at least a quarter of
the area, split where the main block changes and ending at the ground,
as Distant Horizons draws far terrain. Coarser tiles carry these runs
when asked for the ground's shape, and the studio draws each as a box
with its top, its underside where it floats, and the sides its
neighbours leave open, in the average colours of its block's pictures,
which near textures fade to.
2026-11-12 08:41:05 +01:00
piexel dccdd8c09d Draw the 3D world's near ground block by block
The near ground was drawn from the top of each column, with the blocks
raised above it, so overhangs, the wood under leaves and anything
beside a trunk were lost.

The server now finds, for each chunk it generates, every block the open
air reaches: from the top of the chunk and from beside it above the
terrain around, through leaves and water too, so caves closed to the
sky stay out. Each block comes with the sides that face that air.
Tiles a block a column carry these blocks when asked, and the studio
draws each from its model, leaving out a face its model lets a
neighbour hide unless that side faces the air. Blocks without a model
are cubes of their look or colour; water shows the sides that face the
air, and none against plants that grow in it.
2026-11-12 08:20:01 +01:00
piexel 93d6ffe70e Keep the studio responsive while block tiles generate
Block tiles held the bridge's few request threads while their chunks
generated, and coarse tiles pushed their own chunks out of the cache
before reading them. Each tile now reads its columns as its chunks
generate and coarse tiles keep none; block tiles wait on threads of
their own; the studio gives quick and slow tiles separate request
slots.

The planner now keeps any stored tile with blocks in sight, not only
drawn ones, and draws columns no finer than a pixel again: at half a
pixel a forest view held twelve million triangles. The atlas gets
mipmaps down to a pixel a picture, so far textures fade to the flat
colour of coarser ground.
2026-11-12 08:00:33 +01:00
piexel e759edadfe Show generated blocks in the 3D world out to the horizon
Blocks came only on tiles of one block a column, so most of the view
showed biome colours, and zooming out swapped the blocks already seen
for them.

Every tile now carries blocks. The server generates a tile's chunks on
a pool of their own, finer tiles first, keeps up to 512 MB of chunk
tops, and stops a tile the studio cancels. A tile's quick biome version
is drawn only where no tile with blocks of any level is known, so
ground once sampled stays in sight until its replacement has blocks
too. Wider columns take their highest raised block as their top. The
planner now splits columns down to half a pixel and draws up to 192
tiles.
2026-11-12 07:34:49 +01:00
piexel 6de53ee898 Cut leaves out along their pictures in the 3D world
Raised blocks shared the ground's opaque material, whose pictures have
their open pixels filled in, and every face between two raised blocks
was left out, as with fast leaves. The atlas now marks pictures with
open pixels; blocks showing one are drawn with the cut-out material
the grass uses, and hide no face of what they touch, as Minecraft draws
leaves with fancy graphics.
2026-11-12 07:08:23 +01:00
piexel 4e46eb4a6a Draw trees in the studio's 3D world as whole blocks
Each column carried only its highest solid block, so a tree's leaves
stood as a pillar down to the ground. The ground is now the terrain's
top, and the solid blocks above it go to the studio as a list per
column. The 3D world draws them as cubes and leaves out the faces that
touch the ground or each other. The 2D map still colours and shades a
column by its highest block.
2026-11-12 07:02:17 +01:00
piexel 55f6a06f9f Show decorators, snippets and ground cover in the studio
Decorators get their own pattern view from the decorant module: each
biome's decorators from above, placed where their own noise allows.

The Palettes and Decorators views list the pack's snippet files in a
Snippets group, with the biomes that use each one, and mark entries
read from a snippet. PackResources gains snippetOf and snippets so a
module can tell where a settings value came from.

The 3D world draws what stands on the ground, such as grass and
flowers, as the block's own model. A plugin block that is solid on the
server but shown to players as a plant no longer counts as ground.
2026-11-12 04:09:20 +01:00
piexel 67063b02d7 Fix the studio's 3D terrain: blank views, grey blocks, pale colours
The 3D views looked for tiles across the world's whole build height. In a
pack with a tall sky most of a tile's box is air, so once the camera came
close to the ground the planner drew sixteen far tiles and none under the
camera. Tiles are now looked for between the lowest and highest ground
drawn so far, and ranked by how far they lie from the ground in the middle
of the view instead of by their centre point.

Saved tiles named blocks without their properties, which matched no model
variant, so grass and every plugin block drew as flat grey. Saved and
generated tiles now carry the state players see, which for a plugin block
is the vanilla state it borrows.

Colours went through three.js colour management as if they were linear
light and came out pale with flat shading. They are drawn as given now, as
v3e does. Gaps in cut-out textures such as leaves take the texture's own
colour instead of black.

Also in the studio:
- Right click or Ctrl+click on 3D terrain teleports there, as on the map.
- The land, sea and cave biome layer views are gone.
- New icons for the views and the map tools that shared one or said
  something else.
- A saved world with nothing finished says so instead of reading forever.
2026-11-12 01:11:31 +01:00
piexel 5e211fb1c4 Show a view's entries as a folder tree
Folders start closed, show how many entries they hold and nest by path,
so trees/oak sits under trees. The chosen entry's folders open on their
own, and a search opens every folder with a match.
2026-11-11 15:14:04 +01:00
piexel a71b27ce31 List a pack's unread fields once and draw plugin blocks in the palette view
Unknown fields used to log one warning per field per file, with a snippet,
every time a pack loaded. A pack without modules logged about 2200 of them at
startup. Now they are gathered per pack and stated as one list a few seconds
after the first, one line per field with its first file and how many others
hold it. Each file's field is stated once per server start. The header says
when the pack loads no modules, which is why layers, wall and decorators
were unread here.

The Bukkit warning path stripped colours. It now keeps section-sign codes
and still reads nothing else as markup.

The palette view drew CraftEngine blocks by their server-only state, such as
craftengine:custom_7, which has no assets. The pattern header now names a
plugin block as the pack does and adds the vanilla state players see, which
the studio draws. Asset reads check plugin resource packs before the client
jar for minecraft paths too, since those packs replace vanilla blockstates.
2026-11-11 14:34:45 +01:00
piexel 24c03b66d7 Studio: keep view stripe focus ring inside its buttons 2026-11-11 07:25:57 +01:00
piexel 91f23c52b8 Show the blocks the world generates in the map and the 3D world, and drop the Height map view
Map tiles can carry the block on top of each column, read from chunks generated in memory through the world's own stages. The 2D map colours by them with a toolbar toggle and the 3D world gets a Blocks colouring with textures, both at a block a pixel or finer. The Height map view goes, as the 3D world shows heights; the Shading toggle keeps its icon under its own name.
2026-11-11 02:45:01 +01:00
piexel 0812c55425 Name the shown view in its island and list every view by name from the stripe 2026-11-11 01:23:25 +01:00
piexel 49e8bf7885 Lay the studio out as IntelliJ's islands: a view stripe, icon tools and a tinted frame 2026-11-11 01:15:31 +01:00
piexel 6cf5d7131b Give every studio view an island header that holds its tools 2026-11-11 01:00:11 +01:00
piexel 4bdac458c0 Fit the studio's toolbar, popups and right panel to its islands 2026-11-11 00:52:59 +01:00
piexel 9f3da18f2b Steady the studio 3D terrain's detail and move it like the map
The detail was chosen with one threshold for the whole view, which flipped
as the camera moved and swapped large areas between coarse and fine at once,
and most of the tile budget went to the backdrop. The widest-looking tile is
now split first, so a small move changes a tile or two.

Ground moves on a drag and turns on a right drag, without inertia, and the
camera stays above it. The sampling note waits until sampling lasts.
2026-11-11 00:44:14 +01:00
piexel 468802ac14 Float the studio's left island on top of the map, as v3e did 2026-11-11 00:06:30 +01:00
piexel 3ac240f936 Show each block's Minecraft texture in the studio's block lists, as v3e did 2026-11-10 21:12:19 +01:00
piexel f9e33f560d Make the studio's left column one island and use IntelliJ's icons throughout 2026-11-10 21:03:14 +01:00
piexel bce3142517 Lay the studio out as v3e did: compact view list, panels as cards, view lists in the left column 2026-11-10 20:56:34 +01:00
piexel 3c03bba7e7 Create and delete procedural objects from the studio's entry list
A view's entries can now be created from a starter tree in a chosen folder and deleted from the browser. Deleting lists the pack files that still name the entry, then moves it to the desktop trash, or the pack's .iris/trash where there is none. An EditableSceneView opts in with SceneCreation; the host does the writing.

v3: d6e6fc3ef
2026-11-10 13:42:30 +01:00
piexel 7eb45cebf6 Edit node values as curves, folded sections and suggestions in the studio
Nested settings fold into sections and lists of objects into items. Curve
values show a sparkline and open a points or shape editor, and a number or
range can be made a curve. Blocks, resources and roles are suggested while
typing, and string lists are typed as a, b. The studio asks the bridge for
the platform and pack lists (suggestions endpoint).

No terrain, pin, golden or digest moved; the files written are the same JSON.

v3: db53f834a
2026-11-10 13:34:32 +01:00
piexel dbfc1d0c34 Duplicate, fit and deselect nodes from the keyboard in the node editor
The node editor only took Delete; Ctrl+D, F (also Home) and Esc now duplicate, show every node and clear the choice, and Backspace deletes. The keys are rebindable studio shortcuts, shown beside Duplicate and Delete in the node menu, and take precedence over the map's F while the editor is shown.

v3: 1c8af6484
2026-11-10 13:08:05 +01:00
piexel e2ebc7fe8a Show reading progress for saved worlds and read a region's chunks in parallel
The saved-world view only said "Reading" with no sense of how far along it was, and the first look at a region read its 1024 chunks one after another. The status bar now shows a bar measured against the most tiles pending since the last idle, and the region's start read uses all cores.

v3: 3b899b8d1
2026-11-10 13:02:17 +01:00
piexel 8136fa857f Pick procedural parts by clicking blocks in the studio scene view
Authors could not tell which part of a procedural object placed a block. A click on a block in the Procedural view now finds its part and chooses the node that draws it; choosing a node lights up its blocks and draws everything else faintly. SceneView gains hasParts and parts (BlockParts), served as scene-parts, aligned with the scene's blocks. No pins moved: the trace bakes with its own builder and generation is untouched, ProceduralObjectsGoldenTest digests are unchanged.

v3: ff0190384
2026-11-10 12:44:27 +01:00
piexel a8aaa3c3cf Rebind the studio's keys from a settings dialog
The studio's keys were a fixed table, so the views, map toggles, zoom and node editor undo and redo could not be changed. The keys now come from a store the user rebinds in a settings dialog, saved to studio.json in the app's user data folder; tooltips, the view list, the hover card and the help dialog read the live keys, and a new key that another shortcut already uses is warned about.

v3: 8930afbb3
2026-11-10 12:32:42 +01:00
piexel 4950cf1969 Show far leaves in the studio scene view
The engine makes leaves with no wood in reach persistent, but the studio
gave no sign of which ones they are. The block list of a scene now counts
the leaves too far from wood and can draw only them. The rule is kept in
step with IrisProceduralBlocks.isLeafTooFarFromWood by a comment on both.

v3: eb3bae72d
2026-11-10 12:15:21 +01:00
piexel 7042538b89 Draw block textures on saved-world columns in the studio 3D view
The Blocks colouring of the saved-world view showed one flat average colour per block. Columns a block wide now show their top block's real textures: the top, the side of the top block, and the side of the blocks under it (dirt under grass), tinted as the client tints them. Coarser tiles keep the flat colours.
Textures go in one growing atlas; textured faces are one quad per block, and sides deeper than 16 blocks under a column's top stay a single flat quad.

v3: 950aca969
2026-11-10 12:12:19 +01:00
piexel df80f2a99d Sink studio 3D ground under water toward a deep colour by depth
The 3D terrain only laid one flat blue sheet over the sea floor, so depth and every water line were hard to read. Ground under water now sinks toward a deep colour the further down it lies, with a lighter sheet over it.

Studio only: no pack, seed or Java pin moved. Not run in the app.

v3: 23182951f
2026-11-10 12:04:13 +01:00
piexel 69b0303148 Show noise pick charts and a height legend beside the studio 3D world
The 3D world view had no side panel. Biomes and Regions colourings now show how the noise picks what the camera sees, measured over the box around the ground in view; Height shows how much of that ground lies in each height band, highest first.

v3: e5c4b0958 a223dd603
2026-11-10 12:00:58 +01:00
piexel 6d4d14606c Stream endless level-of-detail terrain into the studio 3D views
The world, noise and saved-world 3D views drew one fixed square. They now draw tiles of block columns around whatever the camera looks at, coarse backdrop first and then finer down to about a column per pixel, fetched through a byte-budgeted cache with cancellation. Coarser tiles stand in with holes where finer ones are ready, and ground drawn before a layer changes stays until its tiles are sampled anew. Pack, server and seed output are untouched; no pin or golden moved.

v3: 9ee539ee0 4bd06dbcc c3913e8f4 cc2caf8fa 0b9cb6156 23b98e5ff 2006e6ba8 de1e06f88
2026-11-10 11:55:34 +01:00
piexel 30c063853d Draw studio 3D terrain as one-block columns
The studio's 3D views drew a smooth mesh; they now draw block columns sampled one block per
pixel, 512 blocks a side, with neighbouring faces of one height and colour merged, sides only
where a column stands above its neighbour, and flat Minecraft-style face shading. Pack and
server are untouched.

v3: 1e8c47918 030ee0604 4eb7da0ce
2026-11-10 11:39:47 +01:00
piexel 6f772a2808 Orbit studio 3D views around the surface in the middle
Turning the camera now pivots on the ground or object at the centre of the view instead of a point in the air. Right-drag and middle-drag pan, and scrolling zooms toward the cursor. Terrain finds its pivot by marching the height grid, so a pick does not test every triangle.

v3: e53ca3b72
2026-11-10 11:34:22 +01:00
piexel 723764a782 Show server CPU and heap use in the studio status bar
The bridge sends a usage event every second and when a studio connects: CPU with 100 per busy thread, like top, and the Java heap in use. The status bar shows both beside the cursor and turns each warning-coloured at 80%.

v3: e1e158364 11e4ba0b1 268e72b9c 275b5965b
2026-11-10 11:31:27 +01:00
piexel d28b9d13cc Draw players as facing arrows on the map
The studio map showed players as plain dots. A blue arrow with a white edge and dark outline now points where the player looks, with the name in a pill above, readable on any terrain. Markers carry a yaw (rounded to 5 degrees so head turns do not flood the players event); entities keep their dot.

v3: 3914c4667
2026-11-10 11:26:49 +01:00
piexel 76dcab175b Time procedural bakes in the studio with a median-of-five meter
Authors could not see what a procedural object costs generation. The Procedural view now bakes the chosen entry five times in the background, keeps the median run, and rates it Light, Moderate or Heavy against a server tick, with each stage's time in the tooltip. SceneView gains isBaked and timeBake (one run, a BakeRun); the studio asks five times so a newer choice stops the rest. No pins moved: generation bakes with BakeProfile.NONE and nothing in packs changed.

v3: 9e30508e3 7d240ddf8
2026-11-10 11:22:51 +01:00
piexel a81a3abb9f Add a license per folder
api is MIT; module and studio are GPLv3 (module carries Iris code).
2026-11-06 16:54:29 +01:00
piexel 4e226b93f4 Merge IrisStudio into studio/ with its history
git-subtree-dir: studio
git-subtree-mainline: 68ae3c8d3a
git-subtree-split: 1c50eaf776
2026-11-06 16:52:58 +01:00