Hi Alex,

Your texture coordinates array needs to have 2*npoints values (since you are
TEXTURE_COORDINATE_2). So you'd need to change your code like this:


        float[] texCoords = new float[2*npoints];
        texCoords[0] = texCoords[1] = 0.0f;
        texCoords[2*npoints-2] = texCoords[2*npoints-1] = 1.0f;

        for(int i = 1; i < 2*npoints-2; i++) {
                texCoords[i] = (float) i/npoints;
                texCoords[i+1] = (float) i/npoints;
                i++;
        }

That should solve your problem.

- Suri

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to