Jan 062013
A new example has been added to the GLSL Core Tutorial showing the theory and implementation of directional lights, using both Gouraud and Phong shading models. Soon more light types, point and spotlights, will follow.
A new example has been added to the GLSL Core Tutorial showing the theory and implementation of directional lights, using both Gouraud and Phong shading models. Soon more light types, point and spotlights, will follow.
Hi,
Do you know about PTM(Polynomial Texture Maps)? I want to write an opengl program for Texture Mapping a 3D model(sphere/cylinder). So can we use opengl + shaders(vertex+fragment) + glut? I will be grateful if you can help me implement it.
Regards,
Siddharth
Hi,
Yes you can use OpenGL to render with PTMs. I would recommend the HP page (http://www.hpl.hp.com/research/ptm/) for background (if required), and this tutorial for a GLSL implementation (http://www.yaldex.com/open-gl/ch14lev1sec4.html).
Hope this helps,
Antonio