Re : Comparing intersection points of array object list
Well, this code works when you have different objects in a class; in my sketch I am trying to detect collision within the array from a single object.
View ArticleRe : Comparing intersection points of array object list
In the example I've posted, variables car, grape and banana store object references for the same class Sprite.It's very easy to modify the code to use a Sprite[] or an ArrayList<Sprite> instead...
View ArticleRe : Comparing intersection points of array object list
On 2nd thought, in my example I only care if a car is immersed within a grape or a banana. But I don't mind if a grape is colliding with a banana . So you're gonna need a double for loop, since you...
View ArticleHow to save a PDF from a specific area of the app window?
I would like to create a PDF file from a specific rectangle area of my app window, is ti possible?Any help will be much appreciated
View Article'The package "com.sun.opengl" does not exist."'
And further: 'No library found for com.sun.opengl.util.texture'There's thread about this here:http://forum.processing.org/topic/no-library-found-for-com-sun-opengl-utiland...
View ArticleRe : 'The package "com.sun.opengl" does not exist."'
Hello, Processing 2.x uses JOGL 2, which doesn't include the com.sun.opengl.util.texture anymore. I think the equivalent package is com.jogamp.opengl.util.texture. You can check the complete javadoc of...
View ArticleRe : 'The package "com.sun.opengl" does not exist."'
Thanks, andres. I think that helped, but now I'm getting an error message about 'Texture' being and ambiguous type . . .Any clues about that?
View ArticleRe : 'The package "com.sun.opengl" does not exist."'
Can you post the code that is giving he error?
View ArticleApplying the same texture to multiple shapes
Is this possible? I figured it would save memory but it doesn't seem to work. I can easily just make multiple texture variables but then I'd have to load the same movie 3 times... anyway I'm sure this...
View ArticleRe : Comparing intersection points of array object list
Im actually receiving an error whenever I set the array to a smaller size; the NUM variable.
View ArticleRe : Comparing intersection points of array object list
That NUM behaves as a constant literal rather than a variable.That and the other constants are meant to parametrize the whole program.If you wanna change the # of CellOne objects, change the NUM...
View ArticleRe : Comparing intersection points of array object list
I had; to a value lower than 30, it gives me the error:java.lang.ArrayIndexOutOfBoundsException
View ArticleRe : Comparing intersection points of array object list
Re-tested here. Changed NUM to smaller values, even 1 and 0, and worked the same. No errors.NUM is bound to movers.length, b/c it's used to determine the # of CellOnes at the Array's creation.Every...
View ArticleRe : Comparing intersection points of array object list
I guess my issue is when I am trying to detect intersection from two dif. class objects. Implemented a second new class object the same as your code.
View ArticleRe : Comparing intersection points of array object list
If you're comparing different classes against each other, you gotta specify its data-type in the method parameter: void drawLine(CellOne other) { line(location.x, location.y, other.location.x,...
View ArticleRe : Applying the same texture to multiple shapes
I'm guessing the answer is to just draw all the shapes as points within one shape...
View ArticleRe : Applying the same texture to multiple shapes
you should be able to apply the same texture to several shapes, i.e.:beginShape(QUADS);texture(tex);...endShape();beginShape(QUAD_STRIP)texture(tex); // same texture object as before...endShape();Is...
View ArticleRe : A Video Capture Question??? (Capture finds device, but only get black...
Hello, as I mentioned in another thread, support for capture with a particular device using the core video library depends on the device drivers including DirectShow sources (I'm assuming you are on...
View ArticleRe : Applying the same texture to multiple shapes
I think the problem here is not applying the texture to multiple shapes, but rather drawing multiple shapes on top of each other. You can't use rotate() within a beginShape()-endShape(). You should...
View ArticleSuitable range of input values for randomSeed()?
I've looked through the forum and documentation, but haven't found the answer to this.What kind of inputs does randomSeed take, and it what range? Are they integers? What are the min and max?I want to...
View Article