How to avoid the sawtooth in pixels?

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
User avatar
tavuntu
Citizen
Posts: 65
Joined: Mon Dec 24, 2012 6:56 am
Contact:

How to avoid the sawtooth in pixels?

Post by tavuntu »

I want to soften the edges of circles and things like that, I've seen PixelEffect but I don't feel ready for that level yet.
Thank you very much.
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: How to avoid the sawtooth in pixels?

Post by slime »

You could turn on antialiasing: put t.screen.fsaa = 4 (or 2) in conf.lua, or use the last argument to love.graphics.setMode.
User avatar
tavuntu
Citizen
Posts: 65
Joined: Mon Dec 24, 2012 6:56 am
Contact:

Re: How to avoid the sawtooth in pixels?

Post by tavuntu »

Thanks, but I get "Warning, quality setting failed! (Result: buffers: 0, samples: 0)" and the circles still showing pixels on the edge, in the 2 ways you said :(
User avatar
slime
Solid Snayke
Posts: 3132
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: How to avoid the sawtooth in pixels?

Post by slime »

Your system might not support multisampled antialiasing. :(
What video card and OS do you have?

As far as I know, unless you use images the best and easiest way by far to reduce sawtooth/jaggies is with antialiasing.
User avatar
tavuntu
Citizen
Posts: 65
Joined: Mon Dec 24, 2012 6:56 am
Contact:

Re: How to avoid the sawtooth in pixels?

Post by tavuntu »

I have integrated graphics (intel), ubuntu running with XFCE, 4 GB on RAM and (not very sure) 256 MB for video. I've played Wii games in Dolphin with OpenGL mod and they run very well so, I thought my machine was able to do this operation :(
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 29 guests