Exception in thread "Animation Thread" java.lang.RuntimeException: Sorry, elliptical arc support for SVG files is not yet implemented (See issue #130 for updates)
at processing.core.PShapeSVG.parsePath(Unknown Source)
at processing.core.PShapeSVG.parseChild(Unknown Source)
at processing.core.PShapeSVG.parseChildren(Unknown Source)
at processing.core.PShapeSVG.<init>(Unknown Source)
at processing.core.PShapeSVG.parseChild(Unknown Source)
at processing.core.PShapeSVG.parseChildren(Unknown Source)
at processing.core.PShapeSVG.<init>(Unknown Source)
at processing.core.PShapeSVG.<init>(Unknown Source)
at processing.core.PShapeSVG.<init>(Unknown Source)
at processing.core.PApplet.loadShape(Unknown Source)
at processing.core.PApplet.loadShape(Unknown Source)
at cGarbutt_SWITCH_FINAL.setup(cGarbutt_SWITCH_FINAL.java:46)
at processing.core.PApplet.handleDraw(Unknown Source)
at processing.core.PApplet.run(Unknown Source)
at java.lang.Thread.run(Thread.java:662)
What is issue #130? I have the latest version of Processing (1.5.1) What's going on?
I am building a game in processing where a user has to use a light, pointed at a webcam, to guide a ship to a lighthouse while dodging buoys and whales. I need help setting up the ship class to follow the brightest pixel on the screen.
My issue is, It works without the ship being called as an instance, but I need it as an instance of the ship class to calculate the collision detection I need for the buoys and whales whenever they come in contact with the ship.
Whenever I try to pass through arguments I need through my ship class, The instance of the ship only runs once and does not continue to track the brightest pixel on the screen.
I'm stuck because I don't know how to set it up, do I need to pass values through the constructor or leave the function of brightness tracking inside the draw function? Here is my code, and I appreciate the time and effort to help me. (the commented parts are where I tried to implement the ship as a class, but if they're commented out it will work just fine)
//main code
import processing.video.*;
PShape s;
Capture video;
Lighthouse myLighthouse;
Whale [] whaleCollection = new Whale[7];
Buoy [] buoyCollection = new Buoy[23];
//Ship myShip;
void setup()
{
size(800, 600);
video = new Capture(this, width, height, 60);
noStroke();
smooth();
s = loadShape("ship2.svg");
//myShip = new Ship (brightestX, brightestY);
myLighthouse = new Lighthouse(500,400);
for( int i = 0; i < whaleCollection.length; i++){
whaleCollection[i] = new Whale(random(0, width),random(0, height));
}
for( int i = 0; i < buoyCollection.length; i++){
buoyCollection[i] = new Buoy(random(0, width),random(0, 400));