# LoadShape() not working correctly

**URL:** <https://discourse.processing.org/t/loadshape-not-working-correctly/36681>\
**Category:** Beginners\
**Created:** [May 2, 2022, 4:54pm UTC](https://discourse.processing.org/t/loadshape-not-working-correctly/36681 "2022-05-02T16:54:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alpaib](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alpaib](https://discourse.processing.org/u/Alpaib)\
**Post date:** [May 2, 2022, 4:54pm UTC](https://discourse.processing.org/t/loadshape-not-working-correctly/36681/1 "2022-05-02T16:54:32Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Hello everyone,

First of all, I am new using processing. I am just trying to see a 3D model in the screen using loadShape();

I used blender to export an .obj file (the monkey model), and I saved it in the same folder of the processing sketch. This is the code I used to load the model, but anything happens:

PShape modelo;

void setup() {  
size(1920, 1080);  
modelo = loadShape(“3D\_Model.obj”);  
}

void draw () {  
background(0);  
shape(modelo);  
}

I just get this error:

Unsupported format: 3D\_Model.obj  
java.lang.NullPointerException: Cannot invoke “processing.core.PShape.isVisible()” because “shape” is null  
at processing.core.PGraphics.shape(PGraphics.java:4124)  
at processing.core.PApplet.shape(PApplet.java:12558)  
at sketch\_3D\_viewer.setup(sketch\_3D\_viewer.java:23)  
at processing.core.PApplet.handleDraw(PApplet.java:2142)  
at processing.awt.PSurfaceAWT$9.callDraw(PSurfaceAWT.java:1440)  
at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:356)

Thank you for your time,  
Almudena.

---

<div class="post-metadata">

**Author:** ![Alpaib](https://avatars.discourse-cdn.com/v4/letter/a/85e7bf/32.png) [@Alpaib](https://discourse.processing.org/u/Alpaib)\
**Post date:** [May 2, 2022, 5:17pm UTC](https://discourse.processing.org/t/loadshape-not-working-correctly/36681/2 "2022-05-02T17:17:15Z")

</div>

UPDATE: I realized it was a scale problem.
