ComputerCraft Forums

ComputerCraft => Programs => Portable Programs => Topic started by: osmarks on Aug 12, 2018, 05:44 PM

Title: ARC (Augmented Reality Client with overlay glasses)
Post by: osmarks on Aug 12, 2018, 05:44 PM
I made a simple "augmented reality" thing for Plethora's overlay glasses which basically just allows text to be displayed when you're near "beacons" (computers with modems transmitting data).

Client: https://pastebin.com/jpKfiEgm
(must be run on a neural interface with a modem and overlay glasses)
Server: https://pastebin.com/vdmRK38T
(must be run on a computer with a wireless modem)

Example config (save it to conf.tbl): https://pastebin.com/8y03YZrL
(for server)

If text is weirdly positioned, that's because I attempt to rightalign it and that's quite hard to do with Plethora. If you know how to make it work, please tell me.

It supports cuboids for range definitions (see example configuration) as well as (deprecated-ly) ranges around a spherical area. You can also create dynamic content. How this works is specified in the config file.
Title: Re: ARC (Augmented Reality Client with overlay glasses)
Post by: osmarks on Aug 12, 2018, 06:40 PM
I just made cuboidal ranges significantly more friendly to servers, by running GPS checks in the background and once per two seconds at most. This will increase lag slightly if there are few cuboidal-range beacons, but overall it should be much better than the previous model of querying location once per beacon broadcast.
Title: ARC (Augmented Reality Client with overlay glasses)
Post by: informer on Aug 12, 2018, 09:43 PM
Would this be better placed under the portable programs sections?
https://forums.computercraft.cc/index.php?board=6.0
Title: ARC (Augmented Reality Client with overlay glasses)
Post by: Yemmel on Aug 12, 2018, 09:44 PM
Quote from: informer on Aug 12, 2018, 09:43 PMWould this be better placed under the portable programs sections?
https://forums.computercraft.cc/index.php?board=6.0

I agree; I've moved it there.