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"

Texture conversion problem

Hello!

I am currently implementing a plugin for a game written using Unreal Engine (version 3.5) and have encountered a problem:

Using the functions GSceneRenderTargets.GetRenderTargetTexture(SceneColor) located in SceneRendering.cpp I think I have accessed the primary render targets. The problem is that these render target textures are returned as a FTexture2DRHIRef texture, and I need them to be in DirectX form (ID3D11Texture2D).

I know Unreal turns both DX and GL textures into Texture2D to enable cross-platform use. But I need to do the reverse, to get a DirectX (or OpenGL) texture from a FTexture2DRHIRef. I've looked for a method but found nothing so far, thus I now write to you for help.

If there is no direct way of conversion, some way to access the byte data of the FTexture2DRHIRef texture would also work.

Any tips at all would be most appreciated!

Product Version: UE older version
Tags:
more ▼

asked Feb 07 '17 at 02:00 PM in C++ Programming

avatar image

Hazardus92
1

(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