Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

Level Fun

Sign in to follow this  


Well, now the level editor is working fairly well, and we are actually using it to make levels again.

Over the past few days I have addressed many issues, from lighting problems to new editor features.

I had two types of lighting issues - the first from the ambient occlusion. I had been using hemispherical ambient occlusion, which has some problems as I implemented it. The idea is that you really only need to cast a hemisphere's worth of normals in order to get a good ambient occlusion result. The problem is : which hemisphere? Relying on vertex normals for this, even interpolated and renormlized per lightmap texel wasn't working well in several cases. I try to get rid of T junctions and other bad geometry issues, but the hemispherical ambient occlusion was the part of the lighting that showed off issues the worst.

So, I decided to cast a sphere of rays instead, and just double the resulting occlusion value, clamping at one. This has the advantage of not being related to the tessellation, but this disadvantage of being much slower ( due to the old hemispherical method walking in a grid pattern, and the sphere needing more than twice as many samples to look similar ). Anyway, it looks better, but takes ages to compute, so I am using the old method for now, but will crank it up on occasion, and before ship.

I also ran into an issue with the gloss map on one of my textures that sent me through a bit of a goose chase, but now it's resolved.

Just tonight I added cameras to the level editor. These will be useful for editing purposes, but also for showing things to the player and for our brief cutscenes.

Today I added editor-only trigger menus - so you can define a trigger near a computer console or switch that specifies the players choices, as well as the command to execute for each.

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!