Skip to content

Instantly share code, notes, and snippets.

@Adrianl3d
Adrianl3d / gist:1e4223eed8e9834a85eb
Created March 26, 2015 09:37
Domain Entity Chat
//
// domainChat.js
// 25 March 2015 Version 0.3
// Created by Adrian McCarlie 18 March 2015
// Sends text chat to a Text Entity in the Domain.
// This script is copy-write (c) 2015 Adrian McCarlie
// Distributed under "Free for all to use."
// "All rights reserved"
@Adrianl3d
Adrianl3d / bubbleChat.js
Last active August 29, 2015 14:16
BubbleChat
//
// bubbleChat.js
// Version 0.4
//
// Created by Adrian 12 March 2015
// Copyright Adrian McCarlie
//
// This script creates a menu called Bubble Chat
// which allows you to use the Avatar Display Name as a chat medium.
// And a simple display name change facility.
@Adrianl3d
Adrianl3d / xmasTree.js
Created December 4, 2014 11:00
18 Meter high Voxel xmas tree
// xmasTree.js
// Creates a single tree of 1 meter voxels to about 18 meters high with various shades of green leaves and assorted red and yellow baubles
// Created by Adrian on 3 December 2014
// Copyright 2014 Adrian McCarlie
// Released under Creative Commons By Attribution Share Alike, feel free to modify and share.
//
//
// Change these 3 values to suit the planting site of the tree.
//
var X_POS = 8060;
@Adrianl3d
Adrianl3d / chessBoard.js
Created July 9, 2014 13:00
Voxel Chess Board
// chessBoard.js
// Simple 1 meter square chessboard with black and white checker pattern using 0.125 meter voxels.
// Created by Adrian on 9 July 2014
// Copyright 2014 Adrian McCarlie
// Released under Creative Commons By Attribution Share Alike, feel free to modify and share.
// YOU MUST CHANGE these 3 values to suit the position of the chess board.
var X_POS = 200;
var Y_POS = 1000;
var Z_POS = 200;
@Adrianl3d
Adrianl3d / checkeredFloor.js
Created July 9, 2014 12:43
Builds a black and white checkered floor of 1 meter voxels.
// checkeredFloor.js
// Simple 20m x 20m floor with black and white checker pattern using 1 meter voxels.
// Scalable by changing value at "var size = " but must be an even number or the result will be stripes.
// Created by Adrian on 9 July 2014
// Copyright 2014 Adrian McCarlie
// Released under Creative Commons By Attribution Share Alike, feel free to modify and share.
// YOU MUST CHANGE these 3 values to suit the starting position (South/West corner) of the floor.
var X_POS = 200;
var Y_POS = 200;
@Adrianl3d
Adrianl3d / tree18m.js
Created July 6, 2014 10:40
Builds a 18 meter high tree with random green leaves
// tree18m.js
// Creates a single tree of 1 meter voxels to about 18 meters high with various shades of green leaves
// Created by Adrian on 4 July 2014
// Copyright 2014 Adrian McCarlie
// Released under Creative Commons By Attribution Share Alike, feel free to modify and share.
//
//
// Change these 3 values to suit the planting site of the tree.
//
var X_POS = 100;
@Adrianl3d
Adrianl3d / greenGables.js
Created July 6, 2014 10:36
Tutorial build simple 2 level house
// greenGables.js
// Simple 2 level house script greenGables v0.1
// Created by Adrian on 30 April 2014
// Copyright 2014 Adrian McCarlie
// Released under Creative Commons By Attribution Share Alike, feel free to modify and share.
// Default Build a 60 mtr x 60 mtr building at given location
// Can be built anywhere simply by changing X_POS, Y_POS and Z_POS at lines 18, 19, and 20.
// Can scale by changing W, H and L and tweaking the value (16) at line 84 to allow for the gable ends
// Change colours by adjusting values of the last 3 numbers in the Voxels.setVoxel(x, y, z, 1, 100, 100, 255) in this case 100, 100, 255 which is lightblue. (rgb)
@Adrianl3d
Adrianl3d / colorPaletteMenu.js
Last active August 29, 2015 14:03
Color Palette Menu
// colorPaletteMenu.js
//
// Created by Adrian
// 27 June 2014 Adrian McCarlie
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
// From the "Create" Menu, create banks of voxels in graded colours for use as a simple paint palette. Where ever your avatar is standing.
// Run all colour bars from the Create Menu and then use eyedropper tool to preselect all the colours you want on the UI, then select Remove All Palettes from the Remove menu.
@Adrianl3d
Adrianl3d / eraseGreenGables.js
Last active August 29, 2015 14:00
Green Gables a simple 2 level house in javascript for High Fidelity.
// eraseGreenGables.js
// Simple 2 level house removal script greenGables v0.1
// Created by Adrian on 30 April 2014
// Copyright 2014 Adrian McCarlie
// Released under Creative Commons By Attribution Share Alike, feel free to modify and share.
// Default Erase a 60 mtr x 60 mtr building created with "greenGables.js" Version 0.1
// Constants at lines 12 to 17 must match values on greenGables.js