Talk:Death Star

From Rosetta Code
Revision as of 17:30, 26 June 2015 by Rdm (talk | contribs) (→‎J)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Perl 6

The perl6 output doesn't look quite right. --Ledrug 03:25, 20 August 2011 (UTC)

Agreed. I will look at it. --TimToady 14:31, 20 August 2011 (UTC)
Fixed, thanks. --TimToady 16:41, 20 August 2011 (UTC)
Interestingly, this other buglet I've been fixing distorts the ellipse on the other side, by making the outline of the entire figure always a circle, when it needs to show background for rays where both points of the positive sphere are eaten by the negative sphere. Most of the chosen spheres don't do this, but if you increase the size of the "small" sphere to be equal or larger than the "large" sphere, you'll see the intersection of the two spheres is far from an ellipse in programs with this bug. So while it's not important for this task, it would be better if the algorithms were more correct in case someone wants to use them elsewhere. (It would probably also be better for that reason to name them "negative" and "positive" spheres in the solutions, since in general the negative sphere doesn't have to be smaller than the positive sphere.) --TimToady 02:31, 21 August 2011 (UTC)
Originally I wrote the C code as a quick hack, mostly for laughs. I noticed it may have this bug, and later fixed it in the perl code. I probably should check the C example again. Apparently I already fixed it at some point, huh. --Ledrug 03:06, 21 August 2011 (UTC)
Er, actually, you're not going insane; I just fixed it several hours at [1].
Ah ok, didn't see that edit -- and thanks. --Ledrug 06:32, 21 August 2011 (UTC)


I removed a sentence about possiblility of calling OpenGL: any number of other languages could, and the example didn't. Plus, CAT scan-like slices won't be of much help for producing a 3D image easily without lighting: if you superimpose them, you get a solid circle. --Ledrug 01:14, 24 August 2011 (UTC)

I have removed the Alternative Implementation to Death_Star/J-Oops because the rendered result does not look right for this task. --Rdm (talk) 17:30, 26 June 2015 (UTC)