Help end child hunger

Radar Approach – Source Code

Prev: Implementation II Next: Notes and Optimizations

The frustumR file contains the source code and a VC 6.0 project. The project contains all classes that are required to run the test, and allows testing with points and spheres. The source is more complete than the code presented in the tutorial since it includes the computation of several variables that can be used for debugging purposes, for instance the eight corners of the tutorials, the eight planes and respective normals, etc…

Try it and see the difference between the frames per second achieved with and without frustum culling.

Note: the fps counter is only altered once per second, so keep your fingers on a leash 🙂

As usual the source code is provided as a companion for this tutorial, and it could be optimized in many ways. Also there is no guarantee that it is bug free, or that it will run everywhere.

Having said this, if you find a bug, or some way to improve this, or even if you create a port to some other operating system, please let me know.


Prev: Implementation II Next: Notes and Optimizations

  3 Responses to “Radar Approach – Source Code”

  1. I’m having an issue compiling it…
    no match for ‘operator+’ in ‘nc + Vec3::operator*(float)(((float)((FrustumR*)this)->FrustumR::nh))’

    • I have solve this issue in removing all & before v.
      so all input with “Vec3 &v” will be “Vec3 v”

      sorry for my english 🙂

  2. thanks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: