Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Qt3D - [c++] Q: How to activate shadow mapping
Forum Updated to NodeBB v4.3 + New Features

Qt3D - [c++] Q: How to activate shadow mapping

Scheduled Pinned Locked Moved Unsolved Game Development
6 Posts 3 Posters 848 Views
  • 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.
  • K Offline
    K Offline
    kevin_d
    wrote on last edited by
    #1

    Hi!

    I have a qt3d scene with QEntities and loaded 3D Objects, placed on a plane, consisting of QCuboidMeshes.
    I have also set a lightsource on the root entity, which is shading the objects.

    • How can I add shadow casting in general using c++ and Qt3D?
    • Can I activate Scene Reflections, casing among the object entities?

    Thanks, best regards.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kevin_d
      wrote on last edited by
      #2

      I have found QML Documentation on ShadowMapFrameGraph: https://doc.qt.io/archives/qt-5.11/qt3d-shadow-map-qml-shadowmapframegraph-qml.html

      Is there a c++ equivalent?

      1 Reply Last reply
      0
      • BondrusiekB Offline
        BondrusiekB Offline
        Bondrusiek
        wrote on last edited by
        #3

        Hi Kevin,
        look here: https://doc.qt.io/qt-5/qt3d-index.html and see that: https://doc.qt.io/qt-5/qgraphicsdropshadoweffect.html

        P 1 Reply Last reply
        0
        • K Offline
          K Offline
          kevin_d
          wrote on last edited by
          #4

          Thanks, but I did not get a useful reference for default shadow mapping.
          I think it correlates with object->dependent raytracing.
          As Qt creates 3D scenes and considers light sources, i thought maybe it is possible, just to "turn on the lights".

          I know it would slow down scene creation, but i thought, maybe it could be a parameter somewhere to trigger advanced raytracing.

          Is there something on the pipeline in/for Qt version 6?

          best regards,

          BondrusiekB 1 Reply Last reply
          0
          • BondrusiekB Bondrusiek

            Hi Kevin,
            look here: https://doc.qt.io/qt-5/qt3d-index.html and see that: https://doc.qt.io/qt-5/qgraphicsdropshadoweffect.html

            P Offline
            P Offline
            puananiila99
            Banned
            wrote on last edited by
            #5

            @Bondrusiek thank you for your reply this is really helpful for me

            1 Reply Last reply
            0
            • K kevin_d

              Thanks, but I did not get a useful reference for default shadow mapping.
              I think it correlates with object->dependent raytracing.
              As Qt creates 3D scenes and considers light sources, i thought maybe it is possible, just to "turn on the lights".

              I know it would slow down scene creation, but i thought, maybe it could be a parameter somewhere to trigger advanced raytracing.

              Is there something on the pipeline in/for Qt version 6?

              best regards,

              BondrusiekB Offline
              BondrusiekB Offline
              Bondrusiek
              wrote on last edited by
              #6

              @kevin_d
              I dont know this topic well but recommend you see : https://doc.qt.io/qt-6/qsgmaterialshader-graphicspipelinestate.html
              or use some environments like ie

              qputenv("QT3D_GLSL100_WORKAROUND", "");
              

              The qputenv("QT3D_GLSL100_WORKAROUND", "") instruction is a workaround related to Qt3D
              shaders on some embedded Linux devices, such as the Raspberry Pi. It will enable a separate
              GLSL 1.00 snippet for the lights required by some embedded devices.

              Maybe you must see this kind of variables.

              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