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"

CanvasRenderTarget2D only shows black when assigned as SpectatorScreenTexture

Hello!

I'm working on a VR project that requires the spectator screen to show various UI elements alongside the player's view. That setup was very easy, and it works great! However, I was using a SceneCapture camera and a RenderTarget2D texture to render various UI elements, and while it totally works, it looks squished and pixelated, even at higher resolutions for the texture.

In an effort to improve this, I attempted to use a CanvasRenderTarget2D texture to see if that would appear sharper on the spectator screen. However, so far I've been unable to get a CanvasRenderTarget to appear on the spectator screen. It simply appears black. I've been successful with normal RenderTargets and normal textures, but this one is evading me.

I've also tried applying my CanvasRenderTarget texture to objects in the game world and it renders as expected there. Any advice would be appreciated! Below is a picture of the spectator mode where I'm rendering the player view in the bottom right, and the black bars are the texture behind it. The logo and game time are the same canvas render target that should be rendering behind the view, so I know that in theory that texture is rendering. I've also included the BP setup for it.

Thanks!

spectator view black bars are texture

bp1

bp2 alt text

Product Version: UE 4.17
Tags:
spectatorcam.png (502.8 kB)
bp1.jpg (128.9 kB)
bp2.jpg (138.1 kB)
bp3.jpg (113.6 kB)
more ▼

asked Sep 22 '17 at 09:05 PM in VR

avatar image

jevans_wahoo
1 2 3

(comments are locked)
10|2000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
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