[SDL] "Perfect" circles
Peter Mulholland
darkmatter at freeuk.com
Thu Nov 9 10:13:25 PST 2006
Hello xEsk,
Thursday, November 9, 2006, 5:25:21 PM, you wrote:
> Hello,
> First, thank you to all for your answars! I'm so glad :)
> Second, I made this example to show you how I see the results (I build
> it on Windows, my main computer where I work is broken...).
> http://img73.imageshack.us/img73/2516/demo01lf8.png
> http://img490.imageshack.us/img490/3441/demo02js5.png
That is undoubtedly caused by "units" being far too small. If you are
going to use a sin table in integer form, you should be using half of
the value for the floating point part of the number at least. Look up
"fixed point arithmetic" for more details.
Try "units" as 256.
--
Best regards,
Peter mailto:darkmatter at freeuk.com
More information about the SDL
mailing list