New answers tagged opengl-es2
It depends on the implementation of the multiply operation. The internals will suppose an ordering within your matrices, row major or column major. If the ordering of your matrices is arranged the way the function expects them, then it is up to the second dpendancy: namely the respect of the correct mathematical commutativity. (which they should) When you ...
You need to implement/find something that can load the model data into verts/normals/uvs. etc. Use something like blender to convert the format into the format of your choice.
If the source image is bi-level (1-bit black/white), a direct mapping of greyscale to gradient will not suffice. A possible solution to the problem is to compute a distance field (preferably as an offline task), where each texel encodes the distance to the nearest white texel. You can then use that distance to sample the gradient map. The images below show ...
Not sure about doing it with JNI/C++ but in Java I just query the GLSurfaceView for it's size with surface.getWidth() and surface.getHeight(). This provides the exact pixel dimensions of the view/surface.
This is just a guess, but I notice that the edges of your image(s) are anti-aliased. When you scale the images down using Linear filtering, the semi-transparent edges might be set to black, because the filter cannot handle semi-transparent pixels. This is just an idea, but it might be worth a try to remove the semi-transparent pixels which surround the ...
Top 50 recent answers are included