18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-01 16:27:11 +01:00
Commit Graph

270 Commits

Author SHA1 Message Date
Claude 231bd3eb84 Bugs: the big and the huge ones smaller (2.5x and 5x the normal ones, were 4x and 9x)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 12:53:29 +01:00
Claude 5d6f443450 Review 28.11: rain cells always bound, the velocity target and the blur pass only when needed
- the cells of the rain: the opengl renderer makes their storage (cleared) with the first bind and keeps it
  bound, the glasses read the cells only when they were worked out in the frame (scene_ubs.rain_state.w,
  both renderers): never the storage before the first rain, nor the stand-in of the vulkan renderer
- the pass of the motion blur and (opengl) the velocities drawn only in the frames which need them: the
  motion blur with something moving, the taa, or a glass of the rain, the insects or the snow in the view
  (windscreen_water::wants_glass_requests(): the cab seen from inside has one, or the view is not from the
  cab). the glasses keep their drops and haze with the motion blur off, the motion is blurred by 0 then

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 12:53:29 +01:00
Claude 160e8b8a46 Windscreen water: the review of 27.11 (the snow list stops when full, the cells of the rain only for a cab with a glass of the rain)
- snList() stops listing when its SN_REFS are taken: no lumps worked out for nothing, and the cover of the texel counts only the
  sprites the glass lays (no gaps where it took the dropped ones for covering); OpenGL 4.6 and Vulkan
