Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
shadows on car look strange.
02-09-2008, 06:31 PM,
#1
shadows on car look strange.
so yeah, i got a windows exe together it looks allot better.

but shadows on cars look really strange sometimes.
[Image: shadow-tc6.jpg]
[Image: shaodw-mini.jpg]

is this expected behavior, or is something wrong??
winxp, 2gb, geforce7900gt (169.21 drivers)

if something *is* wrong, what would be a good place to start source diving?
Reply
02-09-2008, 11:10 PM,
#2
 
That's expected, unfortunately.... If you know how to fix these self-shadowing artifacts at a reasonable framerate, let me know. I do have one idea, but I'm not sure it'd work for all cars because it would require them to all be closed geometry.
Reply
02-10-2008, 05:55 AM,
#3
 
I hope this gets fixed, I really love the new shadows, but this makes them kinda suck. What causes it?
Reply
02-10-2008, 05:44 PM,
#4
 
Quote:What causes it?

Finite shadow map size and finite z-buffer resolution. There are ways to deal with it, but some of them require performance hits...

HOWEVER! I found a bug in the way the diffuse lighting was calculated that caused it to not line up with the shadow lighting, so things should look much better now in source R1941 and shaders R153.
Reply
02-11-2008, 02:50 AM,
#5
 
speaking of shadows, they might look better in 24bpp (according to the comment in game.cpp added on release 1940) but on my 16bpp display vdrifit doesn't work any more, instead i get:

EXCEPTION: Error initilizing VDrift: Surface creation failed.

changing SDL_GL_DEPTH_SIZE back to 16bpp gets vdrift working again on my laptop. i really think we should query the display capabilities before we set things like this. i like nice shadows but i can live without them on my laptop if it means instead being able to run the program.

--alex--
Reply
02-12-2008, 12:57 AM,
#6
 
I set the depth buffer back to 16 bit in R1943. It doesn't actually help the shadow artifacts that much to have it at 24 bit anyway.
Reply
02-13-2008, 06:11 PM,
#7
 
Also, Joe has modified the shadows so that it's possible to see soft shadows. He left it commented out in the last SVN upgrade and it makes the shadow jaggies a little better. It doesn't quite fix it, but it masks the problem somewhat.

Joe why did you leave it commented out - performance issues? Still working on it? Should we include that in the next release?
Reply
02-15-2008, 08:24 PM,
#8
 
It's commented out for performance reasons. It'd be nice to have "soft shadows" as an adjustable menu setting (off/low/high).
Reply
02-21-2008, 03:21 AM,
#9
 
I see, I wondered if it was unfinished or something. Here's the issue entry for a soft shadows option: http://code.google.com/p/vdrift/issues/detail?id=56
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)