I have slightly more complicated sketch than the one below, but it has almost the same amount of jitter.
As far as processing sketches go, you cant get much simpler than this one.
And still, there is quite a serious jitter, or short jumps, between seemingly random frames.
I made a sketch, where at some point during run time an object gets instantiated and loadShape("my_pic.svg") runs.
It locks up my sketch for a whole second every time.
I need to preload the shapes, but stil be able to reference them deeper down a class structure.
How do you go about loading all your shape and stuff in the start, and still call from within a class without pasing them alll the way down in the constructors?
The Prodigy - "One Love" jamming full blast in the backgound.
I've been working on the "old" processing 1.5.1 and I used loadShape like this.
PShape s;
s = loadShape("spaceship.svg");
...
shape(s,0,0,100,100);
=============
But now I've changed to the "new" (processing 2.0a4) and
loadShape("spaceship.svg");
is giving me a NullPointerException.
I see they say on the website that they have made changes to these functions, and that you should use the default loadShape() function, I thought that i AM using the default loadShape()?
anyway..
Please help, my program is full of SVG's and the need to drawn!
Thanks
rotti
The Prodigy - "One Love" jamming full blast in the backgound.
The Prodigy - "One Love" jamming full blast in the backgound.
I'm looking for a function that can give me a good enough distance between two points that does not use the sqrt() function hoping that it will save me some processing time.
Does anyone know of something I can use for this goal?
I don't want to many distance calcs per frame when things go crazy, and hopefully they do... :)
Thanks
Rotti
The Prodigy - "One Love" jamming full blast in the backgound.
Do you think I need check if objects are in the field of view of my 2D world?
I'm scaling and translating things in and out of the screen, was wondering if I need to not draw them at all if they're not visible or do you think I shouldn't worry about that? Something tells me processing is smart enough though.
I'm just trying to keep everything running smooth.
Thanks
Rotti
The Prodigy - "One Love" jamming full blast in the backgound.
I'm playing with nest, would like to know how I would go about printing a child behind a parent. I looks like you made plans for that to be possible. Please tell me how you would go about doing something like that.