A simple mod to provide a better mirror view for the VR visual novel Tokyo Chronos.
- One of these Tokyo Chronos versions
- Steam version 1.0.4
- Demo version (SteamVR)
- BepInEx 5.4.11
- Install BepInEx to Tokyo Chronos
- Move
BetterTcMirror.dll
toTOKYO CHRONOS\BepInEx\plugins\BetterTcMirror\BetterTcMirror.dll
(Subfolders are not required but recommended.) - Start the game!
A configuration file will be created at TOKYO CHRONOS\BepInEx\config\com.aarcnoa.tc.bettermirror.cfg
Available options:
-
FieldOfView
- vertical field of view of the mirror camera.- Type: float
- Default value: 70°
- Recommended range: 50-90°
-
CameraOffset
- how much to offset the camera for better view of close objects- Type: Vector3
- Default value:
{ "x": 0.0, "y": 0.0, "z": 0.0 }
- Recommended: not changing from default, actually
This is linked to the way I currently update the Canvas
es that handle the fades. The render mode MyDearest used
is ScreenSpaceCamera
, which is the right choice given that the canvas gets "stuck" to the camera. However, this
has additional side effect of only being rendered to one camera, meaning that if I were to stick to one Canvas
using ScreenSpaceCamera
, either the VR player or the mirror would see the fades, but not both. This is also an
issue while regularly moving the head around, but the canvas has been scaled up to compensate for regular head
movement.
To work around this issue, I set the canvas to render in WorldSpace
, then move the canvas in front of the camera
on each Update
. Unfortunately, it seems that there's a delay of one (1) singular frame in doing so, and therefore
what's behind the fade screen becomes visible for a single frame.
- Tokyo Chronos (Steam, v1.0.4) with BepInEx 5.4.11
- .NET Framework SDK that can target 3.5
- Build Tools for Visual Studio
Next to BetterTcMirror\BetterTcMirror.csproj
, create BetterTcMirror.csproj.user
and paste this content:
<Project>
<PropertyGroup>
<TCDir>C:\Program Files (x86)\Steam\steamapps\common\TOKYO CHRONOS</TCDir>
</PropertyGroup>
</Project>
Replace the path in with the path to your game installation.
The source code in this repository is provided under the MIT License. See details in LICENSE.
Additionally, this project reuses code from:
- CameraPlus by xyonico, used under the MIT license