- update_rain_cells() gets no rain for a cab without a material of the shader of the rain in this weather
  (windscreen_water::wants_rain_cells(); as before when the simulation isn't used)
- Vulkan: a rain-cell buffer which can't be made leaves the glasses with rain dry (a small stand-in the pass sets hold) instead of
  failing the whole windscreen water; it is still made at the start, since the pass sets and those of the cullings hold it

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:15 +01:00
Claude 44eedbbc97 Windscreen snow: five grids of lumps, six sprites a texel at most, lighter to lay [skip ci]
Laying the sprites took most of the snow on the glass (a covered glass ~1.0 ms at 2560x1440): nine grids, each covering the
glass a few times over, put many sprites one on another at a pixel. Five grids (the same sizes and tiles, the snow they need
from 0.02 to 2.6 mm) still close the glass; the layer lists at most six sprites a texel, two flakes and the top lumps (those
under them are covered): ~0.6 ms. Also the flakes as glassy as 0.5 (were 0.35), the lumps of thin snow at most 0.88 opaque so the
flakes under them show through, and a sprite reads the snow of the texel of the map under its centre (two reads, not eight).
OpenGL 4.6 and Vulkan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:15 +01:00
Claude 6db46bbc83 Windscreen snow: the air at speed blows off only thin dry snow, fewer flakes bounce off [skip ci]
SNOW_BLOW halved, blown up to 0.25 mm (was 0.6 mm), 15% of the dry flakes bounce off at speed (was 40%): the glass gets covered at 100 km/h too, a little slower than slowly (OpenGL 4.6 and Vulkan).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:15 +01:00
Claude 5fe115657f Windscreen snow: a glass takes its slot on the material the cab has now, no fallback to the first glass in the shader
The renderer may give a glass a fresh copy of its material after the weather changed; the glass keeps its first submodel and re-resolves its material in assign(true). The fallback of mat_snow_windscreen (any material without a slot took the snow of the first simulated glass) is gone (OpenGL 4.6 and Vulkan).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:14 +01:00
Claude 501784ab86 Windscreen snow: bigger flakes and lumps, atlas of fleece only, glassy and white sprites [skip ci]
- the flakes and the lumps bigger; the drops and the wet lumps gone (their atlas slots hold fleece now)
- the lumps take the fleece tiles, most often the marked ones
- each sprite at random from glassy (stuck, half melted, bends the picture) to fully white (dry powder),
  whiter where the snow is thicker

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:14 +01:00
Claude 04e877ffa6 Windscreen snow: compiles with the NVIDIA OpenGL driver, the state of the glasses in the log [skip ci]
- water_snow.comp named a variable "packed", a reserved word of GLSL: the
  NVIDIA OpenGL compiler refused the program, so the whole simulation of the
  windscreens was off under OpenGL. Now "packing".
- mat_snow_windscreen.frag: a material without its slot takes the first
  glass whose snow the simulation keeps.
- The log says, once it changes, whether each glass is baked, what it was
  built as and what its material is now, whether its snow is simulated,
  and whether the layer of the snow is laid: to find why the snow stays off
  under OpenGL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:14 +01:00
lcddisplay 26ed8650ff Windscreen: rain rivulets run down the glass in the world, the snow as dense as before [skip ci]
- The rivulets of the weight (mat_rain_windscreen.frag) run down the glass
  in the world whichever way its texture lies on it: their layer is turned
  by a quarter turn at a time to the gravity on the glass in its UV (no turn
  on a glass mapped upright, so it looks the same there).
- The grids of the lumps of the snow use the dense tiles again (2-5) as
  before the change of the tiles, the packed and wet lumps on 3% of the
  cells; the small clump, the dots and the scattered crystals (0, 1, 6, 7)
  only among the flakes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:14 +01:00
Claude b5c3a87dc5 Windscreen snow: the layer lists the sprites of each texel, the glass lays them sharp [skip ci]
The layer of the snow held the snow laid together at ~1 mm a texel, so the
glass showed it filtered: softer lumps, flatter normals and refraction than
when every pixel laid the sprites itself. Now water_snowlayer.comp lists, for
each texel, the sprites coming within it (up to 16, in the order they are
laid, the covered ones left out), and mat_snow_windscreen.frag lays only those
at its pixels, sharp from the atlas, as the full look through every cell did.
The layer grows from three to four uint a texel (+8 MiB).

The snow also uses all the tiles of the atlas: mostly the icy fleece of the
first two rows (0-7), now and then a lump of packed snow (10-13) or, more
rarely, a wet one (8, 9); a drop now and then a wet lump with its film (14).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:14 +01:00
Claude cc5bf11373 Windscreen: no drying or melting after the precipitation; the glass clears at once [skip ci]
Reverts e8a0e78 (kept on the branch stan/szyby-schniecie-2026-11-14).
The glass fills with rain only while it rains ("rain:" with precipitation)
and is clear at once when it doesn't: the rain stopped, or the glass holds
snow, so a glass switched from snow to rain starts dry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
Claude 4d993908f5 Windscreen: rain keeps its last state and dries, snow stays and melts after snowfall [skip ci]
- Rain drops, rivulets and micro droplets run on a rain clock (rain_state.w)
  that only advances while it rains, so they freeze when the rain stops and
  fade as the glass dries.
- Glass wetness fills only during "rain:" weather.
- Snow glasses keep their snow material after snowfall ends (until rain),
  so the snow stays, melts above 0 C into a wet film and drops, and dries.
- The baked snow layer uses a larger drop share while melting.

No new assets; no change to file formats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay 3de73b0e85 Windscreen snow: the layer over the rectangle of the glass, one for the cab
The layer of 1024 x 1024 texels over the whole uv gave a glass taking a part
of its texture too few of them (the EP09 104ec: ~470 across the glass, 1.8
pixels of the screen a texel at 1080p), so the lumps came out soft. Now the
layer lies over the rectangle of the uv the glass takes, its 2M texels across
and down as the glass is wide and high (~1 mm a texel); the renderer works
it out from the map of the glass when it sets the glass up and puts it in
the storage (water.glsl, water_layer_rect).

One layer, for the first glass of the snow of the cab (a cab has one as a
rule); a second one lays its snow at every pixel as before the layer, the
same look, slower. The storage of the water: 58 MiB before the layers,
82 MiB now (106 MiB with the four layers of 1024 x 1024).

No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay 02a0de85c2 Windscreen snow: lay the sprites into a layer of the glass, the glass only reads it
The glass of the snow laid its nine grids of lumps (81 cells) and its flakes
at every pixel in every frame, ~6-9 ms of the GPU at 1080p. Now a compute
pass (water_snowlayer.comp, the sprites in snow_sprites.glsl) lays the snow
of a glass into a layer of 1024 x 1024 texels over its uv after the step of
the snow: a band of every 8th row in a step (the snow under a lump changes
slowly) and at once wherever a blade went over the glass. The glass reads
the layer filtered (mat_snow_windscreen.frag), as the glass of the rain
reads its cells. Laid front to back: a texel stops once the snow over it
covers it, and a cell reads the map only when its sprite reaches the texel.

The storage of the water grows by the layers, 12 MiB for each of the four
glasses. The look stays as it was.

No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay f66d825a04 Windscreen snow: a wiped edge that stays, small gaps, blur, slabs sliding off [skip ci]
- The snow no longer spreads onto its neighbours by itself: the snow
  piled outside the sweep slipped onto the wiped glass whenever the
  blade stopped, and a rim grew along the edge of the wipermask.
- Lumps on thick snow are 12% smaller, so a plastered glass keeps a few
  small gaps.
- The scene behind the snow is blurred as the rain mists the glass: from
  0.05 mm of snow, fully from 0.6 mm, clear again behind a blade.
- Now and then a slab of the snow lets go and slides off the glass,
  wiped or not: each slab from a random depth of snow in its middle
  (0.4 .. 2.5 mm), a slab every 3 s on a glass plastered over, fewer on
  a frozen glass.

No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay 15ed61f587 Windscreen snow: icier lumps, slower build-up
Lumps stay 60% opaque until the snow is deep and take a faint blue ice
tint. Only 1.5x (was 4x) of the snowfall share reaches the glass, and
the facing gain from speed is capped at 6, so overcast 1.5 plasters
the glass in about ten minutes standing instead of a few.

No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay af4f01ec00 Snow windscreen: the tiles of the atlas from the top of its picture
The shader counted the rows of the tiles from v = 0, the bottom of the
picture of the atlas as the texture holds it, while snieg_atlas_maszyna.py
numbers them from the top: every tile drawn was the one of the mirrored
row (the fleece of tiles 2-5 came out as slush, drops and wet lumps, 6-7
as the clumps with stars...), so the glass showed other shapes than the
atlas and its previews. The rows are counted from the top now, of the old
2 x 2 atlas too (its tiles at the places the old snow shader used). No
assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay 62a6a3cf40 Snow windscreen: all icy fleece, packed lumps and drops only now and then
All the grids of lumps are the icy fleece now (the small puffs and icy
clumps of tiles 2-5, the look that was liked), bigger to close the glass
(1.2-3.0 cells, the fleece fills about half its tile), eight of them, by
2-3 mm. A lump of packed snow comes in 3% of the cells of one grid, the
single crystals between the lumps are small puffs instead of dots, and a
drop of a melted flake shows on 5% of the wet texels (35% before). A grid
has a share of its cells having a lump at all. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay 84b38329e3 Snow windscreen: smaller packed lumps, more fleece, more refraction
On the five grids of abc14ed: the lumps of packed snow are smaller (1.2-1.6
cells, 1.9-2.3 before), four grids of them instead of two so they still
close the glass (by 2-3 mm); two grids of the small puffs and icy clumps
(tiles 2-5, the fleece) instead of one of puffs and crumbs; the icy snow
bends the picture as much as a drop, up to 98% opacity (95% before). No
assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay 6f7e0a0bcf Snow windscreen: back to the five grids of lumps that stay (abc14ed)
The look of abc14ed was liked best: the lumps fixed once per cell, five
grids piling up (dots and crumbs, puffs, clumps, two of packed snow). The
shader is that of abc14ed again; 5fb1173 (ten grids of icy clumps over
packed snow) and 4d471f7 (a matte fill instead) are undone. No assets
change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay bc33ba3c01 Snow windscreen: a matte fill under the clumps, no pavement of domes
The two grids of packed-snow lumps under the icy clumps showed through as
a grey pavement of round domes (their normals shaded each one). They're
gone; from 2 mm of snow a flat matte layer of the colour of the packed
snow of the atlas (its tile averaged by a coarse mip) fills the gaps under
the clumps, closing the glass by 3 mm with the clumps on it. No assets
change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay 80bafdc7a5 Snow windscreen: the icy clumps all the way, packed snow only beneath
The grids that close the glass drew the round lumps of packed snow over
the icy clumps (tiles 0-7, the look that was liked). Ten grids now: eight
of dots, icy clumps and crumbs, more and bigger as the snow piles up, and
under them all two of packed snow coming last (2.2-3.4 mm) to fill the
gaps between the clumps; the glass closes by about 3 mm still showing the
clumps. A grid is skipped where the snow of the pixel is far below what
its lumps take. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:13 +01:00
lcddisplay c0589ae696 Snow windscreen: lumps that stay, in five grids that pile up
A cell of the lumps picked its tile, size and whether it was there at all
from the snow of the map every frame: as the snow grew it turned from
crumbs to a clump to a lump of packed snow, and the dots came and went with
the wetness, so what had landed kept changing and the glass never filled.
Each cell has its lump fixed once now (tile, place, turn, size, and the
snow it takes); it comes when the snow around reaches that, grows a little,
and stays until the snow goes. Five grids, shifted, come one after the
other as the snow piles up (dots and crumbs, puffs, clumps, two of packed
snow), each on the ones before, closing the glass by 3 mm; sooner in a
heap. The dots don't depend on the wetness. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay cd7fcd03a2 Snow windscreen: the refraction doesn't punch holes into the snow
The bend request of the snow (all of it since the wet look) makes the
post-processing put 85% of the picture from the bent place, up to 96 px
away, in place of the pixel, with the snow drawn in it: an opaque pixel of
snow took the colour of a gap of the snow elsewhere, so the gaps spread
over the cover and it never closed, however much snow lay there. The bend
is scaled down by the opacity of the snow now (none from 95%): the snow
bends the picture only where it lets the light through. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 873937b3a8 Snow windscreen: a front glass at speed gets the snow coming at it
A front glass at speed built up its snow no faster than a standing one:
the flakes come at a glass by the relative wind along its outward normal,
and the outward side of the frames of the map (from the middle of the box
around the cab model) and the air against the cab (from the matrix of the
vehicle and its velocity) don't agree for every cab; with them disagreeing
the glass got the snow of the eddies only (1.5 mm a minute), never closed
between the lumps. The glass takes the snow coming at it along its normal
from either side now (the glass the driver looks through leads); where the
sides agree nothing changes. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 2450612eeb Snow windscreen: wet thick snow closes the glass, flakes stick to snow
- The cover of wet snow (wetness above 0.35, near zero, where the flakes
  land half melted) was drawn with the slush tile, translucent by itself
  (alpha ~0.4), so a glass covered in any amount of it never closed. The
  cover is packed snow once it gets thick (from 0.75 mm, opaque at 2.5 mm),
  greyer when wet by its tone; slush only while it's thin.
- The dry flakes bounced off a moving glass also where snow lay already,
  so the wiped glass (bare, wet from the blade) caught more of them than
  the snow around it. They bounce off a bare glass only now (below
  0.05-0.3 mm of snow); on snow they stick.
No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 12218fc6d7 Snow windscreen: the map gets all the snowfall, and melts as fast as it can
Two reasons the glass never got plastered:
- the flakes a second the renderer gives (water_snow.x) are a quarter of
  the snowfall (the 0.25 of perground, meant to thin out the particles of
  the drop passes), so the map got a quarter of the snow: a glass not
  facing the motion (standing, side windows) built up 0.4 mm a minute,
  6.5 minutes to opaque. It takes all of it now (x4): 1.5 mm a minute.
- the warm glass melted 0.003 mm of water a second for each degree above
  zero, ~1 kW/m2 a degree, so near zero a standing cab melted the snow
  4-5 times as fast as it came. 0.0002 mm (~70 W/m2 a degree) now.
No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 092637afa8 Snow windscreen: the snow piles up into an opaque cover
The lumps of a cell only changed their tile and size as the snow grew, and
the cover stayed translucent (at most 90%), so the glass never closed. A
third grid of lumps lies on top of the cover now (it piles up), the cover
sprites are bigger (2.4 cells), and from 0.75 mm the cover thickens to
opaque at 2.5 mm, bending the picture behind less and less. No assets
change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 9c891272a2 Snow windscreen: the snow stays on a moving glass until it's plastered
At speed the air blew the thin dry snow along and off the glass as fast as
it came, and the glass warmed by the cab melted it near zero, so the glass
never got covered. The air blows only the thinnest powder (below 0.2-0.6 mm,
a quarter as fast), the glass is as warm as the given warmth (not 1.5x) and
the air cools it sooner (/(1 + v/10)), and the lumps close into a cover from
0.25 mm. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 21b3cefaee Snow windscreen: the snow looks wet, refracts, and plasters the glass
All the snow bends the picture behind it now through the post-processing
(the icy lumps at 70% of the bend of a drop), not only the drops and the
slush; the cover lets 10-30% of the light through and the snow glints
more (gloss 0.8), so it looks wet in any frost. The lumps run together
into a cover from 0.35 mm of snow (full by about 1 mm), and more snow
comes to a glass not facing it (the eddies 0.6 m/s), so a standing cab's
glass gets plastered too. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 0d770365ff Snow windscreen: the lumps close into a cover
Too much clear glass stayed between the lumps. They're in two grids now,
the second shifted by half a cell, so they overlap; a cell surely has a
lump from 0.5 mm of snow (fewer below), the lumps are bigger, and they run
together into a cover of packed snow from 0.7 mm (full from 2.1 mm), so the
glass gets plastered. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay c5adb1db9b Snow windscreen: the same snow on the wiped glass as around it in frost
A blade left a wet trace on any glass, and the snow landing on it there
counted as wet: lumps of slush in the sweep, icy clumps around it. The
trace is left only on a glass above zero now (none below -1 deg C, full
from +1), and the water on a glass below zero freezes into packed snow
(0.02 mm a second, from -2 deg C fully). No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 7e7ca904c0 Snow windscreen: icy clumps of grains instead of star crystals, more of them
The tiles of star crystals (single and in flakes, also around the clumps)
are gone from the atlas: every dry tile is now an icy clump of grains, as
the crumbs - a dot, a few grains, small and bigger clumps. Many more of
them (35% of the 7 mm cells holding a little dry snow), the lumps cover the
glass from 1.2 mm of snow (fully by 3.5 mm), and fewer dry flakes bounce
off a moving glass (40% from 25 m/s), so the snow can plaster the glass.

The atlas (snieg_atlas_maszyna.py) changes its tiles 0-5 and 10, 11. To be
added to the SVN: textures/fx/snow-atlas.tga and
textures/fx/snow_normalmap.tga.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay d8643c42a1 Snow windscreen: sizes in metres of the glass, lumps in heaps
The sprites were sized in texels of the map, and a glass taking only a part
of its uv has big texels: crystals of a few cm (the big stars at speed),
lumps in a coarse even grid. The crystals and drops are in cells of 6 mm of
the glass now, the lumps in cells of 16 mm, from the size of the glass in
the frames of its map. The lumps come in heaps (a random number every four
cells, blended): likelier and bigger there, barer glass between; they sit
anywhere in their cell. Single crystals are needles, plates, rarely a star.
No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:12 +01:00
lcddisplay 2c23d12070 Snow windscreen: no big star flakes, dry powder bounces off a moving glass
The small lumps of dry snow were drawn with the tiles of a few star
crystals, a glass covered in big stars at speed. They're crumbs now (a
flake breaks up hitting the glass); single crystals are rarer (5% of the
texels) and smaller (~5 mm). Dry flakes (below -3 deg C, on dry glass)
bounce off a moving glass: 85% of them from 25 m/s, so dry snow builds up
slowly at speed; the wet ones stay. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay 9c2f857210 Snow windscreen: lumps in cells as the drops of the rain, not a sprite per texel
A sprite on every texel holding snow covered the glass in an even pattern
of dots. The snow is drawn now as the rain is: a lump in a cell of four
texels at most, the more snow around the likelier and bigger, sizes from a
few mm to a few cm (most small, wet ones bigger), clear glass between them
until the snow gets thick and packed snow covers it. Single crystals of dry
snow show on 12% of the texels holding a little of it, drops of melted
flakes on some of those holding only water. The haze stays near the snow.

