Giter Site home page Giter Site logo

vdlib's Introduction

vdlib

Visibility Determination Library: hierarchical frustum and occlusion culling algorithms

Frustum culling implementation based on the following papers:

Occlusion culling implementation based on the following papers:

The full description of this library is available in this report, paper and poster (all in brazilian portuguese).

External dependencies

The library uses OpenGL for rendering, including functionalities like occlusion queries for acceleration algorithms.

List of dependencies:

  • GLEW: Opengl Extension Wrangler
    • Import OpenGL extensions
  • VrBase: Basic library from Virtual Reality Group at Tecgraf
    • Basic types for Linear Algebra
    • Timer, Random, etc

All external dependencies are inside the folders: /depend /include /lib

Main library

Main source code can be found at: /include /vdlib /src

Entire implementation is under the namespace 'vdlib', organized as follows:

  • Frustum Culling

    • FrustumCuller
  • Occlusion Culling

    • OcclusionCuller
    • OcclusionQueryManager
  • Utilities

    • Distance
    • EigenSolver
    • Intersection
    • Statistics
  • Scene

    • Geometry
    • SceneData
  • Bounding Box

    • Box
    • BoxFactory
  • Hierarchy

    • Node
    • RawNode
    • TreeBuilder
    • PreOrderIterator
  • OpenGL

    • Plane

Example

In addition to main library's dependencies, the example viewer uses GLUT for window management.

The source code is at: /example

Main commands: Camera Move: W, A, S, D, R, F Turn: Mouse1 + Drag, Q, E Reset: Space

Rendering
    Wireframe: Z
    Toggle bounding-box debug: B
        off           - no bounding box
        node          - draw node bounding boxes (green)
        geometry      - draw geometry bounding boxes (blue)
        node+geometry - draw all bounding boxes
        
Algorithms
    No acceleration:   1
    Frustum culling:   2
    Occlusion culling: 3
    Frustum+Occlusion: 4
    
Miscellaneous
    Exit: Esc

Results

Here are some images and times for scene walkthrough:

scenes

Build

Projects for Microsoft Visual Studio 2005 (VC8) are ready to use at: /visualstudio

vdlib's People

Contributors

potato3d avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.