Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Skia and FBO
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Anthony Catel  
View profile  
 More options Oct 8 2012, 4:22 pm
From: Anthony Catel <a.ca...@weelya.com>
Date: Mon, 8 Oct 2012 13:22:23 -0700 (PDT)
Local: Mon, Oct 8 2012 4:22 pm
Subject: Skia and FBO

Hey,

I'm trying to draw into an FBO instead of directly drawing into the window
frame buffer.

So what I've done :

- Generate a framebuffer object
- Generate a texture
- Attach the texture to the FBO
- Bind the FBO
- Pass the FBO id to skia : desc.fRenderTargetHandle = fbo_handle;
[...]
- Do usual skia calls + SkCanvas::flush.
- Unbind the FBO (glBindFramebuffer(GL_FRAMEBUFFER, 0)) +
glBindTexture(GL_TEXTURE_2D, fbo_texture);
- Trying to draw a GL_QUADS using the texture : I got either a black screen
or a red screen depending on what I do with skia. But the texture is not
drawn.

Using gDebugger I can see that the FBO's texture is filled with what I want
but I'm unable to paint it on a rectancle. What Am I doing wrong? Does skia
enable some state I should disable before painting the texture?

Here is a screen of gDebugger with my rendered texture :
http://p.nf/debug.png
FBO 1 is the one I created. Others are created by Skia I guess.

Thanks !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.