The atlas (snieg_atlas_maszyna.py) gets bigger wet lumps with a bigger
frosted core. To be added to the SVN: textures/fx/snow-atlas.tga and
textures/fx/snow_normalmap.tga.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay f0e51a8d84 Snow windscreen: the blades wipe the snow as the rain, wet snow refracts
The blades no longer push the snow along into ridges: they take what they
go over (a little stays, a wet trace), as they wipe the rain. Near zero the
flakes land wet, half of them water, and the glass is warmer (the given
warmth x1.5, cooled less by the speed), so the snow turns into lumps of
slush sooner. The wet lumps and the slush of the atlas bend the picture
behind them through the post-processing, as the drops do.

The atlas (snieg_atlas_maszyna.py) changes its tiles 8, 9 and 14: grey
translucent lumps with a frosted core, a darker rim and a dome for the
refraction. To be added to the SVN: textures/fx/snow-atlas.tga and
textures/fx/snow_normalmap.tga.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay 5c5cf78c17 Snow windscreen: the snow drawn only with sprites of the atlas
The procedural snow (cells with timers, the clumping field, the noise of the
layer and its edge, the wiper mask read in the shader) is gone: what lies on
the glass comes from the map of the simulation, and it's drawn with sprites
of the atlas in two layers, as the drops of the rain and the bugs:
- a flake on every texel holding snow (crystals, flakes of a few of them,
  crumbs; wet lumps; a drop where only the water is left, bending the
  picture behind), the more snow the bigger;
