[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] SuperCollider to NodeBox



something must be wrong with your system, i have worked a couple of times on linux (fedora, ubuntu, ubuntu studio), performance was always good. i assume you run java 1.5 or 1.6 from sun?

Am 12.02.2008 um 00:48 schrieb Mark Polishook:

I've posted a SuperCollider-to-NodeBox bridge at http:// www.polishook.org/code/NB.zip. The bridge, which basically wraps the NodeBox API in SuperCollider code, includes all required items except for NodeBox (http://nodebox.net). An example:

(
n = NB("hello_world", 400, 300);
n.background(0, 1, 0);
21.do({
    n.push;
    n.skew(rrand(0, 180));
    n.rotate(rand(0, 360));
    n.fontsize(rrand(8, 22));
    n.fill(0.5, 0, 0.91425.rand);
    n.text("Hello, world!", rrand(20, 380), rrand(20, 280));
    n.pop;
});
n.fontsize(45);
n.fill(1, 0, 0);
n.text("Hello, world", 50, 50);
n.renderAndDisplayImage;
)

In Leopard, rendering commands can be sent directly from SuperCollider to NodeBox. Pre-Leopard seems to require rendering manually in NodeBox.

I'll be making a few more revisions and uploading it as a Quark in the near future. In the meantime if there are comments, send them, perhaps off-list.

Many thanks to Thor M. and Andreas V. for comments -
_______________________________________________
sc-dev mailing list
sc-dev@xxxxxxxxxxxxxxx
http://lists.create.ucsb.edu/mailman/listinfo/sc-dev