airbnb / lottie-web

Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/
MIT License
30.54k stars 2.87k forks source link

Shadow Issues #2132

Open vnosiry opened 4 years ago

vnosiry commented 4 years ago

After updating to bodymovin_v5.6.9 I can't see the shadow in my animation

I tried to manually add this code:

_var animation = lottie.loadAnimation({
  ...
  filterSize: {
    width: '200%',
    height: '200%',
    x: '-50%',
    y: '-50%',
  }
})_  

but unfortunetely didn't get the shadow.

Wanted to have the shadow in animation. Thanks!

bodymovin commented 4 years ago

hi, can you share the aep and a separate link with your implementation if possible?

vnosiry commented 4 years ago

https://dropmefiles.com/LAOIJ Here you can find the AEP file. I highlighted the shadow layers with the orange color label to find it easily. Thanks!

bodymovin commented 4 years ago

Can you attach the file here? For security reasons I can't download it from that site.

vnosiry commented 4 years ago

Hi Hernan, sorry for the late reply I just realized the email. Here you can find the AE file and Bodymovin exported file that I got with a strange shadow.

On Sat, May 9, 2020 at 4:57 PM hernan notifications@github.com wrote:

Can you attach the file here? For security reasons I can't download it from that site.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/airbnb/lottie-web/issues/2132#issuecomment-626180179, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIRRGAH3JOC5HJOPJJI54LLRQVOLTANCNFSM4MS5XVSQ .

-- -Thanks Walid Nosiry

bodymovin commented 4 years ago

Hi, email attachments don't work in github. You'll need to upload them directly from here.

vnosiry commented 4 years ago

DropshadowIssue.zip

vnosiry commented 4 years ago

Uploaded.

bodymovin commented 4 years ago

I see it working fine, perhaps you haven't passed the filter value as part of the rendererSettings? https://github.com/airbnb/lottie-web/wiki/Renderer-Settings

vnosiry commented 4 years ago

After adding that code, animation totally disappears only whit background. Didn't find how this works, could you please send a screenshot or step by step guide. Thanks!

bodymovin commented 4 years ago

@vnosiry can you create a simple codepen example that I can take a look at?

bodymovin commented 4 years ago

rendererSettings should be a property of params

vnosiry commented 4 years ago

Here a demo animation with shadow tried to add this code:

rendererSettings: {
    filterSize: {
      width: '200%',
      height: '200%',
      x: '-50%',
      y: '-50%',
    }
  }
})

I got white BG all the objects disappeared. Could you add the code where it needs to be to get a proper shadow and send a screenshot or zip file back to me? Thanks!

demo.zip