模拟城市吧 关注:86,380贴子:1,039,725
  • 12回复贴,共1

用于SC2000/SC4存档的开源3D渲染器SC2KRender和TiledCityViewer

只看楼主收藏回复

Rendering SimCity 2000 Maps in 3D with SC2KRender https://www.youtube.com/watch?v=29wdNWRi9tY
https://store.steampowered.com/app/1527140/SC2KRender/
https://github.com/alekasm/SC2KRender





什么是SC2KRender
SC2KRender 是一个开源程序,可加载模拟城市 2000™ 地图文件 (*.sc2) 并以 3D 形式渲染它们。超过 180 种独特的模型被重新设计,因此您可以以前所未有的方式探索您的大都市。将 2D 世界转换为 3D 有局限性,而且是不可行的。这些设计限制已经通过研究90年代初使用SC2地图文件格式的3D Maxis游戏来解决。请注意,本计划并非Maxis或艺电认可、赞助或以其他方式附属,所有资产(代码和图形)均为原创作品。
您使用什么游戏引擎
SC2KRender 是一个使用 DirectX 11 和 C++17 编写的开源项目,它不使用游戏引擎。使用了精简版本的 DirectX ToolKit,它是 DirectX 的帮助程序类和函数的集合。此自制软件的一些功能包括多重采样抗锯齿、视锥剔除和用于文本呈现的 Direct2D/DirectWrite 集成。
如何创建自己的地图
您需要合法地获得SCURK或WinSCURK的副本才能创建地图,或者购买SimCity 2000™并加载您保存的地图或使用随附的SCURK副本。
The Team:
Aleksander Krimsky: Programming and Art
亚历山大·克里姆斯基:编程与艺术
Thomas Nelson: Lead Artist
托马斯·纳尔逊:首席艺术家
一路上提供帮助的各种人都包含在 GitHub 上可用的源文件中
已实现的
解压和解析地图数据
渲染水、地形和建筑数据
全屏、无边框和窗口模式
Steam release
未来计划
地形和模型的纹理
具有日夜模式的照明
渲染地下数据(隧道、管道)
链接电力线
暂定/延伸目标
模拟汽车、船只、飞机等。
支持 AR/VR
Help Section
为什么物体会为我“闪烁”
这可能是由于 MSAA 在使用三角形面的建筑物上难以处理某些几何形状,请尝试关闭 MSAA 以查看问题是否已解决。我将在未来寻找更永久的修复方法。
为什么物体仍然为我“闪烁”
这可能是由于如果您的相机离场景很远,则可能是由于z战斗。尝试放大场景,看看问题是否已解决。尝试解决此问题可能需要付出更多努力。
为什么这东西这么该死的卡?
地图大小为 128 * 128 = 16384 个可能的模型,不包括“风景”对象。视锥剔除是一项功能,可防止渲染不在摄像机内的物体,因此请尝试更多地渲染城市的地面以获得更好的 fps。不幸的是,图形渲染的管道主要是单线程的,除了“命令列表”,这是NVidia独有的功能。
你打算怎么优化性能
当前的目标是研究一种称为实例化的技术,这应该对性能有很大帮助。


