You can choose between flat and smooth (gouraud) with 
PolygonChunk::setSmooth(true/false). This changes how OpenGL 
interpolates values across the triangle if you're using the standard 
fixed-function lighting.

Phong shading is not supported by OpenGL directly (there might be an 
extension for it, but no consumer card have support for it). However, 
OpenSG has a material called PhongMaterial which you could use instead 
of SimpleMaterial. (That is, unless you have your own glsl-shaders, then 
you will have to implement phong shading yourself.)

Cheers,
/Marcus

Madhavan wrote:
> Hi,
>  
> Is there any possibilities in OpenSG to set the flag to specify the 
> Shading technique like Flat, Smooth(Gouraud), and Phong Shading?
> currently i am using OpenSG 1.6.
>  
> Thanks
> A. Madhavan
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
>
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users
>   


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to