PDA

View Full Version : Per Pixel Lighting ?



Undertaker
05-03-2004, 01:39 PM
Is it possible to do per pixel lighting (hardware accelerated or not )without using Nvidia extensions ?
I know Doom 3 has lighting effects like those achieved with Direct3D`s pixel shader, but is it possible to do that hardware accelerated with OpenGL ? and so that it can work with all video cards not only Nvidia (all demos I`ve seen use Nvidia proprietary extensions )

-NiCo-
05-03-2004, 03:05 PM
Most per pixel lighting effects make use of register combiners of nvidia graphics cards. The same effects can however be implemented by using the ARB_texture_env_* extensions.

I think you will probably be interested in the ARB_texture_env_dot3 extension in perticular.

Undertaker
05-04-2004, 09:26 AM
Where can i read about this extension and it`s use in lighting ?

-NiCo-
05-04-2004, 09:37 AM
Check out http://www.paulsprojects.net/tutorials/simplebump/simplebump.html

There's an implementation of a bump mapped torus in combination with per pixel lighting.

N.

-NiCo-
05-04-2004, 09:39 AM
Also, a detailed explenation of the extensions can be found at
http://oss.sgi.com/projects/ogl-sample/registry/

Lots of reading fun :)

N.