IP属地:美国1楼2023-05-12 07:02回复
    然后是一个匈牙利人用unity写的TiledCityViewer,不开源但支持sc4存档(亲测效果很差)
    https://kerizoltan.hu/en/tiledcity-viewer/
    TiledCityViewer lets you import and view your SimCity2000 maps and SimCity 4 regions in 3D!
    TiledCityViewer 可让您以 3D 方式导入和查看您的 SimCity2000 地图和 SimCity 4 区域!
    SimCopter and Streets of SimCity are old games from Maxis, which featured a 3D view of SimCity2000 cities. TiledCityViewer is similar, but with different 3D objects and without any game functionality.
    SimCopter 和 Streets of SimCity 是 Maxis 的老游戏,其特色是 SimCity2000 城市的 3D 视图。 TiledCityViewer 类似,但具有不同的 3D 对象并且没有任何游戏功能。
    Download
    https://kerizoltan.hu/downloads/TiledCityViewer_v0.4_win.zip
    Download Windows binary here (version 0.4, 55 MB, made with Unity). To install, simply unzip in any folder and run TiledCityViewer.exe. Use under Creative Commons-BY-NC4.0. (this software is a demonstration only, I plan to have it as open-source later. For any inquiry/cooperation, send an email to info(at)kerizoltan.hu).
    在此处下载 Windows 二进制文件(版本 0.4,55 MB,使用 Unity 制作)。要安装,只需在任何文件夹中解压缩并运行 TiledCityViewer.exe。在 Creative Commons-BY-NC4.0 下使用。 (这个软件只是一个演示,我打算以后开源。任何询问/合作,发邮件到info(at)kerizoltan.hu)。
    Features:
    – import SimCity2000 files – 导入 SimCity2000 文件
    – import SimCity4 regions – 导入 SimCity4 区域
    – night mode - 夜间模式
    – traffic - 交通
    – ride on train mode (train goes randomly on city rail lines)
    – 乘坐火车模式(火车在城市铁路线上随机行驶)
    TiledCityViewer is not a game, only a tile-based 3D viewer demo, which can import .sc2 and .sc4 files, among others, like the Minecraft SimCity2000 importer. It is not supported, endorsed or authorized by Electronic Arts or Maxis. There is no intended SimCity-like functionality and experience.
    TiledCityViewer 不是游戏,只是一个基于图块的 3D 查看器演示,它可以导入 .sc2 和 .sc4 文件,其中包括 Minecraft SimCity2000 导入器。它不受 Electronic Arts 或 Maxis 的支持、认可或授权。没有预期的类似 SimCity 的功能和体验。
    Other, screenshots 其他,截图
    Download older version v0.3
    下载旧版本 v0.3 https://kerizoltan.hu/downloads/TiledCityViewer_0.3_win.zip
    Download some cities (seen below) here.
    在此处下载一些城市(见下文)。 https://kerizoltan.hu/downloads/sc2000_games.zip
    Watch youtube movie for SimCity2000 import here.
    在此处观看 SimCity2000 导入的 youtube 电影。 https://youtu.be/W7_6PFTl60s
    Youtube movie for SimCity4 region import here.
    SimCity4 地区的 Youtube 电影在这里。 https://youtu.be/lxt_1s8ao0s
    https://community.simtropolis.com/forums/topic/759060-tool-for-viewing-simcity-4-in-3d/
    Hi all,
    I made a 3D viewer which now can open whole SimCity4 regions in addition to SimCity2000 cities. Of course it's an MVP/WIP, to prove it can be done, and doesn't look very good and many things are missing from the import. I've opened this topic in modders because I think at this stage it is only technically relevant. Some things require more research. To my knowledge, no one has decoded the network subfile 1 or how bridges or highways are saved (at least I didn't find it).
    我制作了一个 3D 查看器,现在除了可以打开 SimCity2000 城市之外,它还可以打开整个 SimCity4 区域。当然它是一个 MVP/WIP,以证明它可以完成,并且看起来不是很好并且导入中缺少很多东西。我已经在 modders 中打开了这个主题,因为我认为在这个阶段它只是技术相关的。有些事情需要更多研究。据我所知,还没有人破解过网络子文件 1 或桥梁或高速公路是如何保存的(至少我没找到)。
    This tool, when developed further, could also be used for inspecting lots or savegame editing. I'd be interested to discuss possibilities or how to go on and cooperation.
    此工具在进一步开发后,还可用于检查批次或编辑游戏存档。我有兴趣讨论可能性或如何继续合作。
    What's more or less working: 或多或少的工作:
    - terrain height - 地形高度
    - roads, streets, rail, avenue - 道路、街道、铁路、大道
    - lots (most of the buildings are the same as in Sc2K due to convenience)
    - 很多(由于方便,大多数建筑物与 Sc2K 中的相同)
    - agriculture (terrain layer is used)
    - 农业(使用地形层)
    - flora subfile - 植物群子文件
    What's missing:
    - bridges, tunnels, highway (somehow not in the network subfile 1?)
    - 桥梁、隧道、高速公路(不知何故不在网络子文件 1 中?)
    - diagonal road and rail slopes (display of these is buggy, not decoded how they are saved)
    - 对角线公路和铁路斜坡(这些显示是越野车,没有解码它们是如何保存的)
    - stations of any kind, civic buildings
    - 任何类型的车站,市政建筑
    - props (meaning any detail of terrain, vegetation, custom mods etc)
    - 道具(意味着地形、植被、自定义模组等的任何细节)
    - non-standard region sizes (only 1024x1024 are tested)
    - 非标准区域大小(仅测试 1024x1024)
    - popular mods (NAM, RHW, SAM etc)
    - 流行的模组(NAM、RHW、SAM 等)
    How to use (Windows only):
    如何使用(仅限 Windows):
    - download zip file from my website, unzip and run TiledCityViewer.exe (app is made with Unity)
    - 从我的网站下载 zip 文件,解压并运行 TiledCityViewer.exe(应用程序是用 Unity 制作的)
    - press import region and select any city in the region folder
    - 按导入区域并选择区域文件夹中的任何城市
    Youtube video of perspective, train ride and night mode here
    透视、火车骑行和夜间模式的 Youtube 视频在这里 https://youtu.be/lxt_1s8ao0s
    Thanks to:
    - Simtropolis
    - Sc4Reader by Tropod - Tropod 的 Sc4Reader
    - Sc4save by wouanagaine - wounagaine 的 Sc4save
    - iLive Reader - iLive 阅读器
    Legal: TiledCityViewer is not supported, endorsed or authorized by Electronic Arts or Maxis. There is no intended SimCity-like functionality and experience.
    法律:TiledCityViewer 不受 Electronic Arts 或 Maxis 的支持、认可或授权。没有预期的类似 SimCity 的功能和体验。




    https://community.simtropolis.com/forums/topic/758899-simcity2000-view-in-3d/
    Hi,
    I made a small demo in unity which can open SimCity2000 cities (.sc2 files) in 3D. I've tried to reconstruct buildings to look the same as in Sc2K, with "eye-candy". I think the buildings in Sc2k are very colorful and I've not seen them around, only a few, they have a special touch to them. I know it doesn't look the same as in the game, but still quite similar.
    我在 unity 中做了一个小演示,它可以在 3D 中打开 SimCity2000 城市(.sc2 文件)。我试图重建建筑物以使其看起来与 Sc2K 中的一样,具有“养眼效果”。我觉得Sc2k里面的建筑很丰富多彩,我周围没见过,只有几座,有一种特别的感觉。我知道它看起来与游戏中的不一样,但仍然非常相似。
    So this is a very limited demo application, I can continue it if there is interest. I'm not really into graphics and 3D modeling so it looks like in the pictures.. some more features: ortho mode, perspective mode, traffic, day/night switch and 'ride on train'.
    所以这是一个非常有限的演示应用程序,如果有兴趣我可以继续。我不是很喜欢图形和 3D 建模,所以它看起来像图片中的那样……还有一些功能:正交模式、透视模式、交通、日夜切换和“乘坐火车”。
    You can view more images and download windows binary here.
    您可以在此处查看更多图像并下载 Windows 二进制文件。
    Short video https://youtu.be/8jVivFkub5g
    I hope there are no legal issues with this, but I'm uncertain if doing this is allowed. Feedback is welcome.:)
    我希望这没有法律问题,但我不确定这样做是否被允许。欢迎反馈。:)



    应用达人
    应用吧活动,去领取
    活动截止:2100-01-01
    去徽章馆》
    IP属地:美国2楼2023-05-12 15:57
    收起回复
      6


      IP属地:广东3楼2023-05-13 11:23
      回复
        但是感觉sc4 3d化后质感很差


        IP属地:广东4楼2023-05-13 11:25
        收起回复
          TiledCityViewer的更多图片(均来自他的网站)











          应用达人
          应用吧活动,去领取
          活动截止:2100-01-01
          去徽章馆》
          IP属地:美国5楼2023-05-13 11:56
          回复











            应用达人
            应用吧活动,去领取
            活动截止:2100-01-01
            去徽章馆》
            IP属地:美国6楼2023-05-13 11:57
            回复











              应用达人
              应用吧活动,去领取
              活动截止:2100-01-01
              去徽章馆》
              IP属地:美国7楼2023-05-13 11:58
              回复


                应用达人
                应用吧活动,去领取
                活动截止:2100-01-01
                去徽章馆》
                IP属地:美国8楼2023-05-13 11:58
                回复
                  1


                  IP属地:陕西9楼2023-05-17 01:13
                  收起回复