Giter Site home page Giter Site logo

physicsdemo's Introduction

mechanical devices

A simple hinge joint and a ball joint.

Poked by hands

Hinge-prismatic joint.

Poked by hands

Universal joint

Poked by hands

A cooler universal joint with only prismatic constraints

Driven by the silver part

Star engine

Driven by the silver part

Rope bridge

Rope swing

Physics cart

Physics vehicle

Slope test

slope.mp4

Accelaration, deaccelaration, and jumping

acc-jump.mp4

Bump test: at low speed

bump-low-speed.mp4

Bump test: at high speed

bump-high-speed.mp4

Bump test: at low speed but with extra torque

bump-extra-torque.mp4

Steering test:

steering.mp4

Note: steering is a little bit goofy at this stage, for a couple of reasons:

  1. For simplicity, the tyre current just uses sphere simplified collision, which leads to only one contact point between each tyre and ground. This is not sufficient to provide enough tractive force and will cause relatively higher slip ratio.

  2. The friction force is homogeneous, meaning that the tyre won't provide any more lateral force, as opposed to the tractive force. This makes the vehicle easy to drift.

  3. The vehicle doesn't simulate the effect of wind at high speed which provides extra grip.

The tyre model needs to be improved in the future.

rayTracing

These are two of the course projects for Computer Graphics I&II, where basic idea of illumination/lighting and a simple ray tracing program (and some 3D maths) were implemented.

In the 1st project, the suer was able to switch between Phong and Gauraud shader, as well as between Phong and Blinn-Phong lighting. The user has the choice to turn on and off the head light and point light in space. The user can also adjust the color channel of ambient, diffuse, and specular light, respectively.

In the 2rd project, a simple ray tracing program was implement. Diffrent materials were used in this demo, including a perfect mirror surface and a see-thru glass material. The user has the choice to super-sample or add jitter in the post-processing part. The depths of rays are also adjustable, although the more depths to trace, the slower the program will become!

In both projects, the user can adjust the location of the camera by W/A/S/D and the camera direction by mouse drag.

Instructions

Download. In each project folder, click to open "code/RUN.html" to run the little project on a webpage.

physicsdemo's People

Contributors

legenary avatar

Watchers

 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.