PDA

View Full Version : Register a new BaseBitmap in C.O.F.F.E.E.


Feccand Buggery
05-17-2003, 11:36 PM
Hello again...

I've created a new texture with the following code.


var b_tex = new(BaseBitmap, width, height);

var x;
var y;
var color = vector(0.0);
for(y=0; y<height;y++)
{
for(x=0;x<width;x++)
b_tex->DrawPixel(x, y, color);
}


But now I don't know how to "register" it so that it shows up in cinemas Material manager...

Thanx in advance

Regards / Feccand

Per-Anders
05-17-2003, 11:50 PM
you need to use that code in the "main" function of a coffee basechannel plugin. i would download the xcelent frameworks that mikael sterner produced, you can find it at the bottom of the sdk reference page hidden among the examples, and i think one of those plugins is a shader plugin, just reuse the code within there, then you have to get a unique plugin id from plugincafe. and the file shouldbe saved as a .cof file in your plugins directory.

Feccand Buggery
05-18-2003, 08:13 PM
Hmm... okay... so it's not possible from an ordinary Coffee tag or Xpresso node.... dammit.

well thanx....

Live long and prosper / Feccand

CGTalk Moderation
01-15-2006, 04:03 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.