Quoc Huynh wrote:
> row = 2;
> cols = 2;
>
> for(int i=0; i <(row); i++)
> {
> for(int j=0; j <(cols ); j++, li+=4)
> {
> landGeom.setCoordinate(li, new Point3d( i, 0, j ));
> landGeom.setTextureCoordinate(li, new Point2f(
> (i/row),(j/cols) ));
What type of variable is row and cols ? If it is int, then you are
getting strange results, because i/row and j/cols are rounded down to
int.
Artur
===========================================================================
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".