Open World Prototype: City Streaming Technique and Source Code

Mauri Galvez

I created an 8×8 city, meaning a total of 64 blocks. I created the buildings in Unity using cubes and textures. The main feature for this requirement was the streaming of the city, which meant that when the player was at a certain block in the city only the blocks that were necessary to be present for gameplay should be spawn, and the rest should be deleted. There are three scripts that take care of this process: TriggerVolume, BlockStreamScript and StreamManager

Trigger Volumes

I began by creating a script that creates a trigger volume for each block. I used all colliders in the block in order to obtain the bounds of the collider. I made sure to include a rate variable so that I could play around with the size of the collider that is created because sometimes it ended up being 2x bigger than the city block.

Setting Each City…

View original post 219 more words

About Jack

BRIEF BIO: Jack Gunter is a writer of fiction, non-fiction, poetry, and songs. He is the co-owner of Open Door Communications, a copywriter, an inventor, and a former broker and private investigator. He is a naturalist and an amateur scientist and cryptologist. He likes to compose music and to design and play games and puzzles of all types. He homeschooled his children. He lives in the Upstate of South Carolina with his beautiful wife, talented two daughters, his old friend and Great Dane Sam, and his three Viking Cats.

Posted on August 24, 2015, in Uncategorized. Bookmark the permalink. Leave a comment.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: