Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Ofbox2d and offbo

$
0
0

@diego wrote:

hi, I’m new to the forum and I’m trying to make an application that combines various applications already made (some with processing) rendering them in the fbo, my problem is in box2d, is there a way to render the world of box2d in fbo? Sorry for English but it is provided by google
I tried this:
in ofapp:
"Fbo1.begin ();
ofClear (255, 0, 0, 0);
fbo1.end ();
fbo1 = box.boxDraw (false);
fbo1.draw (0, 0); "
and so in the I fbo class:
"ofFbo myBox :: boxDraw (bool seBordi)
{
ofFbo temp;
temp.allocate (640, 480, GL_RGBA);
temp.begin ();
ofClear (0, 255, 0, 0);
edge.draw ();

if (seBordi)
{
bordi.draw ();
}
temp.end ();
return temp;

} "

for ofopencv it worked

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles