FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   fill(r,g,b,alpha)
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: fill(r,g,b,alpha)  (Read 343 times)
JohnG

WWW
fill(r,g,b,alpha)
« on: May 20th, 2004, 5:20pm »

Is there a known "issue" with using alpha channels in 3D?
 
I've crated a colour cube out of boxes, with the red/green/blue value changing depending on the axis, and made the boxes transparent using fill(r,g,b,12;
No, on one side of the cube, this works as expected, you can jus tabout make out cubes behind.
 
However, once the cube has rotated, you can suddenyl see the rear of the cube, as if the front cubes are 100% transparent.
 
I'm wondering if certain colours get priority when working out the final pixel colour?
 
Here's an applet that shows the bug:
http://www.hardcorepawn.com/alpha_cube/
 
The high red value end of the cube seems to get priority in the final pixel colour.
 
TomC

WWW
Re: fill(r,g,b,alpha)
« Reply #1 on: May 20th, 2004, 6:12pm »

Yep, common problem.  You need to sort your polygons if you want to fix it... http://processing.org/discourse/yabb/board_Proce_55ing_software_bugs_action_display_num_1076660476.html#1
 
Pages: 1 

« Previous topic | Next topic »