Hello, i don't make out the difference between raytracing and shading technique like Phong or Gouraud.
For 3D modeling do one have to choose between those algorithms or they can be implemented both in the same algorithm.
Thank you.
Hello, i don't make out the difference between raytracing and shading technique like Phong or Gouraud.
For 3D modeling do one have to choose between those algorithms or they can be implemented both in the same algorithm.
Thank you.
Phong is more like a surface property, they describe how light is scattered. See http://en.wikipedia.org/wiki/Brdf
Ray Tracing is an algorithm that simulates the process of light scattering. See http://en.wikipedia.org/wiki/Ray_tracing_%28graphics%29
You can use Phong-BRDFs in a realistic ray tracer to describe surfaces, and there also exists an approximation that is usable in rasterization.
Technically ray tracing really only determines visibility and distance. Recursively it can be used for reflections, refractions, and shadows (checking light source visibility).
Stochastic ray tracing or photon mapping can simulate light scattering.
Phong and Gouraud shading are reflection models applied to at a surface.
It is common for people starting out in ray tracing to use a Phong or Gouraud lighting model. You can use those lighting models with any rendering system (scan conversion for example).