<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Qt3D face culling]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">we are developing a desktop application with 3D graphics using Qt3D. We have run into some issues when using the Qt3DRender.CullFace settings in the Qt3DRender.StateSet module.</p>
<p dir="auto">Basically we have an open surface which was correctly rendering the front, but not the back face. We then added the Qt3DRender.CullFace settings like this (QML):</p>
<pre><code>           Scene3D {
            .....
            .....
                // Top-level entity
                entity: Qt3DCore.Entity {
                .....
                .....
                    // Simple framegraph that just renders the scene from the camera
                    components: [
                        Qt3DRender.FrameGraph {
                            activeFrameGraph: Qt3DRender.Viewport {
                                rect: Qt.rect(0, 0, 1, 1) // From Top Left
                                clearColor: "transparent"

                                Qt3DRender.CameraSelector {
                                    camera: camera

                                    Qt3DRender.ClearBuffer {
                                        buffers : Qt3DRender.ClearBuffer.ColorDepthBuffer

                                        Qt3DRender.StateSet {
                                            Qt3DRender.CullFace {
                                                //mode: Qt3DRender.CullFace.FrontAndBack
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    ]

             } //Top-level entity
    } //Scene3D 

</code></pre>
<p dir="auto">The obvious first strange thing here is that we don't even have to add the mode setting of the CullFace to make it work - even though the line is commented out, both the front and back face is rendered correctly.</p>
<p dir="auto">The other issue is that when rotating the camera, the depth mode seems to be broken - we have two objects in the scene, and now one of them is always in the front of the other when rotating 360 degrees.</p>
<p dir="auto">It seems to us that we are either not using the correct way of changing culling settings, or that when adding the Qt3DRender.StateSet part this overwrites other settings as well, related to depth etc.</p>
<p dir="auto">Any ideas?</p>
]]></description><link>https://forum.qt.io/topic/64522/qt3d-face-culling</link><generator>RSS for Node</generator><lastBuildDate>Wed, 22 Apr 2026 04:40:51 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/64522.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 24 Feb 2016 10:44:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt3D face culling on Wed, 24 Feb 2016 22:22:12 GMT]]></title><description><![CDATA[<p dir="auto">Hi and welcome to devnet,</p>
<p dir="auto">Qt3D being in tech preview, I'd recommend posting your question on the <a href="http://lists.qt-project.org/mailman/listinfo/interest" target="_blank" rel="noopener noreferrer nofollow ugc">interest mailing list</a>. You'll find there Qt3D's module maintainers/developers (this forum is more user oriented)</p>
]]></description><link>https://forum.qt.io/post/315187</link><guid isPermaLink="true">https://forum.qt.io/post/315187</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 24 Feb 2016 22:22:12 GMT</pubDate></item></channel></rss>