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"

RealTime texture

Hi, is there a simple method for update texture from script in real time? I need update every frame the texture of a plane

Product Version: UE 4.17
Tags:
more ▼

asked Jan 11 '18 at 02:05 PM in C++ Programming

avatar image

kelevra090
5 2 4 8

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

2 answers: sort voted first

Hey there, does this or this help?

more ▼

answered Jan 11 '18 at 03:11 PM

avatar image

xlar8or
6k 161 129 304

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

Hello, I wonder how to achieve that through blueprint? Could anyone help me? Thanks a lot!

more ▼

answered Jan 11 '18 at 04:36 PM

avatar image

SmallBird030201
1 1 1

avatar image xlar8or Jan 11 '18 at 04:59 PM

What exactly do you need? Something like a plane that acts like a camera? If that is the case you can use Render Targets.

avatar image SmallBird030201 Jan 11 '18 at 05:06 PM

alt text

Could you see the picture? I wonder how to update every frame the texture of the cylinder surface?

cylinder.png (212.0 kB)
avatar image xlar8or Jan 11 '18 at 05:07 PM

You can use render targets for that, since its just a material

avatar image SmallBird030201 Jan 12 '18 at 12:56 AM

What is render targets? The link you give shows camera feed, not render targets!

avatar image sseufert Jan 16 '18 at 06:38 PM

The video that xlar8or linked does indeed show a render target (it's the texture he puts on a box in front of the camera). A render target is a texture that can be updated in real time. Displaying what a camera is seeing is one of the most common uses of a render target, but they can display things besides camera feeds on them.

avatar image xlar8or Jan 12 '18 at 09:53 AM

You want to update the texture every frame with what?

avatar image SmallBird030201 Jan 16 '18 at 02:43 PM

With the picture got from a video.

avatar image xlar8or Jan 16 '18 at 06:48 PM

If you want to texture the cylinder with the content of a video you have to use the media framework.

avatar image SmallBird030201 Jan 17 '18 at 12:25 AM

No,actually,I have to update the texture every frame by Image taken from a particular format of file, not universal format.

avatar image xlar8or Jan 17 '18 at 01:50 PM

And you already have the code to extract the current texture to update for the current frame? If that is the case, you dont even need render targets, you just need to create a dynamic material that has a texture parameter and every frame you set it with the texture data.

(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