- under them a bigger sprite every three texels where the snow is thicker
  (clumps, packed snow, slush), overlapping into a cover.
A glass without a map (no simulation) has no snow.

Uses a new 4 x 4 atlas (2048 x 2048, snieg_atlas_maszyna.py):
textures/fx/snow-atlas.tga and textures/fx/snow_normalmap.tga, replacing the
2 x 2 ones of the same names. Without them (a 1024 atlas) the shader takes
the four old tiles for the sixteen. To be added to the SVN: the two files.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay 0d0bea2744 Snow windscreen: thin flakes let the light through
A single flake was drawn nearly opaque and lit only from the cab, a dark
speck against the lit snow outside at night. A thin flake is 45% opaque now
(full from 2.5 mm of snow) and the picture behind it is blurred, as through
ice crystals. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay f4ae5b826b Snow windscreen: the snow a blade pushes is counted once
A texel ahead of a blade took the lines of every neighbour pointing at it,
and the lines overlapped, so the snow pushed along grew at every step and
the ends of the sweeps filled with ridges even on a glass with hardly any
snow. A texel in the sweep takes only the line behind itself along the way
of the blade, one off the sweep the line of one neighbour. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay 94ea972bd9 Snow windscreen: the snow a blade pushes doesn't slip behind it
The snow piled in front of a blade slipped onto its lower neighbours, the
texels the blade had just wiped among them, so it left a stripe of snow on
the wiped glass at every step. Piled snow slips only where no working blade
goes over. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay b502311b1e Snow windscreen: a blade leaves the glass clear, not streaks of the snow it pushes
A blade going over the texel holding the snow it pushes left 3% of all of it
there, a stripe of snow for every texel of its way; it leaves 3% of the snow
up to 0.03 mm now, and a wet trace of at most 0.015 mm. A thin film of water
dries and runs off in a few seconds, the water spots are fewer, the haze
needs more snow, the packed snow is whiter. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:11 +01:00
lcddisplay ba3129275c Snow windscreen: the snow of the glass simulated on a map that keeps it
A glass of mat_snow_windscreen (the material of the "snow:" block, with a
mask of the wipers) gets a slot of the windscreen water storage, as the
glasses of the water could, and two maps of its snow (a step reads one,
writes the other): the snow, the water, how packed the snow is and the shape
of its flakes for each of 256 x 256 texels of its uv. water_snow.comp runs a
step a frame, both APIs:
- the flakes land as many as come to the glass facing the snow against the
  cab (and a few from the eddies), the dry ones bouncing off at speed;
