Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with OBJ file #70

Open
elyonardo opened this issue Sep 7, 2018 · 0 comments
Open

problem with OBJ file #70

elyonardo opened this issue Sep 7, 2018 · 0 comments

Comments

@elyonardo
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant