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"

How to render to texture?

I have a bunch of static meshes and i would like to create a thumnail of them at runtime. Is it possible with the engine, using the blueprints? Thanks!

Product Version: Not Selected
more ▼

asked Apr 24 '15 at 09:03 AM in Rendering

avatar image

6 1 5 2

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

1 answer: sort voted first

If these static meshes are in your scene, you can setup a Render Target. You can do this by setting up Scene Capture 2D, component (from Blueprint Component Panel) or Actor (from Modes). This will write what the "Camera" or scene captures to a RenderTarget texture which you can then use in a Material.

This doc should help explain further!



Peter L. Newton

more ▼

answered Apr 24 '15 at 09:35 AM

avatar image

2.1k 75 37 111

avatar image Mr_Pig Apr 24 '15 at 09:34 PM

Sorry, I don't understand. I have around 100-200 meshes i don't want to create a material for each and i don't know how to set this up.

avatar image RimmyD Apr 24 '15 at 10:22 PM

You don't have to use the material, the Scene Capture Actor will output to a RenderTarget texture asset and you can use it however you want just like any other texture.

The problem with this approach is that I don't think you can create RenderTextures on the fly in blueprint so you would need a lot of RenderTexture assets preexisting in a folder in your content browser.

If your goal is to just show one thumbnail at a time then this would work fine and you just render over the previous one.

(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