P3D Processing source code / help me

@josephh

Thank you for answer.

  1. starting point position // can be solved with your advice.

  2. I want to decide the section that can be viewed with the camera
    -Details are shown in the picture.
    -Like the picture, is it possible to implement it?

import java.io.FileOutputStream;

import peasy.*;

PeasyCam camera;
PShape s;

void settings() {
size(1000, 1000,P3D);
PJOGL.setIcon(“icon.png”);
}

void setup() {

s = loadShape(“Untitled2.obj”);
camera = new PeasyCam(this, 200);
// camera(0,0,0,0,0,0,0,0,0);
// camera.setMinimumDistance(50);
// camera.setMaximumDistance(500);
// camera.setViewport(0,0,200,200);
// camera.lookAt(200,200,200);

shapeMode(CENTER);

}

void draw() {
// background(255);
background(255);
shape(s, 0,0,100,100);

}

1 Like