FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 412 : ambientLights() passing red arg to both red and blue in P3D
Last modified: 2006-10-10 18:43
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
FIXED -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
jetonski
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2006-10-10 16:23
test code:
---
size(400,400,P3D);
ambientLight(0,0,255);
fill(255);
ellipse(100,100,50,50);
---
ambientLights(255,0,0) illuminates things as magenta
ambientLights(0,0,255) does not illuminate (shows up black)
ambientLights(255,255,0) illuminates white.
It would appear that the first arg (red) is getting used to set both red
and blue in the GL call.
Additional Comment
#1 From fry 2006-10-10 18:43
found and fixed, thanks for the report.
notes: this also affects OPENGL because lights are handled inside P3D.