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"

[BUG] Cannot draw to RT on Android

Hello!

I have a very bad bug with DrawMaterialToRenderTarget function in UE 4.22. It not draws anything to render target on Android build.

My setup: I take hit result under finger by channel, make simple line trace according to it, and pass all this as point damage to hit actor. alt text

In hit actor I get collision UVs from hit, and pass them as coordinate to my material. alt text

All of this works in editor and in game. I can draw on plane mesh with it and everything is fine.

But after update to UE 4.22 (with android works R7) it won't work in development or shipping packaged build on devices.

Initially I had similar problem with previous UE4 versions, but after I set render target format to RTF_RGBA8 everything fixed. For now I tried to package with ALL render target formats and nothing.

I didn't find any problem in line trace or find collision UVs logic.

I also tried to switch to "draw canvas to render target" flow, and it also works in editor, but not on device.

Any ideas? Thanks!

Product Version: UE 4.22
Tags:
more ▼

asked May 08 '19 at 02:55 PM in Using UE4

avatar image

redbox
4.3k 81 17 104

avatar image redbox May 09 '19 at 08:42 AM

I've submit bug report to support.

Example project link text

rtandroid.zip (1.4 MB)
avatar image redbox May 09 '19 at 09:09 AM

Everything works fine with MobileHDR enabled on ES2 or ES3.1.

avatar image UnexpectedSquirt Jun 01 '19 at 12:01 PM

Hey man thanks for submitting that bug report!

Hopefully this gets fixed soon! I really don't want to use Mobile HDR (I'm doing a VR project and performance is crucial!)

(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