Hi Artur,

         Worked a treat, you were right, I wasn't type casting my ints to
floats. Thank you immensely for your help. I doubt I would have been able
to figure that one out myself.


cheers,


Quoc.


At 03:12 PM 14/06/2001 +0200, you wrote:
>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".

===========================================================================
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