- language:
HTML
,CSS
,JavaScript
,glsl
- web app list: https://jeffreymaomao.github.io/game.github.io/GRraytrace/index.html
- web : kerr BH
- web : Schwarzschild BH
- web : Flat BH
- language:
HTML
,CSS
,JavaScript
- ODE solver: Classical 4-stage Runge-Kutta method
- web app: https://jeffreymaomao.github.io/game.github.io/GRraytrace/index.html
Visualization of the motion of photon near by Schwarzschild black hole in 3D space, where all the photons are shooting from the camera to image plane. Here I using p5.js to render the 3D space. Using Schwarzschild metirc derive the Gravitational lensing formula
where the intial value is given by
- language:
HTML
,CSS
,JavaScript
- ODE solver: Classical 4-stage Runge-Kutta method
- web app: https://jeffreymaomao.github.io/game.github.io/GRlensing/index.html
Visualization of the motion of photon near by Schwarzschild black hole. Using Schwarzschild metirc derive the Gravitational lensing formula
which is a non-linear ODE, and I using Classical 4-stage Runge-Kutta method to solve every photon shoot from right hand side to left hand side.
Notice that near
- language:
HTML
,CSS
,JavaScript
/Python
- ODE solver: 1~4 stage Runge-Kutta method
- web app: https://jeffreymaomao.github.io/game.github.io/GRprecession/webGRorbit/main.html
- python app: https://jeffreymaomao.github.io/game.github.io/GRprecession/pyGRorbit/
When a planet comes into close proximity with a compact object, its orbit begins to precess, a phenomenon which can be explained by the principles of General Relativity. In the course "General Physics Experiment (I)" that I took in the second semester of sophomore year, we need to make a final project. Our group chose this phenomenon to simulate, using Python
's package called VPython
that we learn in this course. However, it is not convenient for those who don't have Python, also using python can not customize the UI (User Interface). After the course, I rewrite all the project into web app, so user may start this app only click the url.
In this project, the motion of planet si descibed by
where
- language:
HTML
,CSS
,JavaScript
- ODE solver: Euler method
- web app: https://jeffreymaomao.github.io/game.github.io/dragBall/index.html
In the course "General Physics Experiment (II)" that I took in the first semester of the junior year, we need to make a simple game that user can manipulate the position and motion of the ball by drag it. Therefore I wrote this simple game using some web language. In the web app, every ball following the motion described by
- language:
HTML
,CSS
,JavaScript
- web app: https://jeffreymaomao.github.io/game.github.io/running/main.html
In the course "Introduction to Game Design" that I took in the second semester of my sophomore year,
we need to make a final project with a simple game. The language we use in the course is Lua
.
However, making a web app is more convenient for user, I wrote this simple game using some web language.