Answers for "processing vr"

0

processing vr

import processing.vr.*;

PShape grid;

void setup() {
  fullScreen(VR);
  
  grid = createShape();
  grid.beginShape(LINES);
  grid.stroke(255);
  for (int x = -10000; x < +10000; x += 250) {
    grid.vertex(x, +1000, +10000);
    grid.vertex(x, +1000, -10000);
  }
  for (int z = -10000; z < +10000; z += 250) {
    grid.vertex(+10000, +1000, z);
    grid.vertex(-10000, +1000, z);      
  }  
  grid.endShape();  
}

void draw() {
  background(0);
  translate(width/2, height/2);
  shape(grid);
}
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language