Thanks for the info Egon. I'll have a think around how to proceed...!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menu
03-20 14:24:14.246: W/Adreno-EGL(7707): <qeglDrvAPI_eglChooseConfig:824>: EGL_BAD_ATTRIBUTE
03-20 14:24:14.246: I/jPCT-AE(7707): No nonlinear depth buffer config found...using default mode!
03-20 14:24:14.246: I/jPCT-AE(7707): Unable to find a matching config...using default!
plane.compile(false, false, true, false, Config.glBatchSize);
method, not build(false)
?
Coordinate[] quads = new Coordinate[(xNum * yNum * 4) ];
Coordinate ll, ur;
int cnt = 0;
for (int yd=0; yd < yNum; yd++) {
for (int xd=0; xd < xNum; xd++) {
ll = new Coordinate(bbox.getMinX() + (xSize*xd), bbox.getMinY() + (ySize*yd) );//lowerLeft
//ur = new Coordinate(bbox.getMinX() + (xSize*(xd+1)), bbox.getMinY() + (ySize*(yd+1)) );//upperRight
ur = new Coordinate(ll.x + xSize, ll.y+ySize);//upperRight
quads[cnt++] = new Coordinate(ll); //lowerLeft
quads[cnt++] = new Coordinate(ur);//upperRight
quads[cnt++] = new Coordinate(ll.x, ur.y); //upperLeft
quads[cnt++] = new Coordinate(ur.x, ll.y); //lowerRight
}
}
Coordinate[] quadCS = quadGeom.getCoordinates();
SimpleVector lowerLeft=new SimpleVector();
SimpleVector upperRight=new SimpleVector();
SimpleVector upperLeft=new SimpleVector();
SimpleVector lowerRight=new SimpleVector();
plane = new Object3D(xNum * yNum * 2);
for (int c=0; c < quadCS.length-1; c+=4) {
lowerLeft.set((float)quadCS[c].x, (float)quadCS[c].y, (float)quadCS[c].z);
upperRight.set((float)quadCS[c+1].x, (float)quadCS[c+1].y, (float)quadCS[c+1].z);
upperLeft.set((float)quadCS[c+2].x, (float)quadCS[c+2].y, (float)quadCS[c+2].z);
lowerRight.set((float)quadCS[c+3].x, (float)quadCS[c+3].y, (float)quadCS[c+3].z);
plane.addTriangle(
upperLeft,0,0,
lowerLeft,0,1,
upperRight,1,0);
plane.addTriangle(
upperRight,1,0,
lowerLeft,0,1,
lowerRight,1,1);
}
Page created in 0.044 seconds with 12 queries.