First generate a texture with four squares like this:

BLACK  WHITE
WHITE  BLACK

Then create a quad and assign the texture coordinates as 0, 0 in the lower
left corner and 4, 4 in the upper right corner.  This should have the
effect of repeating (tiling) the texture four times in both the vertical
and the horizontal direction.  Of course the upper left texture coordinates
should be 0, 4 and the lower right should be 4, 0.

I think that should do it.  You might want to put a small border between
the colors.  This will help with any mipmapping texture wrapping that would
occur on the edges of the polygon.

--Mark

At 09:49 AM 9/12/2001, you wrote:
>How can I generate a texture for an object of the type chess board, using
>two images to compose the texture? (Image white and image black)
>
>[]'s
>
>J.P.


Mark Ferneau                    240-462-6262 (cell)
Director of Adv. Technology             801-437-4608 (efax)
Xtivia Technologies, Inc.               301-279-5703 (home office)
[EMAIL PROTECTED]                      http://www.xtivia.com/
[EMAIL PROTECTED] (wireless email)

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