Jump to content
  • Advertisement
Sign in to follow this  
mcsoy0312

City level editor

This topic is 4125 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I'm trying to make a game with a big city. It is similar to GTA, mafia, need for speed, midtown madness, etc. I'm considering how to implement the city level editor. Should I implement it inside a 3d modeler(e.g. 3ds max, maya)? If so, what features should my plugins provides? I've totally no clue. Someone please help me. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
There are plenty of different ways to approach this and it will depend a lot on exactly what you are trying to achieve, but what I did for my game (a RPG not a GTA clone) was to build the level editor inside the game engine. All the game objects (buildings, trees, whatever) are loaded into the engine and then I've created a series of tools that allow me to position them in game before saving them to a map tile file (effectively a level file). Not too difficult really because the tools were based on game 'functionality' - I needed to be able to pick objects in game so picking objects in the editor was a no brainer, etc.

As the editor and the game are using the same engine it makes testing quick and easy, you have a WYSIWYG editor and you don't need to develop any plug ins (just mirror the level loading code so you can save as well).

Share this post


Link to post
Share on other sites
Hi,
Because my city will be non-tile, I think let the artist editing the mesh separately, and import it into the editor will be troublesome. And the things I wanted to do, is implement path node generations of the road, building modeling, etc
I wonder how the commercial games implement their city editor.
Do you know about the city editor of GTA, Mafia, Need of speed, midtown madness, driver, or similar game?
Thanks.

Share this post


Link to post
Share on other sites
They probably just use 3DS Max or something similar and write a custom exporter for the format.

Share this post


Link to post
Share on other sites
Hi,
I problem I encounter is, road generation.
I've to gen. a road network for AI path finding. And it should be automatic, otherwise, one piece of road has to be drawn twice. One for the mesh, one for the AI path finding.
I don't know how to make this process to be automatic. Does someone have a clue? Does someone make a game encounter similar problem?
Thanks.

Share this post


Link to post
Share on other sites
You would probably have to "flag" the road polygons as being "road" somehow. I'm not familiar with the Max toolchain, your plugins or your game application, so I can't offer any more advice than that.

I do recommend you separate the pathing information from the polygon information, though. There's several cases where you would have to have paths divergent from the strict street direction in a driving simulator (for example, parking, changing lanes, left hand turns).

Share this post


Link to post
Share on other sites
Thanks for your advice.
I decided to implement a system, to generate the path from spline, which is independent from the road polygon.
Thanks

Share this post


Link to post
Share on other sites
Excellent. That's pretty much what I would've done.

Make sure to post some screenshots on Image of the Day when you're closer to finishing. [smile]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!