🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

City Editor (Part 2) + Video

Published May 14, 2006
Advertisement
Hey guys, I was hoping to have my city editor finished up today, but as usual, it's proving to be a little more work than I had anticipated.

Still...once this is finished it will add a ton of replay value to the game...players will be able to fight for control of their own city against other players online. I can't wait to get all this into the hands of some testers.

Here is a video of the editor in action...it mostly showcases the realtime shadows on EVERY object in the city. The player has control of the time of day (via slider bar) when they are in the editor....so they can see how their city will look at every time of day.

CLICK HERE TO DOWNLOAD GangWar_Editor_Video_1.avi (10MB)

I think it looks awesome, I love watching the shadows move across the city. Also notice the subtle color and atmospheric changes at each time of day....I spent a lot of time tweaking these shadows and they're finally starting to look as I'd imagined them.

Here are some screenshots of the editor, after two days of work.

A blank map....I'm just about done designing the interface...


A screenshot lower to the ground...remember this editor is totally in-game and uses the same GUI that the in-game windows use.


Another screenshot pretty low to the ground, you can see the lines representing the currently selected piece of city, as well as the current mouse world position represented by the yellow lines.


A screenshot of a city after I butchered it up :-)


As usual I'd appreciate any feedback, especially on the video.

I had to do a lot of tweaking between the local and global shadow maps to make them blend more seamlessly and I'm pretty happy with the results. There is a weeee bit of z-fighting at extreme sun angles...I'm using a dynamic z-bias right now...I'm probably going to add some more code to that area as the game gets closer to release to make it perfect. There is still a little bit of a problem with the z-bias right now, when the camera is high in the air.

Let me know what you guys think.

- Dan
Previous Entry City Editor
Next Entry Mini-map generation
0 likes 3 comments

Comments

Sir Sapo
Thats awesome, I really like how the lighting looks more "yellow-y" around sunset, very cool!
May 15, 2006 12:52 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement