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"

Copy RenderTargetTexture of FViewport (D3D11)

Hello guys! I'm trying to copy RenderTargetTexture into similar Texture created by me to modify its data. I'm working with source code: UnrealEngine/Engine/Plugins/Runtime/Steam/SteamVR/Source/SteamVR/Private/SteamVRRenderer.cpp method: FSteamVRHMD::D3D11Bridge::FinishRendering()

There is available ID3D11Texture2D* RenderTargetTexture which comes from FViewport every frame. I want to copy that texture to my own texture and pass it to openVR::Submit method for the next rendering stage.

I'm not familiar with internal Unreal Engine structure and capabilities of manipulating of d3d11 textures. I've tried to use native d3d11 method ID3D11Context::CopyResource but in vain...image on screen becomes black...

I'm ready for discuss this task and to provide additional information about it if necessary!

Thanks in advance for help!

Product Version: UE Github Master branch
Tags:
more ▼

asked Oct 19 '18 at 08:43 AM in C++ Programming

avatar image

Grinch-man
1 1

avatar image Grinch-man Oct 25 '18 at 07:42 AM

I've found the problem. It was incompatible DXGI  formats between Unreal Engine 's render texture and my texture. It's pity that d3d doesn't warn about it when you call CopyResource method.

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

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