Interactive Water Rendering with Caustics (and Sharks)

Test Shark shows off

Caustics

Getting there

Getting there

Intersecting shark mesh with water

Advertisements

3 Responses to “Interactive Water Rendering with Caustics (and Sharks)”

  1. Guille^Cocoon Says:

    Nice ! What is the trick to compute the water / shark intersection shape ?

    • skytiger Says:

      It was harder than I thought … and I haven’t perfected it yet.
      I used near and far clip planes to take a slice from the shark into a render target.
      But this leaves gaps (which surprised me as I thought I understood homogenous clipping, oh well)
      You get less gaps as you separate the clip planes, but then you get anomalies (fin ripples but no fins)
      So I try and keep them close together and fix the gaps just by “jiggling” and blurring (bodging)
      It all comes down to: how does the GPU clip a triangle that crosses both near and far clip planes?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: