Cities: Skylines

Cities: Skylines

52 ratings
Cube Camera [Experimental]
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
40.793 KB
3 Sep, 2023 @ 7:15pm
1 Change Note ( view )

Subscribe to download
Cube Camera [Experimental]

Description
Take 360-degree panorama images with Cube Camera and explore the city in (1/6) live time.

save path: ..\AppData\Local\Colossal Order\Cities_Skylines\CubeCamera

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.

WARNING
This 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]
[discord.gg]
[cafe.naver.com]
[ko-fi.com]
Popular Discussions View All (1)
1
19 Nov, 2023 @ 4:28pm
Create a cubemap that perfectly reflects the current position with Cube Camera
neinnew/네인
19 Comments
ilcicci1983 27 Oct, 2024 @ 12:42pm 
Basically reflection is the main visual thing that CS2 does better tan CS1. CS1 with correct reflection would be incredible
ilcicci1983 27 Oct, 2024 @ 11:27am 
CS1 doesn't use a lot of PC resources. Lot of the time ive got 10fps with only 2 of 8 core at 100% and GPU at 40%( even in 4k with Reshade rtgi) if it's possible to use the sleping resources ..
neinnew/네인  [author] 27 Oct, 2024 @ 9:52am 
@ilcicci1983 I had a bit of an idea about it, but I'm not sure if it can be optimized enough to avoid unplayable FPS.
ilcicci1983 26 Oct, 2024 @ 12:35pm 
With this tou can actually have correct reflection in CS1. But only with static camera. It would be a dream to make this method dynamic (continuosly generating the correct cubemap depending on camera position). I'm using reshade for reflection, but an in game mod that use the correct specular texture would be' day better. It has been done for other old game, is so hard for CS1?
norlin.martin 6 May, 2024 @ 1:39am 
Here is the result: https://www.youtube.com/watch?v=_mfkm7DL72Y
It shows a real location in Stockholm, Sweden, but as it looked like in 1925.
norlin.martin 4 May, 2024 @ 1:42pm 
Thank you! I ended up using the Facebook 3x2 mode and ffmpeg v360 filter to convert to equirectangular. A considerable improvement!
neinnew/네인  [author] 3 May, 2024 @ 11:56pm 
@norlin.martin I looked into a few options.
For individual images: https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/cubemap_to_panorama.html
For video: https://ffmpeg.org/ffmpeg-filters.html#v360 and https://creativecloud.adobe.com/learn/after-effects/web/vr-converter-effect
You can use whichever cubemap format each tool supports.
norlin.martin 3 May, 2024 @ 12:39am 
Thank you for this! It works very well. However, as you point out, using equirectangular directly doesn't produce the best quality footage. Can you suggest a good tool for converting cubemap to equirectangular? And which of the mod's cubemap formats should I use when I do this? Thanks!
neinnew/네인  [author] 5 Oct, 2023 @ 4:59am 
oh you don't have a dedicated graphics card, probably that's why.
c95samuel 4 Oct, 2023 @ 12:52pm 
hmm well i tried it in an old but functional modded savegame, use old mods like tree anarchy, prop anarchy, eml, and others that skyve tell me to switch but due to the way i built if i change them the trees and props usually mess up, but i can send you the list, just dont know how, btw also i dont have a dedicated graphic card, its integrated graphics and the savegame is already at 17fps or less, so i think its a combination of everything haha