PDA

View Full Version : fun with webgl



drteseract
05-20-2011, 03:14 PM
I have two interactive webgl applications at http://mysite.verizon.net/mwscott64/ that you might find amusing. One deals with Einstein's Special Theory of Relativity and was my entry in the mysteriously absent GL64K competition. The other is an interactive version of a famous illusion that I adapted from some code I presented at the 2002 SIGGRAPH convention.

Radamanthe
05-26-2011, 06:22 PM
Hey, nice work trying to explain interactively what the most weird & confusing (yet proven) theory of the human history is about ;)

marielaguilarl
07-01-2011, 12:26 AM
Yeah..nice one..have visited your page.

irc-webgl
07-14-2011, 02:40 AM
Does the projectil change its mass as it approaches the speed of light.
To be honest I don't undertsand your experiment.
But is very nice to have people doing so interesting stuff.

drteseract
07-14-2011, 09:09 PM
A particle can only be said to moving at near the speed of light relative to an observer. There is no absolute sense of a particle moving at near the speed of light. There is a absolute sense of how much rest mass a particle contains.

When people say that a particle becomes more massive as it approaches the speed of light it in in reference to the conservation of momentum. In other words if you tried to measure how massive the particle was by the results of a collision with a stationary particle, the answer you get using Newtonian conservation of momentum is larger than the rest mass of a particle. My animation uses the relativistic equations for computing the particle paths after the collision so in some sense the particles do become more massive near the speed of light.

In the animation when a stationary particle splits into two smaller particles the rest mass sum of the two particles is smaller that the rest mass of the single particle before the split. The split can only happen because some of original particle mass was converted into energy. This converted mass manifests itself as the movement of the previously station particle parts. Other events in the animation result in part of a particles mass being converted into a photon of light and some motion change in the particle that emits the photon.

sep05en
11-22-2011, 07:59 AM
Hi drteseract, i'm really amazed w/ your applications especially, The Staircase Illusion. such a great job. can you teach me how to do so? i'm really interested to learn it. fyi i'm newbie w/ webGL. really appreciate for your respond. :D

drteseract
11-26-2011, 08:37 AM
Your best first step is to master javascript and webgl. The lessons at http://learningwebgl.com/blog/ are a good place to start. My applications consist mostly of adding some custom mathematical modeling on top of a foundation derived from my exposure to javascript, opengl, and webgl.

I have considered doing other webgl applications based on other optical illusions present in the drawings of M.C. Escher, but I am in a time crunch from current job.

Good Luck with you efforts.

sep05en
11-28-2011, 09:43 AM
My applications consist mostly of adding some custom mathematical modeling on top of a foundation derived from my exposure to javascript, opengl, and webgl.

Seem like I am still new to those, can I create the modelling objects in open-source 3D computer graphics software, e.g Blender.org and Maya Autodesk, then export to WebGL? How?

Does anyone know of a way in which I can deploy a WebGL app as a native Android/iOs (mobile app)? Someone suggest me to try Phonegap [ http://phonegap.com/ ] but I wondering if Phonegap can support WebGL, as it uses the platform's Webkit.

drteseract
11-29-2011, 11:35 AM
Android development supports opengl es http://developer.android.com/guide/topi ... pengl.html (http://developer.android.com/guide/topics/graphics/opengl.html)
Android applications can run on android phones and tablets. Apple products are a different world.

The 3D part of webgl is identical to opengl es, the only difference is that android development is java based while webgl is javascript based. I personally find java to be a superior development language, especially with the great support that is provided by the Eclipse IDE.

I found a very interesting vendor site for Android devices at http://www.flydolphin.com/. I am treating myself to this http://www.flydolphin.com/ainol-novo7-a ... p4851.html (http://www.flydolphin.com/ainol-novo7-advanced-tablet-pc-7-inch-android-23-dual-camera-8gb-2160p-hdmi-black_p4851.html) tablet for Christmas and will try to create android application versions of my webgl applications. I have no knowledge on the quality of this product but the hardware specs look good.