We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › editing color of 3D object pixels
Page Index Toggle Pages: 1
editing color of 3D object pixels (Read 406 times)
editing color of 3D object pixels
May 4th, 2008, 10:10pm
 
newbie here.

How do I edit the color of pixels in a 3D object such as a sphere? Is there a 3D version of set()? Thanks for any help.
Re: editing color of 3D object pixels
Reply #1 - May 4th, 2008, 11:12pm
 
Maybe this could help?

Code:
set( screenX(x, y, z), screenY(x, y, z), color ); 


See screenX() and screenY() reference :
http://processing.org/reference/screenX_.html
Re: editing color of 3D object pixels
Reply #2 - May 7th, 2008, 1:17pm
 
You can use the pixel array to get the pixels off a 3D texture. You are going to have to call upon the texture not the screen. So something like img.pixels[].  


http://processing.org/reference/pixels.html
Page Index Toggle Pages: 1