Home Products Download Order Contacts

comp.graphics.algorithms

Subject: Re: raytracing - chess board algorithm



Samuel Hornus avait énoncé :
> On Tue, 09 May 2006 11:36:23 +0200
> psr wrote:
>
>> Just a little problem when x and y are between 0 and 1, but in this case i
>> increment x or y when they are > 0.
>
> I don't understand what your problem is ?
> When converting to integers, you should use a floor function,
> 0.5 -> 0
> -0.1 -> -1
> 1.1 -> 1
> -0.99 -> -1
> -1.0001 -> -2
>
>> When the tiles are far, the result is not pretty good.
>
> :-) Welcome to the antialiasing/anisotropic filtering world.

With the Floor function, all works fine.

Just need to improve the AA function :)

Thanks.

psr.



Reply


View All Messages in comp.graphics.algorithms

path:
raytracing - chess board algorithm =>Re: raytracing - chess board algorithm =>Re: raytracing - chess board algorithm =>Re: raytracing - chess board algorithm =>Re: raytracing - chess board algorithm =>Re: raytracing - chess board algorithm =>

Replies:

Copyright © 2006 WatermarkFactory.com. All Rights Reserved.