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. RenderStateSet CullFace doesn't seem to work

RenderStateSet CullFace doesn't seem to work

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 386 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.
  • A Offline
    A Offline
    AxelB
    wrote on last edited by
    #1

    Hi,

    I've been developing a 3D tool using Qt3D and QtQuick and I've encountered a problem trying to render back faces of meshes.
    I know this problem is related to the RenderFrameGraph and I've been trying to change the CullFace mode to "NoCulling", but the results are still the same, it doesn't show back faces. Here's the code :

    Scene3D
    {
    ...
      Entity
      {
        id: cad_scene_root
        components: 
        [
            RenderSettings 
            {
                activeFrameGraph: Viewport 
                {
                    //default normalizedRect is (0, 0, 1, 1)
                    RenderSurfaceSelector 
                    {
                        CameraSelector 
                        {
                            camera: CadCamera{}
                            ClearBuffers
                            {
                                buffers: ClearBuffers.ColorDepthStencilBuffer
                                clearColor: "transparent"
                                RenderStateSet
                                {
                                    CullFace
                                    {
                                        mode: CullFace.NoCulling
                                    }
                                }
                            }
                        }
                    }
                }
            },
    
            InputSettings {}
        ]
    
    Entity
    {
        Mesh
        {
            ...
        }
    }
    

    I have created a quick cube using MeshLab with a hidden face and here's the result :
    0_1502464366447_Capture.PNG

    I have also tried with many other meshes and the results are still the same.
    Any ideas ?

    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