Cities: Skylines

Cities: Skylines

50 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/네인
15 Comments
norlin.martin 6 May @ 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 @ 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 @ 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 @ 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
neinnew/네인  [author] 4 Oct, 2023 @ 7:20am 
This mod has a small number of users, so any information is welcome, including just a list of mods. I'm not sure if it's a mod conflict or a system issue.
c95samuel 3 Oct, 2023 @ 4:53pm 
it just make a black screen, and in "draw" it jumps and with a big black rectangle in the camera, i guess its mod conflict with other old mods but still sad, btw it kill my last fps
neinnew/네인  [author] 7 Sep, 2023 @ 3:25pm 
@notDONEyet same in vanilla? might need a mod list
notDONEyet 7 Sep, 2023 @ 10:24am 
this mod is not working for me :/ i have a black box in the middle and at leaft and right camera goes crazy whatever setting i try