#3D #Glitchart
Piece created with code in Hydra. Hydra is a toolkit for live coding of network visuals created by Olivia Jack (hydra.ojack.xyz)
/*
Bobby World
by Daniel Oropeza
Tw: @ferdoropeza
*/
p5 = new P5({ mode: "WEBGL" })
p5.hide()
mushroom = p5.loadModel(
"https://cdn.glitch.com/b1149596-50d2-466c-9114-a873ef14eb65%2Fspongebob.obj",
true
)
s0.init({ src: p5.canvas })
src(o0).layer(s0).scale(1.01)
.layer(src(o0).scrollX(0.05,0.2).mult(src(s0)
.luma().saturate(0.21).modulate(osc(2),0.004)
.luma(0.5, 0).rotate(0)).rotate(0)
.modulate(osc(Math.PI,.2,Math.PI/2)
.color(1,0)
.add(osc(Math.PI,.2).color(0,1)
.brightness(-.5),.5)).colorama())
.modulate(o0, 0.001)
.hue(0.004)
.out()
p5.draw = () => {
p5.background(0, 0, 0, 0)
p5.push()
p5.scale(6)
p5.rotateY(time * -0.5)
p5.ambientLight(10);
p5.ambientMaterial(255, 0, 0);
p5.specularMaterial(255,0,0);
p5.directionalLight(120, 120, 120, 0, 0, 100);
p5.model(mushroom)
p5.pop()
p5.scale(6)
p5.rotateX(time * 0.1)
p5.rotateY(time * 0.1)
p5.rotateZ(time * 0.1)
p5.ambientLight(180)
p5.directionalLight(255, 80, 0)
p5.specularMaterial(255, 0, 0)
p5.noStroke()
p5.translate(50, 10, 0)
p5.model(mushroom)
}
setResolution(1080,1080)