Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Smooth 3D wobbly cube with VBO rebuffering: CubicVR.js

DZone's Guide to

Smooth 3D wobbly cube with VBO rebuffering: CubicVR.js

· Web Dev Zone
Free Resource

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

CubicVR, a 3D engine written in C++, was ported to JavaScript using WebGL, and shown off by a pretty awesome tech demo (Flight of the Navigator) at Mozilla's Web o' Wonder:

 

Flight of the Navigator

 


Now the engine's creator, Charles Cliffe, has dived deeper into WebGL and created an impressively smooth-wobbling cube implementing dynamic VBO rebuffering (see OpenGL spec here):

 

wobbly cube

 


The new demo takes better advantage of WebGL's awesome: if you've got a good GPU, the wobbly cube implementing the VBO extension should run much faster than the Flight of the Navigator.

The project is on github, and is worth poking around.

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}