Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: internal size too high problem loading pictures  (Read 1468 times)

0 Members and 3 Guests are viewing this topic.

pridefight

  • Newbie
  • *
  • Posts: 10
    • View Profile
internal size too high problem loading pictures
« on: January 06, 2012, 07:34:01 am »
this problem really drives me crazy, when i use the LoadFromFile method of the sf::Image class, i got the error: fail to load image, its internal size is too high(2048*2048).  
let me explain this more clearly, yesterday i try to load a 1500*300 image, and it's OK, then i tried to  load a a bigger pic, it failed, then i go back with the 1500*300 image, it shows the same error ,but different in that (2048,512), i really cant understand this sh*t, anybody can help me?

Elgan

  • Jr. Member
  • **
  • Posts: 77
    • AOL Instant Messenger - Flat+1,+17+st+Cl
    • View Profile
internal size too high problem loading pictures
« Reply #1 on: January 06, 2012, 08:28:37 am »
internal size is too high.

Maybe it means the resolution is too high / image is too big. Maybe too big for the gfx adapter ? I believe a gfx adapter has size (resolution) limits, there are tricks for this, or maybe the api has its own limits.

"internal size is too high"...is kind of broken English.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
internal size too high problem loading pictures
« Reply #2 on: January 06, 2012, 11:49:35 am »
Some days ago I commited thor::BigTexture and thor::BigSprite in my library ;)

They can be used similar to sf::Texture and sf::Sprite, but cope with sizes larger than the graphics card limit. However they require SFML 2.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: