This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
osmarks's profile picture

ARC - Really Simple Plethora Augmented Reality

Started by osmarks, 31 July 2018 - 07:13 AM
osmarks #1
Posted 31 July 2018 - 09:13 AM
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.
hugeblank #2
Posted 01 August 2018 - 07:31 AM
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.
For shatter I write each character as its own object so that they are equidistant from each other and I don't get this problem.
See this:
https://github.com/h...shatter.lua#L77
ox and oy are 6 and 9, respectively.

EDIT: There is a minor downside that some letters look like they're oddly spaced apart, but I think that's better than your dilemma.
Edited on 01 August 2018 - 05:34 AM
osmarks #3
Posted 01 August 2018 - 08:13 AM
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.
For shatter I write each character as its own object so that they are equidistant from each other and I don't get this problem.
See this:
https://github.com/h...shatter.lua#L77
ox and oy are 6 and 9, respectively.

EDIT: There is a minor downside that some letters look like they're oddly spaced apart, but I think that's better than your dilemma.
I'm probably just going to stick with the current system, which makes text look right but be oddly placed.

EDIT: I just implemented ranges which are cuboidal, so you can designate areas which aren't spheres centred on beacons. See the example config file for details.
Edited on 01 August 2018 - 07:04 AM