Code Monkey home page Code Monkey logo

crowd's Introduction

GET MORE INFORMATION AT:

https://helmutduregger.wordpress.com/2011/11/21/simulation-of-large-and-dense-crowds-on-the-gpu-using-opencl/


HOW TO BUILD:

Builds easily with Eclipse CDT and the Qt plugin.

To change between configurations right click on the project in Eclipse's
Project Explorer and select
 
    C/C++ Make Project > Make Builder > Workbench Build Behavior > Build (Incremental Build)
    
then enter "release" or "debug". You might need to switch back and forth between
the tabs in the C/C++ Make Project window in order for the options to correctly render.
Else you might just see an empty window.

(Also builds with make alone. Maybe needs new qmake run to setup for your
system, or something.)


HOW TO RUN:

The application takes a single argument which is the configuration
for the scene.

For example run

$ ./crowd cfg/hills.cfg

Make sure LIBGL_ALWAYS_INDIRECT is NOT set and that you have a direct
rendering context, else the application might just fail to start with
a segfault or an error message indicating that no shader program could be
created.

On Ubuntu, if you are running Compiz, gnome-terminals started with keyboard
shortcuts are child processes of compiz and inherit the LIBGL_ALWAYS_INDIRECT
setting. Run the terminal from the Applications menu instead.


HOW TO IDENTIFY KNOWN BUGS:

- In rare cases agents might get stuck at walls while moving away from them.
  I don't know yet what is causing it. Probably only happens at corners.
- Sometimes two agents might meet and get stuck at each other without evading.
  Solving this would require additional local navigation measures like Velocity
  Obstacles.
- Agents move through corner cells at the end of 3 cell wide walls, this is by
  design and a result of how potentials are computed.

- In rare cases the agent count for parked agents might underflow and display
  large numbers. Might be a driver bug, as I can't see any other reason for it.

- Sometimes segfaults in XQueryExtension at exit, probably an X or Qt issue.

crowd's People

Contributors

hduregger avatar

Watchers

Eduardo Malpeli avatar 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.