x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Rendering Widget to Texture for Material Manipulation

Hi all,

So my end goal is is to produce a transition effect for my widgets/subwidgets when opening/closing windows. In order to do this I plan to apply material functions which I mostly have set up and working. The issue is that I'll need to generate an image of the panel I want to transition so I can manipulate the image with the jazzy transition stuff, then replace it with the real, interactive widget when the transition finishes.

I've been looking for a way to render a given widget to a texture/render target but I can't find any information about that. Is there a way I could do this, or might there be a different way of achieving what I want?

Cheers

Product Version: UE 4.10
Tags:
more ▼

asked Feb 23 '16 at 06:13 AM in Rendering

avatar image

Baeldan
181 4 7 13

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

2 answers: sort voted first

You should take a look at the new retainer box widget from 4.11/4.12. It is a widget component which renders its children into a buffer and then applying this buffer to the UI.

The main purpose is optimisation by controlling its refresh rate. I.e. render only every third frame. This can be controlled in Details > Phasing of the Widget.

The retainer box allows to apply a material for postprocessing the buffer before rendering. I think you could be able to implement your jazzy transition with a dynamic material. This can be found under Details > Effect.

more ▼

answered Jul 05 '16 at 03:38 PM

avatar image

fabianu
498 12 9 34

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

If you have the UWidget in a UWidgetComponentthere's a really easy way to get access to the texture: UWidgetComponent::GetRenderTarget()

more ▼

answered Jun 26 '18 at 09:03 AM

avatar image

lebek
1 3 3

(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