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

[Video about image to 3d-city generator(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”?

1 Like

see loadShape() / Reference / Processing.org

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

1 Like

Here is my version of the city generator:
my repository

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: