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!

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!

https://docs.unrealengine.com/latest/INT/Resources/ContentExamples/Reflections/1_7/index.html

Peace

Peter L. Newton

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.

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.