Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. [SOLVED] Weird transparency with framebuffer
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Weird transparency with framebuffer

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 712 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    vmatikainen
    wrote on last edited by
    #1

    Hi,

    I am using a custom a custom QQuickFramebufferObject and Renderer to draw 2d mesh inside an item. Its basically a texture, uvs and vertices drawn as triangles to the framebuffer. !https://dl.dropboxusercontent.com/u/22270982/weird_render.png(weird render)!

    The example contains 5 vertices and four triangles. As you can see two of the triangles are drawn partly transparent. although if the mid vertex coordinate is not moved to top to twist the image, they are drawn fully opaque as they should, because neither the vertices or image has that kind of transparency.

    It gets even weirder as this is somehow connected to Renderer::createFramebufferObject and specifically the size of the new fbo. In my understanding you could return any (allowed) sized fbo to render to and the engine should handle it fine (although it would get pixelated if smaller than the item dimensions. What happens is that smaller the framebuffer I create the more those triangles get transparent and eventually disappear.

    Any idea why the framebuffer size "works" in this way.

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved