Anti-aliasing in Framebuffers

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
perrako
Prole
Posts: 5
Joined: Sat Mar 31, 2012 9:59 pm

Anti-aliasing in Framebuffers

Post by perrako »

I'm currently drawing parts of my scene into framebuffers, and then drawing those framebuffers into the scene. I can't figure out a way to get anti-aliasing when drawing into these framebuffers, though. When I draw the framebuffers onto the scene, their contents are quite jaggy. I've got FSAA enabled on the game, and using love.graphics.setMode when a framebuffer is bound freaks the game out. What am I missing?
User avatar
slime
Solid Snayke
Posts: 3162
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Anti-aliasing in Framebuffers

Post by slime »

There could be one of two things happening here: your framebuffer isn't being anti-aliased as much as you want, or it's the victim of a lack of premultiplied alpha blending. Framebuffers drawn to the screen with alpha blending will only look proper with the "premultiplied" blend mode instead, however it's only available in LÖVE 0.8.0. For alternative anti-aliasing solutions, you could look into things such as FXAA and SMAA, however they're probably not exactly what you're looking for.
Post Reply

Who is online

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