Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-94801

Add camera filter to hide nodes for cameras

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0 FF
    • Fix Version/s: 6.x
    • Component/s: Quick: 3D
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      These properties are available in CustomMaterial shader:
      CAMERA_POSITION
      CAMERA_DIRECTION
      CAMERA_PROPERTIES

      Using these properties it is possible to render objects in different ways for different cameras, but if the properties are equal for two cameras, then the two cameras can't be distinguished.

      I suggest that camera index property should be added to cameras and CAMERA_INDEX to the shaders. Also it would be useful to have a sort of camera filter list in each visible node (Mesh, Light) to make the nodes visible only for particular cameras. Something like:

      	PerspectiveCamera
      	{
      		cameraIndex: 7
      	}
      	
      	Mesh
      	{
      		cameraFilter: [3, 7] //Hide the node, but not the children for cameras #3 and #7
      	}
      

      That could be used for rendering different stencils with using two or more View 3D objects. Then the stencils in combination with ShaderEffect could be used for glow/outlining effects, for real time cubemap reflection generator and other postprocessing effects

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.graphics.and.multimedia Qt Graphics Team
            Reporter:
            alexey89 alexey89
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes