# loadShape() cannot find .obj file in data folder

**URL:** https://discourse.processing.org/t/loadshape-cannot-find-obj-file-in-data-folder/37745
**Category:** Coding Questions
**Created:** [June 28, 2022, 1:11pm UTC](https://discourse.processing.org/t/loadshape-cannot-find-obj-file-in-data-folder/37745 "2022-06-28T13:11:49Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)
#### Post date: [June 28, 2022, 7:20pm UTC](https://discourse.processing.org/t/loadshape-cannot-find-obj-file-in-data-folder/37745/4 "2022-06-28T19:20:51Z")

</div>

Thank you for the URL. The following ‘sort of’ works on my Mac. You should see a shuttle image rotating in the window. The .mtl file is missing from the original download. Attached you can also see the files that I used. The main file should have only one .obj extension, not two as was included in the download.

```auto
PShape rocket;

float ry;
void setup() {
  size(500, 500, P3D);
  rocket = loadShape("space-shuttle.obj");
}

void draw() {
  background(200);
  lights();
  translate(width/2, height/2, 300);
  rotateZ(PI);
  rotateY(ry);
  shape(rocket);
  ry += 0.02;
}

```

**Files in ‘data’ folder. add missing .mtl file (see below).**

 ![data_files](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/7/0/70e4c84f942c4e9a46e8b71f5e313371d8cb506f.png)

---

_[View the full topic](https://discourse.processing.org/t/loadshape-cannot-find-obj-file-in-data-folder/37745)._
