Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by Bazkur · Jan 12, 2016 at 06:22 PM · webglissuerendercompile

When Compiling to WebGL, not all Sprites Render Properly. Why?

I've made some updates to a game I made for Ludum Dare 34. It was working perfectly fine in the first release, the graphics looked as intended. After making a few changes and recompiling for WebGL, the player sprite and power up sprites are all showing up as black blobs. You can see what I mean here: http://bazkur.itch.io/stickman-sam-in-the-high-fly-sky?secret=zMzoOTZzeccZC0uvl0wr9V1kMeY

I've not changed any compile settings from the last compile and the game runs perfectly fine as an executable. Any idea what would cause my sprites to look this way in WebGL especially considering it wasn't an issue before? Thanks!

This has been posted to Reddit as well: https://www.reddit.com/r/Unity3D/comments/40nhxb/webgl_sprite_rendering_issues_need_help/

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by axoona · Dec 12, 2016 at 10:25 PM

I think I encountered the same problem which apparently is a known issue what helped was reimporting all the assets (thank's to @randomhuman for the tip)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image a_tasja · Sep 11, 2019 at 02:30 PM 0
Share

Thank you so much!

avatar image
0

Answer by CDMcGwire · Apr 20, 2016 at 05:28 AM

Hello!

I recently had the same problem and found that it was because my sprite file was set to the "Trilinear" setting in Filter Mode on the file's inspector panel.

Should help. Also, liked your game concept. :D

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Bazkur · Apr 23, 2016 at 10:45 PM 0
Share

Wasn't this but I have it fixed. Actually don't think I did anything, just recompiled it in 5.3.4 and it worked.

avatar image
0

Answer by Bazkur · Apr 20, 2016 at 11:20 AM

@CDMcGwire - Thanks, I'll check that out

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Qhuhuit · Nov 11, 2016 at 03:40 PM

Hi ! Same problem here, and since I make a pixel-art game, all my sprites are set to "no filter". My desktop build works fine but my webGL randomly not render some sprites.

All my sprites are set in this way :

  • Texture mode "Sprite"

  • Pixel per unit : 1

  • Generate Mip Maps : check

  • no filter

  • Max Size 2048

  • Format Compressed

I try different settings, and still have bugs sometimes, don't understand where they come from...

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

44 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

C# to WebGL 2 Answers

il2cpp.exe did not run properly, a python compile error 1 Answer

I am having some Emscripten compiling errors, could somebody help me with this 1 Answer

Android button render issue 0 Answers

WebGL audio pitch weirdness 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges