Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
component:hologram [2014/08/14 16:02]
sangar
component:hologram [2015/01/14 23:40]
127.0.0.1 external edit
Line 2: Line 2:
 ================== ==================
 This component is provided by the [[block:​hologram_projector|Hologram Projector]].  ​ This component is provided by the [[block:​hologram_projector|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 48x48 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).+These can be used to create holographic projections in a resolution of 48x32x48, over a maximum area of 9x6x9 blocks. 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`.  ​ Component name: `hologram`.  ​
Line 22: Line 22:
 - `setScale(value:​number)`  ​ - `setScale(value:​number)`  ​
   Set the render scale. A larger scale consumes more energy. The minimum scale is 0.33, where the hologram will fit in a single block space, the maximum scale is 3, where the hologram will take up a 9x6x9 block space.   Set the render scale. A larger scale consumes more energy. The minimum scale is 0.33, where the hologram will fit in a single block space, the maximum scale is 3, where the hologram will take up a 9x6x9 block space.
 +- `getTranslation:​number,​ number, number`
 +  Return the current translation offset.
 +- `setTranslation(x:​number,​ y:number, z:number)`
 +  Set the translation vector. The hologram display will be offset by this vector from its normal location. The maximum allowable translation is a function of tier. Units are the hologram'​s size, so the distance translated increases and decreases with scale as well.
 - `maxDepth():​number`  ​ - `maxDepth():​number`  ​
   The color depth supported by the hologram.   The color depth supported by the hologram.