Interactive Area Tile

The native striped, springing Area fence and border GLSL, with an independent pointer adapter. Hover, click or Enter activates the same geometry and animation.

Exact preview of Interactive Area Tile
Type
Component
Category
WebGL
Source license
MIT
Collection
Open Source Experiences

View source in the repository

Usage

// Place this example in vendor/experiences/bruno-2019/src/example.js.
// Use that project's isolated dependencies and Vite setup (see its README).
// Rebuild the included native runtimes with: npm run build:experiences

import { InteractiveTile } from '../parts/InteractiveTile.js';
import EventEmitter from './javascript/Utils/EventEmitter.js';

const time = new EventEmitter();
const tile = new InteractiveTile({ renderer, time, halfExtents: { x: 3, y: 1.7 }, onInteract: () => console.log('Activated') });
scene.add(tile.container);
function frame(elapsedMilliseconds) {
  time.elapsed = elapsedMilliseconds; time.trigger('tick');
  tile.updatePointer(camera);
  renderer.render(scene, camera);
}
// tile.destroy() releases its geometry and pointer handlers.

License and credits

Bruno Simon · Folio 2019 by Bruno Simon. Original upstream source

Read the original MIT license

Credits and asset notices

Third-party assets and dependencies

vendor/experiences/bruno-2019/ASSET_NOTICES.md

Keep the original source and media notices with your copy.

Explore more

  • Liquid FormExact preview of Liquid Form

    A centered silver ray-marched liquid form with authored studio reflections and pointer-responsive camera drift.

  • Boarding PassExact preview of Boarding Pass

    A live flight pass whose changed gate and times roll over like a departures board.

  • Aurora TextExact preview of Aurora Text

    Multi-colour aurora motion within a large type specimen.

Frontfield homepage