Visual Artifact

Full-scene Motion Blur for Unity Pro

Visual Artifact

Postby any_user » Tue Apr 01, 2014 6:10 am

I'm using the effect for a racing game (http://krautscape.net/), and I noticed an artifact, visible behind the wheels.

Image
Image

The car is a compound object consisting of a main body (Skinned mesh), four suspension parts (skinned mesh), and four wheels (static mesh)). All the renderers have an AmplifyMotionObject script. All the parts move slightly differently every frame, depending on physics.

I'm not sure what could cause the problem. The wheels causing the problem use a bumped specular shader. The first screenshot is with shadows/SSAO, but it also happens without (second screenshot). The artifact is only visible when driving on the track, but not when in the air.

Any hints what I could try to fix this?
any_user
 
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm

Re: Visual Artifact

Postby Diogo Teixeira » Wed Apr 02, 2014 5:54 pm

Hi

Thank you for reporting this issue.

How did you set up Amplify Motion? Are you excluding the car from the blur using Amplify Motion culling mask?

Since you have two objects at very different speeds, to avoid sampling artifacts it's recommended that the car is either excluded using culling mask (no motion blur on car) OR rendered on top using an Overlay camera (still gets motion blur).

Please let me know if this helps.
Research & Development at Amplify Creations
User avatar
Diogo Teixeira
 
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: Visual Artifact

Postby any_user » Wed Apr 02, 2014 7:20 pm

Is adding the AmplifyMotionObject script to the option the same like excluding it from the culling mask, or does it work differently? If it's different, I'll try that.
any_user
 
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm

Re: Visual Artifact

Postby Diogo Teixeira » Sat Apr 05, 2014 12:21 pm

any_user wrote:Is adding the AmplifyMotionObject script to the option the same like excluding it from the culling mask, or does it work differently? If it's different, I'll try that.


In all cases, you should add an AmplifyMotionObject script to the car.

To exclude it from having blur using the culling mask: set it to a different layer as everything else and exclude that layer from the Amplify Motion Effect culling mask property.

The second option, which preserves blur on the car but doesn't mix both, involves using an Overlay Camera:
- Exclude the car from the main camera's culling mask.
- Create a second "overlay" camera that renders only the car; disable clear and attach to main camera.
- Add camera to Overlay Cameras property in Amplify Motion Effect
Research & Development at Amplify Creations
User avatar
Diogo Teixeira
 
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: Visual Artifact

Postby any_user » Sat Apr 05, 2014 6:17 pm

I checked it and noticed that I already had it (the car, wheels, etc.) on an excluded layer like you suggested.

It looks like it has something to do with moving objects which are close to static objects. I made a video to illustrate the problem (download it here: http://krautscape.net/download/motionblur.mov). On the left is a cube with the AmplifyMotionObject script, on the layer which is excluded by the effect (same like the car and the wheels etc.). The closer the cube is to the ground, the better you can see the artifact.
any_user
 
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm

Re: Visual Artifact

Postby Diogo Teixeira » Mon Apr 07, 2014 8:46 am

One final question:

Are the car objects being instantiated at runtime? And if so, does this also happen if you start the scene with the objects already instantiated?
Research & Development at Amplify Creations
User avatar
Diogo Teixeira
 
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: Visual Artifact

Postby Diogo Teixeira » Wed Apr 16, 2014 3:53 pm

I've got a new build that fixes the nullref and attempts to debug this issue. Would you mind testing it?

However, this is a public forum so I can't share the build here. Unless you're OK with a watermarked version.

If you're already a customer, please get in touch and include your Asset Store invoice number so we validate your purchase. This way we can end you full test builds directly, and we'll add you to the system so you can access official releases and devbuilds through our website.

Please let me know if there's any chance of me debugging your project. I'm available to sign any NDAs required, if necessary, in order to protect your IP.
Research & Development at Amplify Creations
User avatar
Diogo Teixeira
 
Posts: 124
Joined: Sat Aug 10, 2013 12:34 am

Re: Visual Artifact

Postby any_user » Wed Apr 16, 2014 5:20 pm

Hey Diogo

Finally had the time to check if it also happens when the objects are not instantiated during runtime: It looks exactly the same. Disabling the rotation of the wheels also doesn't change anything with or without excluded layers. It also makes no difference when I don't exclude the layer of the car (with disabled rotation of the wheels).

I've also seen that on some computers the car is blurred (when on excluded layer). It normally doesn't happen on my computer (OSX), but sometimes it does. I haven't found a way to reproduce it yet. The car is a physical object that has interpolation enabled, the camera moves in LateUpdate, after default time (in script execution order), if that matters. Maybe it has something to do with script execution order?

I'll send you a mail to [email protected] with my invoice number.
any_user
 
Posts: 8
Joined: Tue Mar 25, 2014 6:34 pm


Return to Amplify Motion

Who is online

Users browsing this forum: No registered users and 6 guests