GLRippleView
GLRippleView copied to clipboard
Drawing edge of a display is weird

Hi. This problem still is actual? I think, that problem due to a perspective camera in OpenGl, as a final render does not plane projection of image. Therefore must to change a camera angular view, or - to cut borders of output image )
I was able to find a solution to this by increasing the vertex values used for positioning the bitmap in RippleRenderer from 1.0 to 1.1 and 0.0 to 0.1. This crops the image from the borders ever so slightly but now you do not see the unnecessary blank area on the edges.
Code:
private val VERTICES: FloatArray = floatArrayOf(
-1.1f, 1.1f, 0.1f, // ↖ left top︎
-1.1f, -1.1f, 0.1f, // ↙︎ left bottom
1.1f, 1.1f, 0.1f, // ↗︎ right top
1.1f, -1.1f, 0.1f // ↘︎ right bottom
)
Maybe this will help others.
@PriyaSindkar Thank you for sharing your idea. It might be a good solution. Let me think about it.
how can i stop the animation