Skip to content

A demo explaining how to fuse 3D models with HTML DOM objects using HTML5

Notifications You must be signed in to change notification settings

KingRial/3D-motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

3D-motion

3D-motion is an experimental study to see if a 3D background could be used inside a home automation supervisor built with a web UI.

The purpose of this experiment is to see 3D components ( the background ) living together with plain HTML components ( the lights which, sometimes, change color ).

The navigation can be made using a mouse or Leap Motion.

With the advent of virtual and enhanced reality, this demo could became a nice piece of code to play with and fuel new ideas.

P.S. Take a look at Leap Motion, it can become an interesting interface; especially for virtual reality!

How does it work ?

It's pretty easy to use and it's all thanks to the THREE library. The javascript code:

  • builds two types of render engines: one for the 3D WebGL and the other for CSS effects.
  • creates two scenes in which the render will build the actors
  • adds a camera and the controls linked to the mouse and link it to both scenes
  • adds the lights ( or you will see just a place dark space ;) ) inside both scenes
  • loads the 3D model and adds it to the WebGL scene
  • adds html DOM objects to the CSS scene ( using common HTML click events too! )
  • create a loop which will render the scenes updating the content if neededby the engines

Changelog

#v0.0.1

  • Added to GiTHub

How to see everything in action

Just open index.html on your browser ( the content must be web served )

License

GNU3

About

A demo explaining how to fuse 3D models with HTML DOM objects using HTML5

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published