模拟城市中文网

 找回密码
 入住
搜索
查看: 8168|回复: 20

[新闻] Glassbox Engine and Simcity Demo in GDC

 关闭 [复制链接]
发表于 2012-3-8 13:47 | 显示全部楼层 |阅读模式
http://www.simprograms.com/39601 ... -with-mods-in-mind/
“We know modding is hugely important to our community. We know the reason why people are still playing SimCity 4 ten years later is because the modding community has kept it alive. [SimCity engine] GlassBox is built to be moddable, but beyond that we haven’t announced anything.
- Ocean Quigley”

(還是跟你們說一下吧...)
(這對插件方面的澄清, 簡單點來說就是可以吧...) (不知道會不會另外再提供軟件製作嗷... 像 CAW?) (純屬推測)



http://www.simprograms.com/39612/gamasutra-breaking-down-simcitys-glassbox-engine/
(深入分析 Glass box)
(這段還是給你們自己看好了, 而且也有一點是關於編程) (這些英文不深的嘛... )




(四段展示短片)
http://www.hardwareclips.com/video/7183/Sim-City-5-Inside-the-GlassBoxEngine-gfx-not-final-1of4
http://www.hardwareclips.com/video/7186/Sim-City-5-Inside-the-GlassBoxEngine-gfx-not-final-2of4
http://www.hardwareclips.com/video/7187/Sim-City-Inside-the-GlassBoxEngine-gfx-not-final-3of4
http://www.hardwareclips.com/video/7188/Sim-City-Inside-the-GlassBoxEngine-gfx-not-final-4of4
(不知道國內看不看到了嗷...)
(第四段後半可以看到 Glassbox 的運作原理)
(Note: GFX is NOT Final)

[Gamasutra, PCGamesHardware via Simprograms]
 楼主| 发表于 2012-3-8 16:19 | 显示全部楼层
The meat of a Glassbox-powered game is split into four object types: Resources, Units, Maps and Globals. These are tied together by Rules that are dictated by game scripts.Resources
Resources are the basic currency in the game: oil, coal, crops, wood, water, electricity, etc. Resources come in bins: resource R has a capacity of C.
Units
Units represent things in the game, such as houses, factories, and people. Each unit has a state, which is a collection of resource bins.
As an example, a house may have 20/30 units of food in its bin, and 4/10 people. A gas pump would only have bins of petrol, and a petrol station would have both petrol and cars.
Maps
Maps represent depletable resources in an environment: coal, oil, forest, but also air pollution, land value, desirability, etc. As an example, a map may have oil underground, that is being sucked out by a pump into its own local bin.
Globals
Globals are just a set of resource bins. For example: the amount of money in a town, the amount of electricity being used.
Rules
Rules provide the verbs in a game to handle the nouns provided by the above. Rules operate on resources: they move them from one place to another, or possibly combine them into other resources. They have inputs and outputs.
This simple code example shows money being converted into wood if a person is available to make that transaction:
rule harvestWood
Money in 10
Wood out 2
People in 1People out 1
end

Here is an example of a unit rule, showing a chaining effect: as a sim consumes mustard, they create an empty bottle, which then adds to a city’s pollution. If mustard is unavailable, they then go buy more mustard.
unitRule mustardFactory
rate 10global Simoleans in 1
local YellowMustard in 6
local EmptyBottle in 1
local BottleOfMustard out 1

map Pollution out 5
successEvent effect smokePuff
successEvent audio chugAndSlurp

onFail buyMoreMustard
end


Map rules are simpler than that. In this example, grass will grow only where there’s soil, water and nutrients, which are all depletable resources:
mapRule growGrass
rate 200map Soil atLeast 20
map water in 10
map Nutrients in 1

map Grass out 5
end


Zones
Zones are well-defined areas, and a staple to Maxis games. Here’s another code example, with a housing zone developing houses at a rate of 3 a day if there are enough builders available, and only where allowed:
zoneRule developHouses
timeTrigger Day 0.5sample random -count 3
test global Builders greater 5
test map Forest is 0

createUnit -id Bungalows
end


Agents
Agents are mobile things: they carry resources from one unit to another. They do not run rules — Maxis says they want 10,000+ agents running around at once, so they keep them simple to allow that. Agents can be people, cars, or even units of water running through a pipe. Here’s a code example of a car driving two people to work on roads:
unitRule goToWork
options -sendTo Work -via Car -using Roadlocal People in 2
agent People out 2
end

Each agent is given a destination: people may go home or to work, firemen may go to a fire, pollution may go into people.

(原文...)
回复 支持 反对

