- Home /
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.
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.
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.
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.
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.
@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
![](https://koobas.hobune.stream/wayback/20220612151443im_/https://answers.unity.com/themes/thub/images/avi.jpg)