Repository navigation
Releases
MW4VR v11.96
v11.96: videos of both eyes with the game's sound (Ctrl+F5) (#23)
- Ctrl+F5 begins a video of what the headset shows, Ctrl+F5 again ends it: both eyes side by side at the size they
are rendered at, the HUD drawn in, with the game's sound, asmw4vr_videos\mw4vr_<date>_<time>.mp4(HEVC, AAC,
60 pictures a second). End the video before you leave the game. It needs a graphics card with an HEVC encoder
(tested with NVIDIA). - For YouTube:
tools/video/youtube3d.pyin the repository makes such a video into a VR180 video (or a flat 3D
one) that YouTube shows with depth. It needs Python and ffmpeg and is not part of the package.
SHA-256 of the package: 1df05e38b481098b6482faa2963189877b2c01b8d96fae81d81e2960d90dbe9f
MW4VR v11.95
v11.95: the mechs' arms can be installed from a release's attachment (#16)
SHA-256 of the package: e82281141c065e6667df395675f6d7d6df6fc921d4a21709070d5b74bc33f02e
MW4VR v11.94
v11.94: the mech's own arms beside the cockpit (#14)
- Trial: the mech's own arms beside the cockpit, read from the outside view
Seen from the seat the game draws nothing of the player's mech. Seen from
outside it draws rigid parts, each with a matrix into the world: they are
read there once for each mech (vertices, indices, picture), put into the
seat camera's space and kept in mw4vr_arms<mech>.mwa. Those beside the
seat are drawn with our own cockpit, at the world's scale and depth.
They do not move against the torso. [vr] arms=1 (off by default),
arms_side, arms_low, arms_all.
- v11.93: a target's mark whole, and none of it in the cross-hair's image
The cross-hair's part of the HUD picture is split by colour. A pixel's
green went to the cross-hair in proportion, so the little green in a red
mark's edge showed there as a pale mark wandering over the smaller
cross-hair; the mark's dark inside went there whole, taken for a digit;
and where the cross-hair lay over the mark, the mark kept gaps of the
cross-hair's shape.
Now a pixel that is clearly red or blue stays with the mark whole, dark
pixels count as digits only inside a green box, and the gaps are filled
with the mark's colour from both sides.
- Trial arms: the parts are read in single frames only; arrow keys for the test plan
Reading went on in every frame from outside until parts near the seat
were found - with a camera far from the mech none are, and every draw's
constants came back from the graphics card: 2 pictures a second.
- Trial: a glance's turn taken out of the camera - the game then draws the mech's own parts
While the pilot glances to a side (the game's look-left / look-right keys)
the game draws the player's mech in the cockpit view, arms and all. The
camera's turn against the game's own cockpit is taken out again, so the
view stays the seat's and the parts stay in the picture.
[vr] arms_glance=1 (2: the headings logged, nothing changed).
- Trial glance: the game's own matrix kept apart from the seat's view
The right eye took the glance's turn out twice (its base was the left
eye's, already turned back), and the game's frustum planes stayed the
glance's: checked against the seat's view they were left alone, and the
world ahead was culled.
- Trial glance: one angle about the upright axis, held at the quarter; the mod holds the key
Tied to the cockpit's matrix frame by frame the view trembled with the
mech's steps. Now only the glance's angle is taken from it, the full
quarter once it is near it. [vr] arms_glance_hold=1: the glance key is
held by the mod while the pilot sits in the mech (arms_glance_key).
- Trial glance: the angle from this frame's camera; the held key pressed again
The angle was the frame before's: the view shook while the camera swung,
and showed one frame far off when the game's camera jumped (the key
pressed again during the swing back). And the pilot's own press and
release of the key ended the glance for good - now the mod presses it
again a few times a second.
- Trial: the game's own state word of the player's mech set from the seat
Comparing the game's memory with and without a glance: the vehicle and
some seventy objects that hang on it have a word (+0x158) that is 2 from
the seat and 0x20 during a glance, and so have small link objects of
class 0x78c638 (+0x30). Set to 0x20 without a glance ([vr] arms_own=1)
the shoulders are drawn and the weapons fire as usual - the arms' own
shapes are not there yet. With it the diagnosis that found it:
mw4vr_memdump.txt writes the vehicle, the camera and what they point to.
- Trial arms: they go forth and back with the mech's steps
From the seat the game tells nothing of its mech's limbs, but the
cockpit's sway is measured: left and right once for every two steps.
The long parts (the arms) go ahead and behind with it, one against the
other, and come to rest when the mech stands. [vr] arms_swing (m).
- Trial arms: the swing eased at its ends; weapons above the cockpit drawn too
The swing is taken about the sway's own middle and against its usual
size, and eased towards both ends. A part whose middle lies above the
eye (the Marauder's gun on its back) is drawn like one beside the seat;
none that comes nearer to the eye than 1.3 m. [vr] arms_above, arms_near.
- Arms: draw low-hanging arms, limit relative to the mech's feet
Below arms_low a part counts as an arm down to arms_deep (0.45) of the
way to the feet, if it is far out (arms_wide, 2.4 m) or long and slim.
Test head can nod: plan key pitch=, runner -Pitch.
- Arms: remove the trials, document the feature
The glance, own-parts and memory-dump trials leave cam.cpp (back to main's).
README, ini example, readme and architecture describe [vr] arms.
clang-tidy: two findings in arms.cpp fixed.
-
Docs: path of the arms file
-
Arms: on by default ([vr] arms=0 switches them off)
-
Docs: arms default in the ini example, a stray word
-
v11.94
-
Cockpit stays with a small game cockpit; arms of mechs without joints stay put
The Marauder II's own cockpit has some thirty triangles; cut down to fewer
than ten by the picture's edge it was no longer taken for the cockpit and
ours was left out, and with five it counted as the view from outside. Now
three are enough while the cockpit was seen in the frames before, and three
count as a little.
[vr] arms_rigid names the mechs whose arms do not swing.
- Back from the outside view with a small cockpit; hands swing with their arms
The seat is known again as soon as the game hands its cockpit's shape to
its renderer and a little of it is drawn - the Marauder II's cockpit, the
head a little down, never came to thirty triangles after a look from
outside. Parts beside the cockpit that touch a swinging arm (hand,
shoulder, gun) swing with it.
- Arms: the Mad Cat Mk II's stay put too
SHA-256 of the package: e59f30399de24e98d502592fac9233b91c678ea62f5c4e4ed83819b4399b7358
Build data: the mechs' own arms (MekPak 3.1c)
Not a version of the mod. The files the mod makes when a mech is first looked at from outside (mw4vr_arms<mech>.mwa: its parts beside the cockpit), for the 113 mechs of MekPak 3.1c. Put the zip beside the unpacked package and the setup installs what is missing, or copy the .mwa files into the game folder's mw4vr_arms. SHA-256: e18e0d76402c6bf42dff58534e8df87e7513620cabaede53436a1a1790d32376
MW4VR v11.93
v11.93: a target's mark whole, and none of it in the cross-hair's image (#13)
The cross-hair's part of the HUD picture is split by colour. A pixel's
green went to the cross-hair in proportion, so the little green in a red
mark's edge showed there as a pale mark wandering over the smaller
cross-hair; the mark's dark inside went there whole, taken for a digit;
and where the cross-hair lay over the mark, the mark kept gaps of the
cross-hair's shape.
Now a pixel that is clearly red or blue stays with the mark whole, dark
pixels count as digits only inside a green box, and the gaps are filled
with the mark's colour from both sides.
SHA-256 of the package: f1787ddb9bfcc7444e3be4ecb671628ea0dbaec8c37bbcfa17c40472c9979d50
MW4VR v11.92
v11.92: the projection's near term read right - our cockpit no longer goes missing (#12)
The near term n was taken as row 2's last element of the world-to-clip
matrix. That is n plus a term that depends on where the camera stands and
where it looks; the true n (1.0 in the game) is row 2's last element less
(row 2 . forward) times row 3's last. The value read ranged from -0.07 to
1.94 on one spot of "Eaton - Governor" over a turn of the head. Below 0
the cockpit's transform was not built: our own cockpit was not drawn and
the game's was shown instead - seen when looking right in that mission.
Elsewhere the wrong n scaled the cockpit's own movement by up to two.
SHA-256 of the package: e18c1eb01c0c1223308fcd2ba934f41ece95b7df85a7020690ade106d57d36dd
MW4VR v11.91
v11.91: the torso mark as small as the cross-hair, and as near to it (#11)
The cross-hair is shown smaller in a layer of its own ([vr]
hud_cross_scale); the torso mark under it stayed at the HUD's full size.
While the cross-hair is shown that way the mark is scaled by the same
factor about the cross-hair's middle. Otherwise as before (shown higher).
SHA-256 of the package: 9fd1a7550eaf0b0406530e09e23846fdde133ecbd6818b6918c318172b637cb9
MW4VR v11.90
v11.90: the cockpit's light - shade in the corners, the brightest place, the monitors' glow, gloss (#10)
- Shade in corners and gaps: for every vertex 16 rays into the half of
space before it, shaded by what they meet within 35 cm. Reckoned when
a cockpit is loaded (on several threads, about 1.5 s for 130 000
vertices), written into the normal's length. No cockpit has to be
converted again. - The brightest place of the picture (the sun, a fire, a shot's flash)
lights the faces turned to it and moves the gloss; under an even sky
the cockpit's own lamp stays. 12 x 9 patches are read now. - The monitors light what lies before them, lamps what is about them -
at night; by day little. - A little gloss on every part; faces seen at a flat angle mirror what
lies beyond them.
[vr] mw5_shade, mw5_sun, mw5_glow, mw5_gloss, mw5_reflect.
SHA-256 of the package: f5a3a3f8ce178517b13c90047d148edc475af939e5ef27dcca3800519fa855a6
MW4VR v11.89
v11.89: no flicker of our cockpit at the switch to the outside view (#9)
- v11.89: no flicker of our cockpit at the switch to the outside view
The outside view was told only after five frames without the game's
cockpit. For the first two ours was not drawn (it waits for the game's),
for the next three it came back over the picture seen from outside, then
it went for good. Now two frames tell the outside view.
The test run's judge took the first bright frame of such a cut for a
flash: it stood alone among the frames counted as seated. Flashes are
judged among all frames now and told for the seated ones.
- Judge: a name of its own for the seated frames' numbers (mypy)
SHA-256 of the package: 790e963bb4fe3c182967b764c86e1b0d431042748d3aedbd0910574b680f2617
MW4VR v11.88
v11.88: the world's light on the cockpit (#8)
- v11.88: the world's light on the cockpit, read from the eye's picture
A cockpit of our own was lit by a fixed lamp alone: the same at noon and
at night, flat before a bright sky. Now a few small patches of the left
eye's picture are read each frame (without waiting for the GPU) and
sorted by the side of the cockpit they shine from; the shader lights each
face with the colours of the sides it faces. [vr] mw5_light (0: as
before), mw5_light_floor.
- Faces that look into the cockpit get less of the world's light
The panel's front and the undersides look into the cockpit, not out of
the windows: [vr] mw5_light_inside (0.55) of the world's light reaches
them. A day's picture is 0.55 (measured), not 0.4.
SHA-256 of the package: 69410c66b9388fe9fcf68e1c8c0ae3c2a3b9ec672ee99ea99bfd0cadc8657fab