Announcement

Collapse
No announcement yet.

SceneCaptureComponent won't stop capturing

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    SceneCaptureComponent won't stop capturing

    I have a menu that should take the current Screen as a background Image.
    I attached a SceneCaptureComponent2D to my CameraManager
    Click image for larger version

Name:	Unbenannt.JPG
Views:	1
Size:	21.4 KB
ID:	1188328

    This Camera Manager has a function called "get currentFrameImage" that returns a newly created Texture Target:
    Click image for larger version

Name:	capture.JPG
Views:	1
Size:	77.3 KB
ID:	1188329

    This Texture Target is fed as a parameter to a material instance

    Click image for larger version

Name:	instance.JPG
Views:	1
Size:	56.0 KB
ID:	1188330
    Click image for larger version

Name:	material.JPG
Views:	1
Size:	21.0 KB
ID:	1188331

    But the Texture still gets captured every frame!

    #2
    My conclusion after using SceneCapture2D was that it's updated every time you move it.
    Youtube Channel

    Comment


      #3
      I was having such issue some time ago and I was only able to create a TextureTarget2D at runtime with the Victory Plugin Library. It has a function that creates a TextureTarget2D at runtime, specially because it (apparently) does not work using the default engine's functions. Try adding the plugin and then use create texture render target 2D function:

      Click image for larger version

Name:	Forums.png
Views:	1
Size:	14.2 KB
ID:	1112363

      Comment


        #4
        Originally posted by BoredEngineer View Post
        My conclusion after using SceneCapture2D was that it's updated every time you move it.
        Yeah, except that my component doesnt move at all.

        Originally posted by Gbr View Post
        I was having such issue some time ago and I was only able to create a TextureTarget2D at runtime with the Victory Plugin Library. It has a function that creates a TextureTarget2D at runtime, specially because it (apparently) does not work using the default engine's functions. Try adding the plugin and then use create texture render target 2D function:

        [ATTACH=CONFIG]102974[/ATTACH]
        Doesn't work though. Still Captures every frame


        €dit:

        I made it work.

        I simply set the Component to hidden after capturing a frame.
        Before I take a snapshot I unhide it.
        Last edited by Raildex_; 07-21-2016, 01:44 PM.

        Comment


          #5
          Nice trick! Thank you for sharing
          Youtube Channel

          Comment

          Working...
          X