Home Products Download Order Contacts

comp.graphics.algorithms

Subject: Re: raytracing - chess board algorithm



On Sun, 07 May 2006 18:51:26 +0200
psr wrote:

> Can someone explain me how to get this chess board ? (I___m not asking=20
> for source code...)

Divide your x,y plane coordinates by the width of the chess squares.
convert the results to integers i,j.
color white if (i+j) is odd,
color black if (i+j) is even.
--=20
sh

Reply


View All Messages in comp.graphics.algorithms

path:
raytracing - chess board algorithm =>

Replies:
Re: raytracing - chess board algorithm

Copyright 2006 WatermarkFactory.com. All Rights Reserved.