Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 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 /
avatar image
0
Question by Eco-Editor · Jan 28, 2018 at 12:32 PM · rendertexturespritesheetpngsprite editorsprite packer

Is 1920X1080 images are too big for RenderTexture?

Hello all,

I've created a sprite sheet out of 60 PNG images, each 1920X1080 pixels, from After Effects. In sprite editor, I would like to slice the sprite sheet to equal sprites and then create an animation out of it.

My problem is it won't let me do the Slice, and show errors in console: RenderTexture.Create failed: requested size is too large.

Texture has out of range width / height

UnityException: Failed to create texture because of invalid parameters.

Seems that the pixels are too big? Should I ask for a smaller PNG?

picture with reversed alpha. alt text

reverse-alpha.jpg (56.9 kB)
Comment
Add comment · Show 1
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 Bonfire-Boy · Jan 28, 2018 at 01:19 PM 0
Share

Sounds like you're trying to make a high res movie clip. Unity is not going to be the best package to try to do that in.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Pangamini · Jan 28, 2018 at 01:09 PM

I'd say that RenderTexture.Create is part of internal process of slicing the sprites. And maybe it's trying to create a renderTexture of the full size of the PNG.

But I am wondering, why would you create such a huge PNG and then try to slice it? Why not export separate PNGs and import them as individual sprites? Are you hoping that this will help you with batching, by putting all sprites into an atlas? Because if such large atlases are supported, then unity will put into atlas for you again.

Comment
Add comment · Show 3 · 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 Bonfire-Boy · Jan 28, 2018 at 01:34 PM 0
Share

1920x1080 definitely isn't too big for a RenderTexture. So yes, it's going to be the big image that's the problem.

I think this is going to be an XY problem, ie whatever it is the OP is trying to achieve, this isn't the way to do it. So again I'm in agreement.... the important question here is "why?" These "sprites" seem to be full screen sized, ie they're not sprites at all.

avatar image Eco-Editor · Jan 28, 2018 at 02:52 PM 0
Share

The "WHY" is that I have 455 PNG's that this animation consist of. Does it makes no sense to import 455 PNGs into unity? you're right @Bonfire-Boy, these are actually not sprites. Now I see that. These needs to be farther "cut" to be a sprite right? I've asked for a video with a transparent background so it can be placed in unity as a video texture. But, I can't get the .mov texture to work.

I use unity 2017.1.1 for this project.

avatar image Bonfire-Boy Eco-Editor · Jan 28, 2018 at 03:07 PM 0
Share

@Eco-Editor I've converted your reply to a comment so that it appears under the comment it was a reply to. The "Your Answer" box is intended for (attempted) answers to the original question only.

$$anonymous$$y suggestion would be to google for something like "how to create video with transparent background", because I think you're trying to re-invent the wheel here - turning Unity into something it wasn't made for (when there are other tools that ARE made for it). It's like trying to make your own 3D model builder in Unity - even if you got something working you'll end up having spent ages on making something that does the job less well than existing applications.

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

78 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 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

How to save a RenderTexture as a 1-channel 8-bit grayscale PNG? 0 Answers

Set maximum texture size generated by the sprite packer? 2 Answers

Sprites change color in sprite editor 1 Answer

Wierd Screen Shot Problem, texture of screen shot looks different in editor and in system. 1 Answer

Can the sprite editor slice two separate grids of different size pixels? 0 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