recastrodiaz wrote:I've just pushed an experimental "uvmesh" branch that adds support for textured polygons. Feel free to test it.
@IFL what do you understand by "not warped nor repeated texture".
IFL wrote:Rodrigo, you're awesome. I've had trouble updating the points of the polygon... but I've temporarily gotten around that by re-creating the textured poly every time it needs to change. That's a rather slow method though, so am I missing something about updating the polygon? I get an "array index out of bounds" error inside of the TexturedPolygon Update(x,y) method even if I pass the same number of points... But it's good so far. I got an image centered using high-level code and it's clamped by default if you don't use a repeating texture so I'm more than happy. Take a look:
recastrodiaz wrote:The problem is that you can't control de number of vertices the triangulation algorithm computes. If the polygon needs more triangles it will need more space to save the additional data. That's why I added a sizeRatio parameter to the constructors (not quite usable in the last Polygon version ). You could pass a sizeRatio > 1 to allocate a larger vertex list and avoid the array index out of bounds exception.
recastrodiaz wrote:PS : your AELightRays looks good
recastrodiaz wrote:I have a working GLES2 implementation and an example using it in my github forks :
https://github.com/recastrodiaz/AndEngi ... ample.java
It is not fully tested and it lacks some features, but does render convex and non convex polygons.
Let me know what you think and what features you might need. Any help is welcome.
RealMayo wrote:Hi gst,
It sounds like you might be using AnEngine GLES1. If so then remove everything from Eclipse and then follow my tutorial for AndEngine GLES2.
Finally you will need to replace AmdEngine itself with recasrodiaz version of AndEngine.
gst wrote:Thanks for your answer.
But I continue with some problems. When I try to clone this repository "https://github.com/nicolasgramlich/AndEngine.git" I receive an error: " HTTP Error 406: Not Acceptable".
I'm using the Mercurial clone option "Clone Existing Mercurial Reposotory".
As I see in your video, you use a Git.
Users browsing this forum: No registered users and 33 guests