Hi.
How to make LOVE draw sharp, pixlated lines and outlines?
Is there something to change in conf.lua or I have to write a function for that?
<SOLVED> Pixelated (out)lines
<SOLVED> Pixelated (out)lines
Last edited by ffive on Fri Dec 05, 2014 1:28 pm, edited 1 time in total.
.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙
Re: Pixelated (out)lines
You can set the line-style to "rough". Wiki
Code: Select all
love.graphics.setLineStyle( 'rough' )
Check out my blog on gamedev
Re: <SOLVED> Pixelated (out)lines
Disable Antialiasing in conf.lua
Re: <SOLVED> Pixelated (out)lines
That doesn't solve the problemS0lll0s wrote:Disable Antialiasing in conf.lua
.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙·.·˙
<NOT SOLVED> Pixelated (out)lines
Sorry for bumping,
but CONF.LUA changing had no effect.
I don't want any sprites anti-aliasing feature.
Here are my sprites source and the LOVE2d output at the right part of the picture.
I used to use SDL canvas with C++. Now, WebGL brings up some eyesore.
but CONF.LUA changing had no effect.
Code: Select all
t.window.msaa = 0 -- The number of samples to use with multi-sampled antialiasing (number)
Here are my sprites source and the LOVE2d output at the right part of the picture.
I used to use SDL canvas with C++. Now, WebGL brings up some eyesore.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
Re: <SOLVED> Pixelated (out)lines
Try doing:
At the top of your main.lua.
Code: Select all
love.graphics.setDefaultFilter("nearest", "nearest")
PM me on here or elsewhere if you'd like to discuss porting your game to Nintendo Switch via mazette!
personal page and a raycaster
personal page and a raycaster
Re: <SOLVED> Pixelated (out)lines
Thank you very much!
Now I'm happy with the result.
Added Flip Sprite Horizontally & Vertically into the old sprite manager by Dejaime
and going to start a game.
Now I'm happy with the result.
Added Flip Sprite Horizontally & Vertically into the old sprite manager by Dejaime
and going to start a game.
Our LÖVE Gamedev blog Zabuyaki (an open source retro beat 'em up game). Twitter: @Zabuyaki.
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
LÖVE & Lua Video Lessons in Russian / Видео уроки по LÖVE и Lua
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: <SOLVED> Pixelated (out)lines
For the record, the answers of all 3 people (Micha, S0lll0s and Davidobot) are solutions to problems similar to each other; it could have been either, or a combination of them that caused your issue.
(You did mention pixellated lines as well as outlines; Micha's solution is for lines, S0ll0s' is an "affects every drawing" thing defined in conf.lua (though editable in-code as well), and Davidobot's is applicable to images, canvases and fonts.)
(You did mention pixellated lines as well as outlines; Micha's solution is for lines, S0ll0s' is an "affects every drawing" thing defined in conf.lua (though editable in-code as well), and Davidobot's is applicable to images, canvases and fonts.)
Me and my stuff True 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.
Who is online
Users browsing this forum: No registered users and 1 guest