[Algorithms] View culling example
Brought to you by:
vexxed72
From: Michael S. H. <mic...@ud...> - 2000-08-28 02:53:46
|
As (what I hope is) a favor to the people who've helped me with the view culling code and in an attempt to help future coders, I've taken the view culling example from the OpenGL FAQ, Klaus Hartmann's view culling sample and merged them both with Nate Robbin's OpenGL tutors (mostly because his projection sample really helped me to see what was going on with the various culling examples out there). It's available at http://lynx.inertiagames.com/~michael/OPENGLTUTORS.zip make sure you uncompress with directory re-creation run the viewcull.exe program to play with the sample - software culling is toggled with the spacebar - if software culling is enabled, Hartmann culling is toggled with the 'h' key - if a model is selected from the screen menu (right click on the screen space view) that model will be displayed at the origin. If it's culled, it will be drawn untextured. NOTE that this should probably not be linked to on any web page or generally distributed other than through word of mouth. I haven't asked Nate to include it "officially" as part of his tutor group but perhaps he will if he thinks it's useful enough. - Michael Harrison High Plains Coder, United Developers / Inertia, LLC Work log @ http://lynx.inertiagames.com |