We are about to switch to a new forum software. Until then we have removed the registration on this forum.
import saito.objloader.*;
import codeanticode.gsvideo.*;
OBJModel model;
GSCapture cam;
//String camPara = "C:/Users/MSR.info/Documents/Processing/libraries/nyar4psg/data/camera_para.dat";
void setup(){
size(640, 480, P3D);
model = new OBJModel(this,"mankey.obj");
model.scale(90);
model.translateToCenter();
noStroke();
cam = new GSCapture(this, 640, 480); // initialize the webcam capture at a specific resolution (correct and/or possible settings depend on YOUR webcam)
cam.start(); // start capturing
}
void draw(){
if (cam.available()) {
cam.read(); // read the cam image
background(cam); // a background call is needed for correct display of the marker results
fill(180, 0, 0, 127);
translate(mouseX, mouseY);
rotateX(mouseX*0.04);
rotateY(mouseY*0.04);
lights();
model.draw();
}}
Answers
@hafedh:::
first of all you have to be sure that your libs are android compatible and it seems to me that they are not; as for capture: ketai lib; as for saito i dont know, perhaps min3D, depends of your models.
Hello @hafedh , if you want to rotate or move an image, this code that I've done, it can h help you.
@akenaton==== on this exemple what is the change on this code when i replace the saito lib with ketai lib!!! and thank's advance