We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Problem with PShape and 3D renderer
Page Index Toggle Pages: 1
Problem with PShape and 3D renderer (Read 268 times)
Problem with PShape and 3D renderer
Dec 8th, 2008, 3:17am
 
I'm working on an interactive map and as part of an animation I want to rotate the map off the screen along the Y axis. For my map I'm using an SVG file and the animation work as long as I use the styles in the file, when I try to use disableStyles() I keep getting an ArrayIndexOutOfBoundsException. I'm pretty new to processing, so I don't know whether this is a bug or whether I'm doing something wrong. I don't get the exception in 2D but then obviously I can't rotate the map along the Y axis.

Here is a shortened version of what I'm trying to get to work:
Code:

PShape S;

void setup(){
size(500,720,P3D);
background(245);
smooth();
S = loadShape("Illinois_counties.svg");
S.disableStyle();
rotateY(PI/4);
fill(0);
shape(S);
}

void draw(){

}

Page Index Toggle Pages: 1