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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Some sprites tiling into tiny grid in packaged version only

I am using Paper2D sprites to render platforms in my game. It works perfectly fine when playing in the editor, but as soon as I use the Launch button or package the game and test it, certain sprites start rendering weirdly.

It seems the texture is being tiled many many times for some reason. See http://blay09.net/files/ludum/ld32/VisualGlitches/issues.png This is how it looks when playing from editor: http://blay09.net/files/ludum/ld32/VisualGlitches/main.png

The sprites are using the default MaskedUnlitSpriteMaterial and it only happens for some of them. This happens for both orthographic and perspective cameras. All rendering settings and sprite/texture properties are left on their defaults.

I've added an asset that's broken for me and one that's working fine in the packaged version here: http://blay09.net/files/ludum/ld32/VisualGlitches/ (Amplifier is broken, ConductiveLayer works)

Product Version: Not Selected
more ▼

asked Apr 21 '15 at 02:53 PM in Bug Reports

avatar image

1 2 3

avatar image wittlief ♦♦ STAFF Apr 21 '15 at 03:21 PM

Hi BlayTheNinth,

Mobile preview is typically a very good indicator of how a project will render on the device, is that how you're playing it in the editor? Sometimes rendering issues such as these are a result of unsupported/unrecommended assets being used for mobile development. Have you double-checked the guidelines for Mobile Development documentation to ensure that you're not including anything that might cause such an issue (the asset you mentioned that is broken, perhaps)?

If you can, include your build's output logs to this thread as a txt file and I can have a look and see if anything appears to be unsupported.


avatar image BlayTheNinth Apr 21 '15 at 04:59 PM

My target platforms are actually Windows and HTML5. The issue exists on both platforms.

I tried it out in the Mobile Preview of the editor anyways and it's rendering fine there too.

I've attached the two build log files mentioned in the article to this post. If you need the others too, I've put them at http://blay09.net/files/ludum/ld32/VisualGlitches/BuildLogs/ as well.

link text link text

cook.txt (750.8 kB)
uat_log.txt (1.8 MB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi Blay,

I think I've isolated what the issue is and I'm afraid that I don't have a good workaround without a source modification. It is a race condition between texture and sprite loading during cooking, as the ConditionalPostLoad call doesn't block for the texture when running the cooker as a separate commandlet like it does when run from the editor. This means that the bug shouldn't show up when you use Launch On, which defaults to cook-in-editor, but will show up when packaged via Package or UFE.

I've filed a ticket UE-14171 and I'll get that fixed for 4.8. The full fix will be to get size via a different mechanism, but as a quick hack you can try skipping the resizing code by changing UPaperSprite::NeedRescaleSpriteData() to always return false.

Cheers, Michael Noland

more ▼

answered Apr 21 '15 at 07:22 PM

avatar image

Michael Noland STAFF
604 16 11 33

avatar image Michael Noland STAFF Apr 30 '15 at 06:19 PM

This specific issue was fixed in https://github.com/EpicGames/UnrealEngine/commit/e36236bbe51b4c94d19fcf89381eb4a2fd3172ed which will be in 4.8. There are some other benign log warnings for cooked games that I'll be addressing as well.

Cheers, Michael Noland

(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