Author Topic: 2d blur and Defer atmosphere issue  (Read 5416 times)

Offline fleetwood

  • Member
  • *
  • Posts: 1232
Re: 2d blur and Defer atmosphere issue
« Reply #15 on: June 08, 2014, 04:00:52 PM »
Interesting - thanks for your reply

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3392
  • I'm the crazy one
Re: 2d blur and Defer atmosphere issue
« Reply #16 on: June 09, 2014, 10:21:41 PM »
2D Motion Blur should work on clouds. 2D (post processed) motion blur on clouds can have some problems because the clouds are semi-transparent entities with many overlapping points that can potentially move at different speeds or even different directions, but in many cases the results are acceptable.

Your scene looks like it should be able to render OK with 2D Motion Blur, but clearly it's not, so I think there's a bug here. I'm investigating now.

Matt
Just because milk is white doesn't mean that clouds are made of milk.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3392
  • I'm the crazy one
Re: 2d blur and Defer atmosphere issue
« Reply #17 on: June 09, 2014, 10:30:04 PM »
I remember seeing something in the wiki about defer atmosphere allowing for 'volumetric motion blur' but it doesn't mention anything about the 2d not working with it.

For true volumetric motion blur you need to use Defer Atmo/Cloud and use the 3D Motion Blur method. But separate from that question, there is still a bug here with the 2D motion blur that I need to track down.
Just because milk is white doesn't mean that clouds are made of milk.

Offline jdent02

  • Member
  • *
  • Posts: 38
Re: 2d blur and Defer atmosphere issue
« Reply #18 on: June 10, 2014, 02:43:17 AM »
I remember seeing something in the wiki about defer atmosphere allowing for 'volumetric motion blur' but it doesn't mention anything about the 2d not working with it.

For true volumetric motion blur you need to use Defer Atmo/Cloud and use the 3D Motion Blur method. But separate from that question, there is still a bug here with the 2D motion blur that I need to track down.

Thanks Matt!  Just out of curiosity can you say what the difference is between normal 3d blur and volumetric 3d blur?  The wiki dips its toes in but doesn't say very much about it.

Offline Oshyan

  • Planetside Staff
  • *
  • Posts: 12662
  • Holy snagging ducks!
Re: 2d blur and Defer atmosphere issue
« Reply #19 on: June 10, 2014, 03:18:47 AM »
There are only 2 types of Motion Blur: 2D and 3D. 3D is inherently "volumetric".

- Oshyan

Offline jdent02

  • Member
  • *
  • Posts: 38
Re: 2d blur and Defer atmosphere issue
« Reply #20 on: June 10, 2014, 05:18:40 PM »
There are only 2 types of Motion Blur: 2D and 3D. 3D is inherently "volumetric".

- Oshyan

Oh okay, I was thinking there was some difference as Matt said you needed to have defer atmosphere and 3d blur on to get 'true' volumetric blur, implying that the 3d blur with defer atmosphere off wasn't the same thing.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3392
  • I'm the crazy one
Re: 2d blur and Defer atmosphere issue
« Reply #21 on: June 11, 2014, 07:28:26 PM »
With Defer Atmo/Cloud turned OFF, the micro-polygon rasteriser projects the static atmosphere/cloud onto the micro-polygon of the terrain, background sphere, and other displaceable objects, and then the 3D motion blur blurs the micro-polygons. So it only gets the blur of the micro-polygon surface behind it. Also realise that if you're rendering with ray traced objects, you get an image where some parts are micropolygon atmosphere (on the pixels with no ray traced objects) and ray traced atmosphere on the pixels where there are ray traced objects.

Here's some more info about Defer Atmo/Cloud which might give some context to what I've just said, although it doesn't talk much about motion blur:

http://www.planetside.co.uk/wiki/index.php?title=Ray_Trace_Objects_and_Defer_Atmosphere/Cloud

Matt
Just because milk is white doesn't mean that clouds are made of milk.

Offline Matt

  • Planetside Staff
  • *
  • Posts: 3392
  • I'm the crazy one
Re: 2d blur and Defer atmosphere issue
« Reply #22 on: June 11, 2014, 07:42:09 PM »
I've found the source of the problem in your scene. In Terragen 3.1 I made a change so that cloud motion vectors are only calculated if you have a Render Layer with the Cloud 2D Motion Vectors enabled. Unfortunately this affects 2D motion blur as well.

The bug will be fixed in 3.2. You can workaround the problem in 3.1 by assigning a Render Layer to the render node and enabling Cloud 2D Motion Vector on the Render Elements tab. However, 2D motion blur doesn't give you the right amount of blur at the edges of the clouds, where the semi-transparency of the clouds causes the cloud vectors to be mixed with the surface vectors. 3D motion blur is still the only way to properly blur clouds when there is significant overlapping parallax.

Matt
Just because milk is white doesn't mean that clouds are made of milk.

Offline jdent02

  • Member
  • *
  • Posts: 38
Re: 2d blur and Defer atmosphere issue
« Reply #23 on: June 11, 2014, 10:00:21 PM »
Thanks for the quick work Matt.  I think this scene does have significant parallax between the clouds and the terrain so the 2D blur is probably not the way to go.  I've been re-rendering the sequence with 3D blur and everything is working fine without too much of an impact on performance.

Thanks for the explanation of the blur methods too.  I can't say I 100% understand how it works, but it's enough.