- the blades take the snow they go over (a little stays, a wet trace) and
  push it ahead of themselves, leaving it as ridges at the ends of their
  sweeps; piled snow slips onto its neighbours into a wedge;
- the glass is warmer than the air (the cab is heated, less so at speed):
  above zero the snow melts into water, slush slides down, dry powder is
  blown along by the air at speed, the water runs and dries.
mat_snow_windscreen.frag draws the map: flakes from the atlas where the snow
is thin (water spots where it melted), a layer with a torn edge, as opaque as
it is thick, grey when wet, its relief from the slopes of the map; the wet
glass bends the picture behind through the post-processing. Without the
simulation the glass is drawn as before.

The glasses are found again when a material of the cab changes its kind
(the weather switched its shader). The drop passes run only for glasses of
the water. No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:10 +01:00
lcddisplay 0531cd2726 Rain windscreen: fewer drops left by a blade (wiper_miss 0.005)
No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:10 +01:00
Claude d0ef4130d0 Windscreens: a third of the drops left by a blade, and the snow glass through the post-processing
- rain_cells.glsl: wiper_miss 0.05 -> 0.0167, a blade leaves three times fewer drops where they were
- mat_snow_windscreen.frag (the snow glass, made for the game apart from this repository) added, asking
  the post-processing for its haze and its bent picture through the velocity target as the rain and
  the insects of this version do (rain_windscreen_haze.glsl)

