I am a Software Engineering student at UofT and I love to make javascript games and interactive simulations
I am a Software Engineering student at UofT and I love to make javascript games and interactive simulations
Wow, was this ever a fun project. For two weeks prior to writing the first version of this, I had been studying and reading up on ray tracing. I was actually really surprised at how little the complexity of math there was involved with this.
The reason the screen is such a low resolution is because tracing rays through 3D scenes is actaully pretty expensive on your processor. It would have been much more efficient to write this in a derivative if C or any other low level language, but since I wanted to improve my JS skills and just make sure I could easily port it to my website, I opted to use JS. Plus it will run on just about every device that can interpret JS in a modern web browser.
I became bored durring one of my spares after learning about vectors and gravitational forces in physics so I decided to create a simulation of sorts that would model particles/planets around a large mass using newtonian force physics.
I thought this project was really fun because I had to write some of the helper functions myself and not have to rely on external libraries, although the mathematical operations might be more efficent. This is my favorite javascript project so far!
Click and Drag to spawn in planets!
I had been talking to a few of my friends about fractals and I had heard that you could plot the mandelbrot set using real and imaginary axes so I gave it a shot. I think it looks absolutely AMAZING! How the components of an imaginary number can be represented this way and just how brilliant and mind blowing fractals actually are. Keep in mind you might want to zoom in to get a closer look and use the scroll bar provided to zoom the fractal itself. Also you can click and drag to navigate around the fractal to see the differnet parts. I know I spent at least 30 minutes just zooming and exploring so good luck!
So i've seen some demos like this around the internet and at school for that matter, but i've always wanted to go above and beyond what ive seen so I made this. I think it looks pretty cool actually, with the "glitches in the matrix" that pop up every so often too. Works best if you have your browser window in full-screen mode!
I'm in the process of learning javascript and plan to have cool little simulations or things such as that on here!