Image not Displaying Right

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.
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Image not Displaying Right

Post by yetneverdone »

Also, the other image was so vastly different than the first, without code, i don't think we could have helped.
A love file could be helpful.
[/quote]

The love file is attached :)
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Image not Displaying Right

Post by yetneverdone »

pgimeno wrote:Maybe you're setting something else before calling love.graphics.draw? Like a stencil, a blend mode, a shader...?

If not, then yes, attaching a .love file to your post should help. Preferably a trimmed down version that still exhibits the problem, but it's OK if it's the whole project.
The love file is attached :)
User avatar
pgimeno
Party member
Posts: 3593
Joined: Sun Oct 18, 2015 2:58 pm

Re: Image not Displaying Right

Post by pgimeno »

I've reproduced it with the attached simplified case. You can delete the project from the OP if you like. It seems to have to do with the image being too large. No idea of how large is too large, though, sorry, but it seems that 15360x768, which is the size of this image, is too large. It may even depend on the graphics driver. Maybe you can split it into several images.

main.lua has nothing special in it, it's just a straightforward:

Code: Select all

local img = love.graphics.newImage('titleScreen.png')

function love.draw()
  love.graphics.draw(img)
end
Attachments
glitch.love
(67.49 KiB) Downloaded 42 times
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Image not Displaying Right

Post by yetneverdone »

pgimeno wrote:I've reproduced it with the attached simplified case. You can delete the project from the OP if you like. It seems to have to do with the image being too large. No idea of how large is too large, though, sorry, but it seems that 15360x768, which is the size of this image, is too large. It may even depend on the graphics driver. Maybe you can split it into several images.

main.lua has nothing special in it, it's just a straightforward:

Code: Select all

local img = love.graphics.newImage('titleScreen.png')

function love.draw()
  love.graphics.draw(img)
end
Do you see the image? Or is it pink and white?
User avatar
pgimeno
Party member
Posts: 3593
Joined: Sun Oct 18, 2015 2:58 pm

Re: Image not Displaying Right

Post by pgimeno »

Pink and white. That's why I say I've reproduced it :)
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Image not Displaying Right

Post by yetneverdone »

pgimeno wrote:Pink and white. That's why I say I've reproduced it :)
Oh, okay, thank you for helping :)
User avatar
slime
Solid Snayke
Posts: 3144
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Image not Displaying Right

Post by slime »

[wiki]love.graphics.getSystemLimits[/wiki] has a 'texturesize' field you can query. Generally you can expect a max texture size of 2048x2048 on low end computers, and up to 16384x16384 on DX11/OpenGL 4 -capable desktop computers.
User avatar
yetneverdone
Party member
Posts: 446
Joined: Sat Sep 24, 2016 11:20 am
Contact:

Re: Image not Displaying Right

Post by yetneverdone »

slime wrote:[wiki]love.graphics.getSystemLimits[/wiki] has a 'texturesize' field you can query. Generally you can expect a max texture size of 2048x2048 on low end computers, and up to 16384x16384 on DX11/OpenGL 4 -capable desktop computers.
Thank you! That really helps
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest