|
|
|
|
|
by FarhadG
3982 days ago
|
|
Not the most difficult but one of the most interesting in my professional software career: I implemented a consistent eventing model between WebGL and DOM. As a contributor to Famous' 3D engine, I wanted to have a similar eventing system between WebGL and DOM elements (element.on('click', 'scroll', etc.). I decided to use a "picking" model and encode geometry IDs in base 255 (4+ billion IDs) into the color buffer and provide a consistent API for both the DOM and WebGL renderer. |
|