Skip to content

fbo -> slitscan ? #1

@JoshuaBatty

Description

@JoshuaBatty

Hey Jim,
Awesome addon im just trying to work out how to send the texture from an fbo into ofxSlitscan. I am doing the following, drawing my scene in an fbo then converting that into an ofImage and trying to send it to slitscan.

fbo.readToPixels(pixels);
img.setFromPixels(pixels);
img.update();
slitScan.addImage(img);

slitScan.getOutputImage().draw(0, 0);

I am getting a bunch of
[error] ofxSlitScan -- adding image of the wrong type

Would you be able to help me understand how I can tweak this to make it work?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions