Skip to content

problem with OBJ file #70

@elyonardo

Description

@elyonardo

Hi guys!
I'm looking for some tips about obj files.
The example "RecordPointCloud" generates an obj files for each frame and if I import them in Blender I can see the point cloud correctly (even if the image is curiously rotate, but that's ok).
But, if I use a simple code to import OBJ in Processing to view point cloud (and modify it changing color, for example) it doesn't show me nothing.
Thinking that the problem was my code, I tried to import an OBJ file make in ThinkerCAD, but with it the importer works correctly.

This is the importer OBJ code:

PShape s;

void setup() {
  size(1024, 768, P3D);
  // The file "bot.obj" must be in the data folder
  // of the current sketch to load successfully
  s = loadShape("frame00.obj");
}

void draw() {
  background(0);
  translate(width/2, height/2);
  shape(s, 0, 0);
}

My question is: why I can't import OBJ files made with RecordPointCloud in Processing? Can anyone help me?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions