At Oculus, a leading virtual reality company, a copy of the popular sci-fi novel “Ready Player One” is handed out to new hires. Magic Leap, a secretive augmented reality start-up, has hired science fiction and fantasy writers. The name of Microsoft’s HoloLens headset is a salute to the holodeck, a simulation room from “Star Trek.”