Portal

For my midterm I want to make something that I can use in a project I’m working on in Unreal.

I’m recreating this babylonian myth of a descent into the underworld.

I finished my underworld already but am now working on the Earth portal to the underworld from a forest.

I’m really interested in creating a whirlpool portal. I tried creating one with tiltbrush but I don’t really like how it came out when placed in the world.

I played around with the Phyllotaxis code and love the idea of using eyes and how the swirl kind of makes you dizzy.

I want to place it in this walnut I’m using as a cave

 

It would be ideal if I could eventually make it a 3d swirl you can enter.

Thanks!

Source Code:
var n = 0;
var c = 8;
//var c = 3;

var points = [];

var start = 0;

function preload(){
img = loadImage(‘eye.png’);
}

function setup() {
createCanvas(400, 400);
angleMode(DEGREES);
//colorMode(HSB);
}

function draw() {
background(255);
translate(width / 2, height / 2);
rotate(n * 0.3);
for (var i = 0; i < n; i++) {
//var angle = i * 137.5;
var angle = i * 130;
var radius = c * sqrt(i);
var x = radius * cos(angle);
var y = radius * sin(angle);
var hu = sin(start + i * 0.5);

image(img, x,y,15,15);
}
n += 5;
start += 5;
}

// Daniel Shiffman
// http://codingtra.in
// http://patreon.com/codingtrain
// Code for: https://youtu.be/KWoJgHFYWxY