Samsung / rlottie

A platform independent standalone library that plays Lottie Animation.
Other
1.19k stars 228 forks source link

render problem #330

Closed shudct closed 4 years ago

shudct commented 4 years ago

I have tested some simple compositions as followed. But some strange problems have appeared.

  1. when rendering shapes, it has black edges, however in AE file is not contained.
  2. it seems that the shapes with opacity is not support?
  3. when rendering images, especially the image moved or zoomed in/out, the texture is incoherently if you concat them to a video and has some color blocks.

hope for your reply! thanks~

shape.aep.zip image aep.zip 截屏2020-03-26上午10 56 56

smohantty commented 4 years ago

Hi, Can you share the AEP with lower version . In my system i can't open it.

shudct commented 4 years ago

ok, I upload a new one.

shape 副本 CC (15.x).aep.zip image aep.zip

shudct commented 4 years ago

hi, I wonder if any solution for the above problem or have you discover the reason.

smohantty commented 4 years ago

Hi @shudct , I tested the generated json file from the resource you have provided and tested it in http://rlottie.com/ as well as the generated GIF file using the sample application lottie2gif provided with source . I don't see any problem with the white background . data json

As the layer above Red circle is not clipped to the circle boundary .. if the background is not white (maybe off white ) you can see those borders . you can easily replicate that in rlottie.com by changing the background color.

Hope this helps

shudct commented 4 years ago

thanks again, I have found the problem. By the way, I test the simple transforms, like shift and scale for images, the pixel of render result is a bit shaking and dismal.

pos scale the aep file is above.

Hope for your advice. Thanks again.

smohantty commented 4 years ago

@shudct , I can't open image.aep because of the old AE . could you please attach the lower version AEP file.

shudct commented 4 years ago

image 副本 CC (15.x).aep.zip

smohantty commented 4 years ago

Currently we are using simple liner interpolation for image resize thats why the scaling is not that smooth. need to add Bilinear interpolation for smooth scaling.

shudct commented 4 years ago

Thanks for your reply. By the way, could you tell me which script I can modify to achieve smooth scaling. Thanks again!

hermet commented 4 years ago

Created another issue ticket for bilinear interpolation support. https://github.com/Samsung/rlottie/issues/346