Visualization

Published January 31, 2006
Advertisement
Over the last couple of days I made some more changes, for instance, I modified the ambient occlusion calculation ( again ), and reduced the distance I shoot rays from 16 to 4 meters.

I was scaling the rays occlusion amount by how far away they hit something, but just casting multiple scattered rays gives largely the same effect, so I removed it.

I have been debugging some perf problems, and fixed some graphics glitches as well. The shadows are not showing up on the boned characters right now, so I added another viz mode to help debug it.

This mode shows the shadow casting & receiving frusta as near->far plane line segments.



This showed a surprising # of lights doing some shadow casting calcs wrt the player and other objects. Now, since these lights don't move, I precalculate the per-light ibs and bounding boxes to avoid casting or receiving shadows with geometry not involved with the light, so it's not as bad as it looks, but still, some of the frusta are quite large. I found that some of these lights have a 90 meter diameter, which is over half of the level!

I added some code to take the max light color into account in order to reduce the effective light bounds. In other words, if your light color goes to 0.5, 0.0, 0.0, then you know that the intensity can only go to 0.5 * attenuation, so you can shrink your bounding box in half without losing anything. This didn't help too much, but perf is still good.

On another note, I have been playing with the camera again, and have brought it really close. With the new much improved artwork, I gotta say, I like the look. Feedback welcomed.








Previous Entry Frusta
Next Entry Progress
0 likes 5 comments

Comments

jollyjeffers
Quote:if your light color goes to 0.5, 0.0, 0.0, then you know that the intensity can only go to 0.5 * attenuation, so you can shrink your bounding box in half without losing anything
Clever trick, I'll have to remember that one [smile]

As for the new camera position - I like it as well, puts the view more "in the action" for lack of a better term.

Although, the one thing that I noticed straight off (and it could be nothing) is that the graphics look a lot more blurry and less crisp than before.

You're using a softening/bloom like filter for post-processing, right? Could possibly do with toning that down?

This image:

Is a good example of the blurry - the floor on the RHS could do with being a lot sharper. Almost looks to me like it's a very aggressive form of mip-mapping?

hth
Jack
January 31, 2006 06:19 AM
Etherstar
Beautiful and teeming with atmosphere. Keep up the great work.
January 31, 2006 10:47 AM
SI_78
Looking ace, keep it up :-)
January 31, 2006 01:09 PM
roel
Very nice! The "temple level" (lowest screenshot) begs to get explored, I feel the urge to walk to the wall in the distance and look around :)
February 13, 2006 12:25 PM
Cypher19
Quote:Is a good example of the blurry - the floor on the RHS could do with being a lot sharper. Almost looks to me like it's a very aggressive form of mip-mapping?


Looks like trilinear filtering to me...

Btw Simmer, looks very nice.

Oh, and would it be possible to see what the game looks like with antialiasing on?
February 13, 2006 12:29 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

1.2 Almost ready...

1124 views

Sound Paths

1341 views

Stately Progress

1143 views

State Lines

1292 views

Pulsing

876 views

Return to The Ship!

1016 views

Cameras & Boxes

1133 views
Advertisement