This component is provided by the Hologram Projector.
These can be used to create holographic projections in a resolution of 48x32x48, over a maximum area of 9x6x9 blocks. Holograms are defined via 48×48 32-bit bit masks, where each bit defines whether the voxel at that height should be on or off. Tier two holograms do not provide a higher resolution, instead they allow using up to three colors in the displayed hologram (as opposed to just one for the tier one hologram).
Component name: hologram
.
Callbacks:
clear()
get(x:number, y:number, z:number):number
set(x:number, y:number, z:number, value:number or boolean)
fill(x:number, z:number, height:number, value:number)
copy(x:number, z:number, sx:number, sz:number, tx:number, tz:number)
getScale():number
setScale(value:number)
maxDepth():number
getPaletteColor(index:number):number
setPaletteColor(index:number, value:number):number
Simple example program that allows setting individual voxels:
local component = require("component") local hologram = component.hologram local args = {...} hologram.set(tonumber(args[1]), tonumber(args[2]), tonumber(args[3]), args[4] == "true" or args[4] == "on")
Example use (assuming it's saved as holo-set.lua
):
# holo-set 16 8 20 true
Further examples:
- Holo Flow
This program generates a heightmap and 'moves' across it over time, creating the effect of a flowing terrain.
- Holo Text
This program generates a random heightmap and displays scrolling text above it.
Note, the second example is quite a bit more advanced then the first. Important: both scripts also need the noise.lua script to be in the same folder.
Components | 3D Printer - Abstract Bus - Access Point - Chunkloader - Computer - Crafting - Data Card - Database - Debug - Drone - Drive - EEPROM - Experience - Filesystem - Generator - Geolyzer - GPU - Hologram - Internet - Inventory Controller - Leash - Microcontroller - Modem - Motion Sensor - Navigation - Net Splitter - Piston - Redstone - Redstone in Motion - Robot - Screen - Sign - Tank Controller - Tractor Beam - Transposer - Tunnel - World Sensor | |
---|---|---|
Others | Component Access - Signals | |
Cross-Mod Integration | Applied Energistics |