No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:10 +01:00
Claude 87ef243169 Vulkan: define WIPER_PASS_BUCKETS for the shaders
The preamble of the vulkan renderer didn't define it, and with the constants of common.glsl skipped
(MASZYNA_CONSTANTS) the shaders didn't compile: the renderer failed to start and fell back to
opengl. Now defined by the preamble, and common.glsl defines it when the renderer doesn't (an older
exe with these shaders).

No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:10 +01:00
Claude 2fe11d39a1 Rain windscreen: the rain fallen since a blade went over each place of its sweep
The glass took the rain fallen since one of the two moments the blades were at the ends of their
sweep, picked by the way the blade was going. After a pass that gave a place the blade had just
wiped the rain of the sweep before, until the blade reached the other end: the haze and the drops
there jumped back and forth with every sweep (a jump in brightness under the wiper mask, best seen
in a light rain).

Now the renderers keep, for 64 places along the sweep of each blade (the value of the wiper mask),
the rain fallen when the blade last went over them (gl::scene_ubs::wiper_rain_pass, marked for all
the places a blade went over since the last frame), and the glass reads the one of its pixel.
wiper_rain_out / wiper_rain_return are gone; the timers and the insects keep the ends of the sweep.

No assets change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:10 +01:00
Claude c71b32297a OpenGL 4.6: the settings from the values the game gives, also where the driver defines GL_SPIRV
Some drivers (AMD's) define GL_SPIRV also when they compile the GLSL source, so settings.glsl took the specialization
constants, which a source can't have, and no shader compiled ("constant_id: only allowed when generating SPIR-V"). The game
always puts the values of the settings before a source it compiles, so those decide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:10 +01:00
Claude dbad19b92a Rain windscreen: the glass fills up to full in any rain, more slowly in a lighter one
The game now counts the rain the glass meets (more at speed) and how wet the glass is (scene_ubs.rain_state: it fills with the
rain and dries when the rain stops), and the rain fallen when each blade was at the end of its sweep (wiper_rain_out/return).
The glass with rain gets as many drops, droplets, rivulets and as much haze as the heaviest rain gives, scaled by how wet it
is; where a blade went over it they come back with the rain fallen since. A lighter rain only takes longer: 95% full in 10 s of
the heaviest rain standing still, 20 s at cloud cover 1.5, 2.5x as fast at 100 km/h; half dry in 3 minutes standing still.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BqfRrTiBDaAyQ2gT6ZrnZD
2026-11-29 11:39:10 +01:00
lcddisplay 8050ea8eb6 Deer at the tracks: graze ahead of the train, take fright at the horn and bound away
A deer is put on the path the player's train goes along (world/deer.cpp), grazing. The horn
within deer.hornrange, or the train closer than deer.fleedistance, frightens it: it raises its
head, looks at the train and bounds away from the tracks, then grazes where it stopped. The deer
go once the train is past them; they aren't parts of the scenery (not saved, not edited).

Off unless eu07.ini turns it on: deer (no), deer.interval (2000 m), deer.distance (2000 m),
deer.chance (1), deer.hornrange (600 m), deer.fleedistance (150 m).

- mat_vat.vert (ogl46, vk14): vat_random -1, the game picks the clip and the moment of an instance
  by the fraction of ten times its turn about the vertical, so one animation hands over to the
  next in the very same pose. 0 and 1 work as before.
- TAnimModel::draw_alone(): an instance the game moves leaves the groups of its model.
- scene_walk::Queue_Model: the record of an instance drawn on its own is made anew when the
  instance moved.

Assets (game data, installed locally in the game folder, not yet in the SVN; without them no deer
is made):
- models/animals/jelen_je.t3d, jelen_zryw.t3d, jelen_skok.t3d (the deer of jelen_lewo.t3d with the
  head turned straight, three animations baked by jelen_anim2.py)
- textures/animals/jelen_{je,zryw,skok}.mat and their _vatpos_hi, _vatpos_lo, _vatnormal .tga;
  diffuse animals/sarna_d_1, in winter animals/sarna_f_1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GXgG7F4L42c2F9sDSAJbT2
2026-11-29 11:39:10 +01:00