Game Development Community

Generating an entire city with .dif interiors

by Kyrah Abattoir · in Game Design and Creative Issues · 07/17/2011 (10:58 am) · 4 replies

Okay this is an idea i had, lets say you make a game that has an urban setting, would it be possible to basically use a sort of tile system with .dif interiors, each one having it's own half of the road, pedestrian and building(s).

I'm trying to figure how efficient building a city this way would be.

Also, is there some way to make some parts of a dif like "one way" mirrors? I'm thinking about allowing players to see through the windows when they are inside a building, but not allowing the other way, so the dif doesn't have to render the interior of the building for players outside it.

Any thoughts?

#1
07/17/2011 (5:11 pm)
Sounds like it would work. I don't know enough about zones though to initiate the one way rendering. How would this benefit you over dae though?
#2
07/17/2011 (5:34 pm)
well my idea is to make a huge randomly generated city for a little zombie survival project and it would really benefit me to use opaque windows on the outside so the inside of a building would be culled.

The idea would be to know if the diff can make portalised spaces act in a "one way" fashion so players inside can see outside, but whatever building integerior the players are NOT in, get culled from the render.
#3
07/17/2011 (6:27 pm)
I would say your best bet is model the buildings without windows. Then have a regular plane with a one sided texture and then do the windows that way. You wouldn't need a zone or portal for that. However you could use them for performance reasons.
What I meant was why use interiors instead of collada?
#4
07/18/2011 (3:10 pm)
One easy way to accomplish it is using LODs, use LOD0 with windows and copy LOD1 without windows then set them so that it swaps to LOD1 pretty quickly i.e. just outside.


We've done something similar for our zombie survival game (Zday) except we swap LODs about half way down the street. I love the idea of generating random worlds, was something that made Diablo always feel fresh