• entries
    338
  • comments
    2046
  • views
    1154230

Real time shadows, real-time reflections, etc...

Sign in to follow this  
dgreen02

123 views

I've pretty much got the hardware skinning implemented, it doesn't look like there will be any more showstoppers, though I've still got a lot to do.

I'm pretty disappointed with the lack of functional .x exporters for newer versions of 3D Studio Max 7 or 8 (I'm using the trial versions, I don't have 3 grand laying around lol). I've tried the two most popular ones and neither has given satisfactory results. If I can't export the character models directly from .max format into .x format, I'll loose the vertex-weighting information that the artist put into them.

Right now I'm using Half-Life's .smd format as an intermediary to get the models into Milkshape 3D (which doesn't support vertex weighting) from there I export to .x, using a *functional* .x exporter. I've found a artist who is very familiar with Milkshape3D and he has helped me create alternate versions of the character models, though this requires the use of "helper joints" which hides the lack of true vertex weighting, as I can only have one vertex associated with each bone in the animation skeleton.

When we add helper joints to the models the shared skeleton is broken and this requires me to store seperate animations for each of the character models, which is a bummer...but the only real solution.

It will take some time and work, but it looks like I'll be able to get the models looking pretty damn good in the game. Plus I'm now taking full advantage of hardware skinning, which has made the game about 4x faster...it runs like a charm with 100s of characters on screen. I still have not even re-implemented the LOD algorithms yet, this will make it even faster. Other advantages to the new character skinning system include blending between multiple animations, and the ability to have different instances of the same animation (so characters don't all run in stride) pretty easily.

Next up is the real time shadows in the game...about 9 months ago I had stencil shadows in my engine, I was doing all the calculations/extrusion on the cpu...it was alright...I don't know if I want to use them anymore. Now that I'm doing the transforming of the player models on the GPU I don't know the transformed vertex positions so it would be rather hard to do stencil shadows. It was a lot easier when I was doing it all in software.

I think I'm going to go with shadow maps as the "high end" shadowing method in the game. I've never worked with shadow maps before, so I don't know entirely what I'm in for...but it seems like it would be a better option since I could just render everything into a texture I wouldn't need to know what the transformed vertex positions were.

One thing that kind of bothers me is the resolutions of the building/static environment shadows. The concept of cascading shadow maps seems to be a solution to this, unless I've totally mis-interpreted what they're for. Either way I've got a lot of research to do on the subject.

I'm also going to be implementing real-time reflections on the vehicles, which will be pretty straight forward...I'm not really sweating that right now. After that's all done, I'm going to start working on some fancy water for the rivers/oceans in the game. Aaaaand that should wrap up the facelift I'm giving the game's graphics engine.

I'm going to do a quick run-down of each of these graphics featrues and if any of them take more than 3 days each, I'm going to save that feature until I get the game into BETA, and go back to focusing on multiplayer which I've got in a pretty stable state right now.

I'll keep you guys posted.

- Dan
Sign in to follow this  


2 Comments


Recommended Comments

Great stuff. I'm looking forward towards new screenshots and movies. What did your publisher say about updating the graphics part of the game? I bet they're glad about it. ;-)

I know I mentioned it before, but don't you think detail textures on the ground would be a good idea? They would enhance the experience in the third person mode. Of course, low resolution textures are fine in strategy games but since you will be playing (a lot?) in the third person view additional textures would be great.

Good job in any case!

Share this comment


Link to comment
When looking at your screenshots, I'm always amazed but I always think they need some anti-aliasing to get rid of those rough jagged lines, at least as an option in game.

Share this comment


Link to comment

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