ShopDreamUp AI ArtDreamUp
Deviation Actions
Description
Apo + Chaotica + Processing
--> special thanks for the panorama plugins: fav.me/dbjsb9u
--> file: sta.sh/0esww2ig07f
--> some code:
import peasy.*;
import peasy.org.apache.commons.math.*;
import peasy.org.apache.commons.math.geometry.*;
PImage planet;
PShape globe;
int i=0; //rotation loop counter
PeasyCam cam;
void setup() {
size(1000, 1000, P3D);
cam = new PeasyCam(this,400);
background(0);
planet = loadImage("cpowmoon1.jpg"); // image to load
noStroke();
globe = createShape(SPHERE, 500);
globe.setTexture(planet);
}
void draw() {
background(0);
i++; //rotation loop counter
directionalLight(255, 255, 255, -1, 0, 0); // looks like planet
//lights(); // shows the whole sphere
//rotateZ(i*TWO_PI/500.);
rotateY(i*TWO_PI/2500.);
//rotateX(i*TWO_PI/500.);
shape(globe);
//rotateX(-i*TWO_PI/500.);
rotateY(-i*TWO_PI/2500.);
//rotateZ(-i*TWO_PI/500.);
}
--> special thanks for the panorama plugins: fav.me/dbjsb9u
--> file: sta.sh/0esww2ig07f
--> some code:
import peasy.*;
import peasy.org.apache.commons.math.*;
import peasy.org.apache.commons.math.geometry.*;
PImage planet;
PShape globe;
int i=0; //rotation loop counter
PeasyCam cam;
void setup() {
size(1000, 1000, P3D);
cam = new PeasyCam(this,400);
background(0);
planet = loadImage("cpowmoon1.jpg"); // image to load
noStroke();
globe = createShape(SPHERE, 500);
globe.setTexture(planet);
}
void draw() {
background(0);
i++; //rotation loop counter
directionalLight(255, 255, 255, -1, 0, 0); // looks like planet
//lights(); // shows the whole sphere
//rotateZ(i*TWO_PI/500.);
rotateY(i*TWO_PI/2500.);
//rotateX(i*TWO_PI/500.);
shape(globe);
//rotateX(-i*TWO_PI/500.);
rotateY(-i*TWO_PI/2500.);
//rotateZ(-i*TWO_PI/500.);
}
Image size
997x995px 435.51 KB
© 2017 - 2024 pillemaster
Comments1
Join the community to add your comment. Already a deviant? Log In
Delicious.