Kenny Hoff's real-time realistic lighting effects
Kenny Hoff's real-time realistic lighting effects
1998 did Kenny Hoff some work for Disney and the result was published on
his page. I made an archive and added makefiles
for linux, mingw and Borland some minor changes was also done. You will
find the documentation at Kenny's page so I will only gives some links
and comments. Thanks to Kenny Hoff for releasing his work to the public
and letting me distribute this archive.
links to material from Kenny Hoff
some comments
-
uses a lot of glPushAttrib and glPopAttrib and this slows things down
-
does not takes advantages of later extensions like multi texturing
-
the code is very clear but not the most efficient way to do things
-
perhaps more inspiration and starting point than an highly optimized up
to date library
-
many functions and I have not tested them all yet
-
the shadow maps is not well tested and runs very slow
-
I can not load the vrml model
-
projected textures has problems with small angles
my changes to the original code
-
added polygon offsets in a number of places to get rid of some artifacts
-
fixed a bug in a call to glCopyTexImage2D
-
flipped the snapshot image so it became right
-
added a fullscreen option (SetGameModeScreen) to the viewer. In the original
is no call to glutInit done but SetGameModeScreen calls it even for windowed
mode.
-
Changed the initial window size from 800x800 to 400x400 in the samples
-
switched to a simpler model in the shadow volume sample
-
made the light cone more visible in the spotlight example
-
used the wavy background in some of the samples
-
probably some other stuff I have forgot about. :)
downloadable files
-
the archive with the modified library
-
I made a class for vertex arrays. A modified
shadow volume example using my vertex array class and SetGameMode function
is also included. You need to install the library before building it.
main
|