Skip to content

Releases

v0.10.8: frame generation moves things that are not characters

Choose a tag to compare

@rams95blue rams95blue released this 27 Nov 22:20

Frame generation already moved the camera (v0.10.5) and the characters through their bones (v0.10.6). Now things that are not characters and moved between two game steps (a car, a piece of debris, a door) are also put where they are at the moment each made picture is shown, instead of staying where the step drew them.

How it works

  • Each step keeps the solid 3D geometry it drew and places it in the world with the game's exact camera matrix.
  • It compares that geometry with the same piece one step before.
  • A piece counts as a moving thing only when all of these are true:
    • it moved more than the depth's precision and at least one game pixel on screen, once the camera's own move is taken out;
    • it moved less than 3 m;
    • a rigid turn and shift explain the move.
  • Pieces that moved alike become one thing, for example a car drawn in many strips. Up to 128 things a step.
  • Some things are left out on purpose:
    • characters, because their bones already move them;
    • rain, smoke and glows;
    • lights and flares that always face the screen;
    • anything cut at the edge of the picture. A thing crossing the screen's edge is moved only once it is fully in view.

Checked

  • In seven saved scenes, nothing is taken for a moving thing, with the camera still or turning (0 a step). The first version found 140 to 430 a step: rain, clipped walls, flares, the sky.
  • The whole path was checked with a test switch. The scene slides in the made pictures while the hero and the HUD stay, and the game's own pictures are unchanged.
  • None of the saved scenes has a car or debris moving, so a real one has not been seen yet. If you play a scene with one, the Debug tools below show whether it is picked up.

Settings > Debug (new)

  • Frame generation: move the things that moved. On by default. Turn it off to compare.
  • Frame generation: each moved thing in the log. One line per thing: where it is, how far it moved, and how far its move is from a rigid one. With the step log on, each step also says why the other pieces were not taken.
  • Frame generation: what the made pictures show has a new choice, "moving things", with a colour for each thing.
  • Environment switches are in docs/DEBUG.md: PS2_FRAME_GEN_OBJECTS, PS2_FRAME_GEN_OBJECTS_VIEW, PS2_FRAME_GEN_OBJECTS_LOG and PS2_FRAME_GEN_OBJECTS_TEST=<metres>.

Frame generation and the game's step rate

Frame generation makes motion look smooth at the target rate, but the game itself still runs at its step rate (20 a second by default): game logic, input, effects, the HUD and lighting still update at that rate. Only the step-rate patches (30 or 60) change how often the game itself updates; the two can be combined.

Engine: patch 0052-rd-frame-generation-things. Details: docs/FRAMERATE.md, "v0.10.8".

Raw Danger! PC v0.8.5

Choose a tag to compare

@rams95blue rams95blue released this 21 Nov 15:45

The native PC port of Raw Danger! (PS2, SLUS-21501), built from your own disc images. No game data is included.

Use: download the source code zip below, unpack it, and run RawDangerPC.exe. It finds your discs, builds the game and starts it.

New in v0.8.5

  • Post processing: all 36 maps checked; every version of the game's colour filter, including an eight-step one, now runs as one fast GPU pass.
  • Camera: the follow camera tilts about 25° up and 30° down (the PS2: about 8° and 13°), and the rain on the lens gets heavier when you look up.
  • Frame rate: the game's logic runs a fixed 20 steps a second, so smoother play will come from drawing frames in between (planned native renderer, phase 3).
  • Native renderer started: plan and first VU1 measurements in docs/NATIVE_RENDERER.md.
  • Engine patch 0031.

Full history: docs/ROADMAP.md.