FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 302 : Bug when rendering hidden surfaces on spheres
Last modified: 2006-03-08 20:00
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
DUPLICATE of bug
176
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
wxs
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2006-03-07 18:07
The following code, depending on what angle you view the sphere from, will
sometimes display hidden faces entirely, and sometimes show them properly
shaded by the semi-transparent fill on the sphere.
void setup() {
size(400,400,P3D);
}
void draw() {
background(255);
translate(width/2,height/2,0);
rotateX(mouseY*TWO_PI/height+HALF_PI);
rotateY(mouseX*TWO_PI/width+HALF_PI);
sphereDetail(20);
fill(100,200,50,200);
sphere(100);
}
Additional Comment
#1 From fry 2006-03-08 20:00
second item under "common issues / not bugs" in the faq:
http://processing.org/faq/bugs.html#issues
*** This bug has been marked as a duplicate of
176
***