Large images not loading ??

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
steven777
Prole
Posts: 35
Joined: Tue Jul 12, 2016 4:48 am

Large images not loading ??

Post by steven777 »

So I am using pngs and I have a 1500X1500 image to be scaled down latter...

Why isnt it loading into the game ?
User avatar
Ulydev
Party member
Posts: 445
Joined: Mon Nov 10, 2014 10:46 pm
Location: Paris
Contact:

Re: Large images not loading ??

Post by Ulydev »

Hey steven, give us some .love and explain your issue in detail so we can help.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: Large images not loading ??

Post by Nixola »

You're probably trying to load an image bigger than the maximum texture size. Use smaller images instead (you should avoid images bigger than 1024x1024).
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
slime
Solid Snayke
Posts: 3148
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Large images not loading ??

Post by slime »

Nixola wrote:you should avoid images bigger than 1024x1024
I don't know of any GPU or driver that supports LÖVE 0.10 but has a max texture size of 1024x1024 or less. 2048x2048 is the smallest maximum I've seen on desktops.
User avatar
zorg
Party member
Posts: 3453
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Large images not loading ??

Post by zorg »

Also, "not loading" can have a bazillion meanings, does it make löve crash? will love.graphics.drawing it show a black square? garbage? "transparent pink"? or will it do nothing at all? But yes, a bit of code would help us tremendously in helping you. :3
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 2 guests