Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Can I save a single frame of Scene Capture as a texture?

I want to use Scene Capture to to take screenshots in runtime, but rather than saving them a an image file in the screenshot folder, I want a single frame of it as a texture variable I can use in a blueprint. For example, when I press the F key, the game takes a screenshot of the Scene Capture and stores it in my texture array in my blueprint so I can use later.

I tried making a Texture and TextureRender variable and assign TextureRender to Texture when I press F, but Texture updates with TextureRender. Any way to get a single frame from it?

Product Version: Not Selected
more ▼

asked Jan 18 '15 at 05:11 AM in Rendering

avatar image

Admiral Skye
48 5 8 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Just found this post while trying to do something similar, and found an easier way in the upcoming version.

Starting with 4.8, you can also use the BP Node "Update Content":
Update Content BP

That way you don't have to move the Capture Component 2D around twice for every snapshot. The rest of the setup is the same as Eric showed.
Screenshot is from 4.8 Preview 2.

~ BhaaL

more ▼

answered May 14 '15 at 11:36 AM

avatar image

146 8 11 20

avatar image Brianpow Dec 20 '16 at 07:39 PM

Update Content node no longer exists in 4.14, any idea what the new method is?

avatar image Brianpow Dec 20 '16 at 07:46 PM

Should have looked harder, it's now called "Capture Scene"

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hey Admiral Skye -

Place your SceneCapture2D Actor in a BP with Capture Every Frame set to False. In the Event Graph, Place two Set Relative Location nodes with the SceneCapture2D as the Target. In the first Set Relative Location set the New Location to 0,0,0.01 In the second Set Relative Location set the New Location to 0,0,-0.01 Add a Press F key pressed event Connect the three nodes in this order Event Key Pressed >> First Relative Location >> Second Relative Location

alt text

The nest step takes a bit more work. You will need to decide how many Render Target Textures you want to store as they must be established in the Content Browser before runtime. You can overwrite them if more is needed but this is a performance heavy activity. In this example I set up 3 different ones that will overwrite each other in a looping cycle so 0,1,2,0,1,2.....

alt text

Thank You

Eric Ketchum

fkeypress.jpg (47.3 kB)
more ▼

answered Jan 20 '15 at 07:50 PM

avatar image

Lovecraft_K ♦♦ STAFF
36.7k 702 260 736

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question