Jump to content

See how animated 3D objects explode in a plain 2D canvas


grelf
 Share

Recommended Posts

GR3D is a demonstration of what can be done in a simple 2D canvas. No WebGL, framework or other library is used.

Some objects will explode when clicked upon. Other things explode at certain times (well, frame counts).

GR3D

My code is easily discoverable if you look at the HTML page source. I have not minified the JavaScript files because I want to help others. You are free to use my code and build upon it in any way you wish. It is written in original-style JavaScript, as simply as possible, with none of the syntax complications added to the language in recent years (no async functions, promises, etc).

I have found this exercise quite educational. I now have a better appreciation of why three.js, for example, does things the way it does.

2020-05-25_1stExplosion_cr.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...