# What is used instead of \`void processing.core.PVector.add(processing.core.PVector)\` now?

**URL:** <https://discourse.processing.org/t/what-is-used-instead-of-void-processing-core-pvector-add-processing-core-pvector-now/41639>\
**Category:** Coding Questions\
**Created:** [April 6, 2023, 4:18pm UTC](https://discourse.processing.org/t/what-is-used-instead-of-void-processing-core-pvector-add-processing-core-pvector-now/41639 "2023-04-06T16:18:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drachenbauer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/drachenbauer/32/18235_2.png) [@Drachenbauer](https://discourse.processing.org/u/Drachenbauer)\
**Post date:** [April 6, 2023, 4:18pm UTC](https://discourse.processing.org/t/what-is-used-instead-of-void-processing-core-pvector-add-processing-core-pvector-now/41639/1 "2023-04-06T16:18:14Z")

</div>

[Video about image to 3d-city generator([https://www.youtube.com/watch?v=y0nsXiI\_I9c](https://www.youtube.com/watch?v=y0nsXiI_I9c))  
I am interested in the application, that he shows here and he shares it for free through github (link in video-description).

In his video i saw, he opened the .pde-file from it in processing to manipulate and render the cities.

So i grabbed the latest processing version and tried to run it there.

bot it creates only a white window and this error-log:

> The sketch has been resized from 1920x1080 to 1920x1061 by the operating system.  
> This happened outside Processing, and may be a limitation of the OS or window manager.  
> The file “supervan” is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.  
> RuntimeException: java.lang.NoSuchMethodError: ‘void processing.core.PVector.add(processing.core.PVector)’  
> java.lang.RuntimeException: java.lang.NoSuchMethodError: ‘void processing.core.PVector.add(processing.core.PVector)’  
> at processing.opengl.PSurfaceJOGL.lambda$initAnimator$2(PSurfaceJOGL.java:430)  
> at java.base/java.lang.Thread.run(Thread.java:833)  
> Caused by: java.lang.NoSuchMethodError: ‘void processing.core.PVector.add(processing.core.PVector)’  
> at saito.objloader.BoundingBox.(BoundingBox.java:46)  
> at saito.objloader.OBJModel.translateToCenter(OBJModel.java:659)  
> at yoyleCityWords.setup(yoyleCityWords.java:198)  
> at processing.core.PApplet.handleDraw(PApplet.java:2051)  
> at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:840)  
> at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)  
> at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)  
> at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)  
> at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)  
> at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)  
> at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:782)  
> at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)  
> at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:453)  
> at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)  
> at java.base/java.util.TimerThread.mainLoop(Timer.java:566)  
> at java.base/java.util.TimerThread.run(Timer.java:516)  
> RuntimeException: java.lang.NoSuchMethodError: ‘void processing.core.PVector.add(processing.core.PVector)’

What is used instead of  
`void processing.core.PVector.add(processing.core.PVector)`  
now?

Now i found a topic, that says, that a tool called “objloader” is not compatiple with recent processing versions any more and it´s used for the city-renderer, i´m talking about here.

Do you know an alternative tool to plugin for replacing “objloader”?

---

<div class="post-metadata">

**Author:** ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)\
**Post date:** [April 6, 2023, 5:08pm UTC](https://discourse.processing.org/t/what-is-used-instead-of-void-processing-core-pvector-add-processing-core-pvector-now/41639/2 "2023-04-06T17:08:15Z")

</div>

> [@Drachenbauer](#):
>
> a tool called “objloader” is not compatiple with recent processing versions any more

see [loadShape() / Reference / Processing.org](https://processing.org/reference/loadShape_.html)

also, this is not very advanced for more complex obj’s imho

---

<div class="post-metadata">

**Author:** ![Drachenbauer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/drachenbauer/32/18235_2.png) [@Drachenbauer](https://discourse.processing.org/u/Drachenbauer)\
**Post date:** [April 6, 2023, 5:36pm UTC](https://discourse.processing.org/t/what-is-used-instead-of-void-processing-core-pvector-add-processing-core-pvector-now/41639/3 "2023-04-06T17:36:04Z")

</div>

Here is my version of the city generator:  
[my repository](https://github.com/Drachenbauer/yoyleCityWords-master)

actually i get this error:

> java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 80  
> at yoyleCityWords.setup(yoyleCityWords.java:356)  
> at processing.core.PApplet.handleDraw(PApplet.java:2051)  
> at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:840)  
> at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692)  
> at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674)  
> at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443)  
> at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293)  
> at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147)  
> at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:782)  
> at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81)  
> at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:453)  
> at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178)  
> at java.base/java.util.TimerThread.mainLoop(Timer.java:566)  
> at java.base/java.util.TimerThread.run(Timer.java:516)

can you help me fix that?

Finally seems solved. i see no more error message and a window with green grass and blue sky.

Now i have a screenshot of the city, made from my kite-image:

 ![Kite-City 3](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/9/a/9a1bf87fe7e0f09e180c041e2af85592728433eb.jpeg)
