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"

Create a scene and render it to a texture at runtime?

Is it possible to create some sort of scene and render it to a texture at runtime? The proof of concept I'm working on right now is to take a scene that contains a cube and render it to a texture.

I looked at UScene, but I don't think it is possible to have two UScenes running at one time. I've also looked over code that the editor uses to create thumbnail previews, but it seems to be tired to the editor.

Are there any classes that exist already that can create a scene object with a scene capture component and render that to the texture visible in the scene that the player is in?

The end result I am going for is having a 3D player avatar render to the GUI via this texture.

Product Version: Not Selected
Tags:
more ▼

asked Jul 30 '14 at 06:02 PM in Rendering

avatar image

afuzzyllama
105 18 21 26

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

2 answers: sort voted first

Checkout the 'Scene Capture Component 2D' Its basically like a camera but it renders to a texture.

I have done exactly what you want using this. Simply create a blueprint with your cube in it then add the scene capture and position as if it where a camera. Make a new texture of type render target IIRC and select it in the scene capture details. This is how the mini maps to the right of this video work:

https://twitter.com/Uberpussy/status/492424559879282688

Use the HUD texture rendering to place the texture in your GUI.

I also use this method for my posed character selection which it sounds like you want. I pose the scene out of normal camera view off map.

more ▼

answered Aug 02 '14 at 07:04 AM

avatar image

xrouter
123 3 3 5

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

UMG is adding a feature where you can create a ui piece with its own uworld. Coming in 4.4 it seems.

more ▼

answered Aug 02 '14 at 10:27 AM

avatar image

afuzzyllama
105 18 21 26

(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