3d model in .obj format not appearing in my sketch

So, i´ve been trying to use a 3d model that i´ve downloaded from here : https://www.turbosquid.com/3d-models/brain-max-free/833681

Im using the standart code from LoadDisplayOBJ wich does shows up the rocket in the example but not my model.

Allthought my model does shows up in another 3D programs.

I´ve already tryed scaling it but still not working.

i´ve noticed that my model does not have .mtl file. Do i need the .mtl file for processing to recognized 3d models?

Here is the code, as you can see is the same as example :

/**
 * Load and Display an OBJ Shape. 
 * 
 * The loadShape() command is used to read simple SVG (Scalable Vector Graphics)
 * files and OBJ (Object) files into a Processing sketch. This example loads an
 * OBJ file of a rocket and displays it to the screen. 
 */


PShape rocket;

float ry;
  
public void setup() {
  size(640, 640, P3D);
    
    
  //rocket = loadShape("rocket.obj"); //SHOWING UP
  rocket = loadShape("brain.obj"); //NOT SHOWING UP
}

public void draw() {
  background(0);
  ambientLight(255,255,255);
  lights();
   //scale(100,100);
  translate(width/2, height/2 + 100, -200);
  rotateZ(PI);
  rotateY(ry);
  shape(rocket,0,0);
 
  ry += 0.02;
}

Any advice is greatly aprecciated.

1 Like

Hi Jpupper,

Maybe you can have a look at this thread: KinectPV2: get and import obj files

Not sure it will help but you might get some ideas out of it!

1 Like