We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I´m trying to use the shapes3D library but I always get the same error and dunno why: java.lang.RuntimeException: java.lang.NoSuchMethodError: processing.core.PVector.set(Lprocessing/core/PVector;)V Is there something wrong with the code or is just a compatibility issue? ( versions: -Processing:3.1.1// -Shapes3d: 2.1.4)
import shapes3d.*;
import shapes3d.animation.*;
import shapes3d.utils.*;
Ellipsoid core;
void setup() {////////////////////////////////////////////////////////////////////////////////////////////////////
size(400, 400, P3D);
core= new Ellipsoid(this, 20, 30);
core.setRadius(90);
core.moveTo(new PVector(0, 0, 0));
core.fill(color(255, 111));
core.drawMode(Shape3D.SOLID);
}
void draw() {////////////////////////////////////////////////////////////////////////////////////////////////////
background(0);
camera(0, -190, 350, 0, 0, 0, 0, 1, 0);
lights();
core.draw();
}
Answers
https://forum.Processing.org/two/discussions/tagged/nosuchmethoderror
You should be using Shapes3D 2.2 with Processing V3 see here.
ok it does work now, thx quark.