Log inGet started
Package

instantPhoto.module

Newest version

README.md

instantPhoto

The instant camera's photographs, shared by stations.InstantCamera and stations.InstantPrint.

  • capture(pos, at, up?, fov?) renders the scene once from a lens pose into a 320x320 target, reads it back and returns a JPEG (~15-25 KB). Yields.
  • An image cache on every peer by id (newId, put, has, bytes, texture). send(id) carries an image to the other peers in base64 chunks on icam.img; want(id) asks the room on icam.want and whoever holds it answers, so a late joiner gets every print's image.
  • material(printId, imageId, seed, age) makes the print's own stations.instantPrint material, its clock running from the print's age so it develops the same on every peer; the photo is bound when it arrives.
  • keep / forget / kept remember the prints this player pinned (pose, image) in this world's runtime data on this machine, so their wall prints come back next session.