使用道具 举报

发表于 2012-3-8 17:29 | 显示全部楼层
没有被封锁

但是服务器连接很慢
回复 支持 反对

使用道具 举报

发表于 2012-3-8 17:31 | 显示全部楼层
原帖由 周瑜K了Zero 于 2012-3-8 17:29 发表
没有被封锁

但是服务器连接很慢


我已经上传土豆了,不过土豆还在转码
回复 支持 反对

使用道具 举报

发表于 2012-3-8 17:32 | 显示全部楼层

回复 4# 的帖子

非常感谢
回复 支持 反对

使用道具 举报

发表于 2012-3-8 17:33 | 显示全部楼层
GDC 2012 《模拟城市》GlassBox 引擎演示1


GDC 2012 《模拟城市》GlassBox 引擎演示2


GDC 2012 《模拟城市》GlassBox 引擎演示3


GDC 2012 《模拟城市》GlassBox 引擎演示4


[ 本帖最后由 Sakura4 于 2012-3-8 17:42 编辑 ]
回复 支持 反对

使用道具 举报

发表于 2012-3-8 17:46 | 显示全部楼层
30%架构都已经出来了
回复 支持 反对

使用道具 举报

发表于 2012-3-8 18:02 | 显示全部楼层
地图好小哦
回复 支持 反对

使用道具 举报

发表于 2012-3-8 18:39 | 显示全部楼层

回复 8# 的帖子

地圖尺寸是可以選擇的吧
調整地形都可以了
回复 支持 反对

使用道具 举报

发表于 2012-3-8 18:50 | 显示全部楼层
以目前的DEMO来说  SC5的风格好像SCS

好像真的会失败
回复 支持 反对

使用道具 举报

发表于 2012-3-8 19:06 | 显示全部楼层
感觉好卡通 = =
回复 支持 反对

使用道具 举报

发表于 2012-3-8 19:22 | 显示全部楼层
原帖由 FigoBourne 于 2012-3-8 19:06 发表
感觉好卡通 = =

这个不是游戏。是引击展示。
回复 支持 反对

使用道具 举报

发表于 2012-3-8 20:13 | 显示全部楼层
原帖由 FigoBourne 于 2012-3-8 19:06 发表
感觉好卡通 = =
建筑好像只有颜色,还没有贴图和加shader,放心吧2013年的游戏不会比特大城市画面差的
回复 支持 反对

使用道具 举报

发表于 2012-3-8 20:40 | 显示全部楼层
比SCS还卡通啊,不过好像模拟的模式还蛮好的

[ 本帖最后由 mrxia 于 2012-3-8 20:47 编辑 ]
回复 支持 反对

使用道具 举报

发表于 2012-3-8 20:58 | 显示全部楼层

回复 13# 的帖子

同意您的看法
回复 支持 反对

使用道具 举报

发表于 2012-3-8 22:03 | 显示全部楼层
現階段的圖, 個人覺得像進階SC3...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-3-9 00:48 | 显示全部楼层
原帖由 Sakura4 于 2012-3-8 17:33 发表
GDC 2012 《模拟城市》GlassBox 引擎演示1
http://www.tudou.com/v/Z_Kbeni_ASM/&rpid=8833984&resourceId=8833984_04_11_99/v.swf

GDC 2012 《模拟城市》GlassBox 引擎演示2
http://www.tudou.com/v/eItJ6v2ioNI/& ...


(修改不了標題...)

原帖由 ulysses_wesley 于2012-3-8 22:03 发表 現階段的圖, 個人覺得像進階SC3...

這個已經說嗷... 這不是最終的畫質...
回复 支持 反对

使用道具 举报

发表于 2012-3-9 07:50 | 显示全部楼层
本影片的HD版(720p)下載
http://www.mediafire.com/?okbskxb88hh8gmh
回复 支持 反对

使用道具 举报

发表于 2012-3-9 09:03 | 显示全部楼层
感觉还是像SC4多一点……
回复 支持 反对

使用道具 举报

发表于 2012-3-9 15:43 | 显示全部楼层
难道你们没几个人看出这是引擎效能模拟展示吗……主要是展示模拟的能力,跟贴图画质什么的完全无关,只关乎模拟引擎的设计思想和建模
回复 支持 反对

使用道具 举报

发表于 2012-3-10 13:58 | 显示全部楼层
别的不知道~就觉着玩这游戏必须买新电脑~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 入住

本版积分规则

小黑屋|手机版|模拟城市中文网

GMT+8, 2024-11-21 19:13 , Processed in 0.026152 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表