Circle generator.

Designed a level that creates new, exciting, and challenging Armagetron game play? Or maybe just something funky. Put it right here.
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Does your method have some kind of cumulative error? I fixed the invalid xhtml bug, thanks for the info.
There's no place like ::1
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Yes, but with 64-bit floating point it's not too large. The multiply-adds should also help a bit (just 10 FP instructions on PPC, not 14, BTW). Here's what a 1000000-gon looks like at the point of the largest error (Z):

Code: Select all

M 373.205081 300.000000
L 373.204767 300.000544
L 373.204138 300.001632
...
L 373.205709 299.998912
L 373.205395 299.999456
Z
Close enough?
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

Jonathan wrote:Close enough?
I guess… It's all going to be converted to 32-bit floats in arma, anyways.
There's no place like ::1
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

The attachment explains what I did.
Attachments
Rotated ellipses.txt.gz
Really gzipped
(220 Bytes) Downloaded 240 times
QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

wrtlprnft thankyou for the link to the ellipse genereator.
Post Reply