Cube Camera [Experimental]
Take 360-degree panorama images with Cube Camera and explore the city in (1/6) live time.
save path: ..AppDataLocalColossal OrderCities_SkylinesCubeCamera
Draw shortcut: Ctrl+Shift+P
The version of Unity (5.6.7) used by Cities Skylines does not provide an API for directly taking 360-degree panoramas. So I came up with taking pictures of the 6 sides of the cube through 6 frames and converting them to 360 panorama.
WARNINGThis mod is experimental. Please save your game before using. at the worst case, the game may crash or freeze.
|
This mod is not compatible with Dynamic Resolution. use Lumina instead.
NOTE
- Seams may be visible in things that change depending on the viewing direction. ex: Sun Shaft Mod, resource sprites(grass etc), tree shadow.
- Although the camera position is in sync, anything else that moves or changes is not. There is a 5 frame difference between front face and bottom face. Stopping and resuming the simulation produced a stutter along with waiting for the simulation thread, so I gave up.
- Image is taken at a vertical FOV of 90 (actually 89.9999) so it may appear to be taken from a different location than what you are currently looking at with a normal camera.
- Images taken when not in the free camera may have incorrect due to different aspect ratios. if you have Yet Another Toolbar, it’ll be fine because YAT have fix for aspect ratio.
- Do not use with TAA from Render It. Jittering remains in the image.
- The equirectangular mapping was implemented as a nearest neighbor. no special interpolation during the conversion from cubemap. If you want to produce a good quality footage, I would recommend using cubemaps and converting them to other tools outside of the game. equirectangular would be useful for previews.
- I need to confirm that it works on Mac and Linux. If anyone has checked, please let me know if it works!
- I have more ideas for this, such as a mod that takes a street view of each node… but tbh I won’t have time to spend more on CSL1. welcome pull requests if you’re interested. There are also API created assuming use in other mods: CubeCamera.Take(texture, saveDir, fileName, fileFormat)
Github repository[github.com]
Links
Twitter -> @Cities_neinnew
Youtube -> neinnew
Instagram -> at.leasat[www.instagram.com]
Discord -> neinnew CSL[discord.gg]
Youtube -> neinnew
Instagram -> at.leasat[www.instagram.com]
Discord -> neinnew CSL[discord.gg]


