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.
Page Index Toggle Pages: 1
Smooth Shading? (Read 927 times)
Smooth Shading?
May 13th, 2006, 1:45am
 
Simple question -- does Processing support Gouraud or Phong shading in either P3D or OPENGL? (Basically, what I'm looking for is smoothed shading in a lot of triangles I created with beginShape/endShape.)

If so, how can I switch it on?
Re: Smooth Shading?
Reply #1 - May 13th, 2006, 5:36pm
 
Both P3D and OPENGL do,if you set the vertex normals yourself with normal(Nx,Ny,Nz); before calling vertex(x,y,z);
Re: Smooth Shading?
Reply #2 - May 13th, 2006, 7:59pm
 
That's exactly what I was looking for -- thanks!
Page Index Toggle Pages: 1