instantPhoto.module
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 onicam.img;want(id)asks the room onicam.wantand whoever holds it answers, so a late joiner gets every print's image. material(printId, imageId, seed, age)makes the print's ownstations.instantPrintmaterial, 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/keptremember the prints this player pinned (pose, image) in this world's runtime data on this machine, so their wall prints come back next session.