Code: Select all
if (condition) then
require 'some file'
end
Code: Select all
if (condition) then
require 'some file'
end
Code: Select all
if love.filesystem.exists("some/file.lua") then
require("some.file")
else
require("other.file")
end
sureTechnicolour wrote:That's awesome Science, If you don't mind I'll copy over your imagedata sollution over to my most recent version, it seems Canvas is just more trouble than it's worth in this situation.
Nearest neighbour looks better(I like my pixels ...pixely):SiENcE wrote: i fixed it, by using imagedata.
Code: Select all
img = love.graphics.newImage(canvas)
img:setFilter("nearest", "nearest")
love.graphics.draw(img, 10, 10, 0, 3, 3)
Did i said something about nearest neighbour?headchant wrote:Nearest neighbour looks better(I like my pixels ...pixely):SiENcE wrote: i fixed it, by using imagedata.
Code: Select all
img = love.graphics.newImage(canvas) img:setFilter("nearest", "nearest") love.graphics.draw(img, 10, 10, 0, 3, 3)
Code: Select all
love.graphics.setPoint( 1, "rough" )
i tried changing point styles myself and it didn't work. of course, as you mentioned, it turns out i used setPointStyle and didn't even think about using setPoint. blah.Snoopy1611 wrote:Hi, I found the Problem that causes the "ghosting" when a canvas is used.
The default PointStyle seems to be "smooth" but for your "draw only pixels that changed" approach ist is important that exact Pixels are drawn to the canvas and not smooth Points.
So if you addto your love.load() all shold be good.Code: Select all
love.graphics.setPoint( 1, "rough" )
Note that setPointStyle does not work, there seems to be a bug with that. viewtopic.php?f=4&t=2846&hilit=setPointStyle
I don't know why the ghosting does not happen for everyone my guess is:
a) Different Default values for PointStyle in diffrerent Löve builds? (unlikely)
b) Different SDL Library or opengl implementation?
If this solution works for everyone I would suggest to drop the "imagedata Hack" and go back to canvas besause it's way faster!
And btw. Technicolour: I löve your Emulator! The Z80 code ist pure genius. The "array of functions" to execute the Opcodes is really cool!
Users browsing this forum: No registered users and 5 guests