Hi
I’ve been programming using opengl for a while now but I haven’t worked on anything big yet
I was wondering if anyone could point me in the direction of any resources that would let me get “good” lighting in my opengl scene
ie realistic enough but interactive
when the scene gets pretty complex the default opengl lighting just looks terrible :s
anyway any help would be greatly appreciated
thanks in advance.
In this case you should look into per-pixel lighting via the fragment shaders. First pointers: phong lighting, bump mapping, parallax mapping, BRDF, Cook–Torrance model, Freshnel term, Schlick’s lignting approximation (I like that one a lot )
hi again
i looked into shaders as you pointed out and tried the per pixel shader as mentioned in the lighthouse3d tutorials but it didnt solve my main problem which is that a face turns practically white when the camera faces it, and is too dark when the camera faces away from it.
i’ve tried adding more lights and that somewhat solves the darkness problem but it obviously won’t (and doesn’t) solve the too-bright-when-facing-the-camera problem