Giter Club home page Giter Club logo

bullet-visualization's Introduction

Bullet Visualization

A web based interface to visualize and debug rigid bodies created using Bullet SDK.
Contributions are welcome ๐Ÿ˜„

Web View

Image

In Action

Image

Building the project

Server

  • Integrate the following dependencies into your own C++ code:
  • Clone this repository using the command: git clone https://github.com/malhotraprateek/bullet-visualization.git.
  • Navigate to bullet-server-code-reference folder.
  • Integrate files present in the folder into your own C++ application.
    (See todo comments in code for more information)
  • Make a test run by navigating to http://localhost:4321/physicsdata in your browser to check if the physics server is up.

NOTE: It is not a requirement to use the server reference files or create the server using C++, provided you follow the steps mentioned in the todo comments and have a good working knowledge of websocket communications.

Client

  • Clone this repository using the command: git clone https://github.com/malhotraprateek/bullet-visualization.git.
  • Navigate to bullet-visualization folder.
  • Run npm install.
  • Run npm run build.
  • Double click on index.html to open the visualizer in your default browser.
  • Click on Start Polling button to start rendering debug data from Bullet.
    Ensure the server is already up and running.

Internals

  • Client-Server communication uses web sockets.
  • Three.js is used to render to the browser (WebGL).
  • Polling rate can be controlled by the slider provided.
    This functionality has been given to avoid framerate drops and stuttering on the server.

Disclaimers

  • The visualizer can only handle debug lines for now.
  • This project is not built for use in production environments.
  • This project may not be feasible for applications with a very large number of rigid bodies as the debug information is transferred over network.
    For most projects it should be fine though.
  • The client and server has not been tested to run on separate machines.
    Even so, there should not be anything inhibiting it.

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.