Author Topic: reflective water bugs  (Read 2041 times)

Shreds

  • Stingray
  • Posts: 88
reflective water bugs
« on: February 15, 2006, 07:56:26 PM »
these picture are from in an underwater glass tube.
Notice the reflection of the co2 bar in the upper right in both. Its hard to get the full effect of whats going on without being able to move the camera.

Shreds

  • Stingray
  • Posts: 88
Re: reflective water bugs
« Reply #1 on: February 15, 2006, 07:58:02 PM »
tube3.jpg is from a half submerged window looking into the water. It is reflecting.. well, something bad. I assume the brown bricks which would be backwards for it to reflect.
tube4.jpg is from in the water, what it looks like without errors.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: reflective water bugs
« Reply #2 on: February 15, 2006, 08:07:28 PM »
Try setting gl_clear 1 and r_reflectivewaterdebug 1 -- it should make it easier to see what's going on.

Shreds

  • Stingray
  • Posts: 88
Re: reflective water bugs
« Reply #3 on: February 15, 2006, 08:24:18 PM »
gl_clear 1 <-- made it look more.. normal

r_reflectivewaterdebug 1 <-- cmd doesnt work

Shreds

  • Stingray
  • Posts: 88
Re: reflective water bugs
« Reply #4 on: February 15, 2006, 08:24:49 PM »
and 2 more

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: reflective water bugs
« Reply #5 on: February 15, 2006, 08:34:54 PM »
Ok.  It looks like a PVS (potential visibility set) issue.  Unfortunately there's no PVS for reflected surfaces, so it just grabs one at the surface of the water, but that's not always sufficient.  Most of the reflected texture is "void."  With gl_clear set, it turns it black.  Without it, you just get remnants of whatever was last rendered.

Shreds

  • Stingray
  • Posts: 88
Re: reflective water bugs
« Reply #6 on: February 15, 2006, 08:48:27 PM »
okay, got the debug command from your helpful tab hint.
3 sshots, one which shows console reflecting in the water, 2 and 3 are gl_clear 0 and then gl_clear 1
you can see its reflecting from the cieling in that debug box.
also, i turned my res to 800x600.

Shreds

  • Stingray
  • Posts: 88
Re: reflective water bugs
« Reply #7 on: February 15, 2006, 08:48:47 PM »
final with clear

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: reflective water bugs
« Reply #8 on: February 15, 2006, 09:00:55 PM »
Oh.  I see what's going on now.  It checks if the player is in or out of the water when doing the reflection.  If in the water, it renders what's underwater, otherwise it renders what's outside of the water.  Since you're underwater, but not IN the water, it's reflecting the wrong side.

Eiii

  • Autococker
  • Posts: 4595
Re: reflective water bugs
« Reply #9 on: February 15, 2006, 10:46:04 PM »
So that's what's up with the whole 'crazy backside of water' thing...

Also, I'm hoping you'll get the reflections to be more efficient, somehow.