Reply
10 Sep 2012
By: jiteshvm

Member

4 Posts
Member
Offline
Accepted Solution

System.ArgumentOutOfRangeException Could not load file

3 Replies 155 Views Created 10-09-2012

I am trying a basic test to load a png file using :

Sce.PlayStation.Core.Graphics.Texture2D test = new Sce.PlayStation.Core.Graphics.Texture2D("/Application/assets/spritesheet_girl.png",false);

 

It cannot load the file and gives System.ArgumentOutOfRangeException

It works for certain pngs but not for the one i am using.

The png that i am using has resolution 2500x1000

I am guessing thats the problem.

 

What are the limits on texture resolution?

Please use plain text.
Reply
0 Kudos
Message 1 of 4 (155 Views)
Reply
0 Kudos
Level 7
 

Re: System.ArgumentOutOfRangeException Could not load file

Hi:

 

Yes that's the problem the maximum texture it's 2048x2048 and you can find this and mre info on the documentation:

 

/PSM/doc/en/overview_graphics_en.html

 

under API overview-> graphics overview.

 

Cheers,

Please use plain text.
Reply
0 Kudos
Message 2 of 4 (153 Views)
Reply
0 Kudos
Level 3
 

Re: System.ArgumentOutOfRangeException Could not load file

2500x1000 will probably even be transformed to 4096x1024 (16 MB-RAM)
http://markscheurwater.com/project.php
Please use plain text.
Reply
0 Kudos
Message 3 of 4 (142 Views)
Reply
0 Kudos
Level 7
 

Re: System.ArgumentOutOfRangeException Could not load file

Hi:

 

@Scheurwater89 Yes that's happens in many system, Like Unity, but in documentation says there is a maximum that's 2048, so probably it's directly not loading it,...mmm  i didn't try it to check this out.

 

Cheers,

Please use plain text.
Reply
0 Kudos
Message 4 of 4 (136 Views)
Reply
0 Kudos