Line drawing capabilities of Love2D

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
MrBiscuits
Prole
Posts: 5
Joined: Wed Dec 11, 2013 1:47 pm

Line drawing capabilities of Love2D

Post by MrBiscuits »

Hello,

I'm looking to make a retro vector based game like Asteroids, but with some added graphical effects on the lines and possibly other shapes like glow etc.

Is that possible at all in Love2D?

Also would it handle drawing a load of lines on screen smoothly?

Any help would be greatly appreciated.
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: Line drawing capabilities of Love2D

Post by veethree »

Yes. Glow can be achieved with shades. How many lines you can draw smoothly depends mostly on how you implement it.
MrBiscuits
Prole
Posts: 5
Joined: Wed Dec 11, 2013 1:47 pm

Re: Line drawing capabilities of Love2D

Post by MrBiscuits »

veethree wrote:Yes. Glow can be achieved with shades. How many lines you can draw smoothly depends mostly on how you implement it.
Ah nice one thanks. Are there any tutorials on shaders and how to implement them knocking about?
User avatar
veethree
Inner party member
Posts: 877
Joined: Sat Dec 10, 2011 7:18 pm

Re: Line drawing capabilities of Love2D

Post by veethree »

There's a beginners guide written by a community member. There's also the share a shader thread where you an find tons of examples.
User avatar
Jasoco
Inner party member
Posts: 3726
Joined: Mon Jun 22, 2009 9:35 am
Location: Pennsylvania, USA
Contact:

Re: Line drawing capabilities of Love2D

Post by Jasoco »

That Shader guide is super helpful. I've been using xXxMoNkEyMaNxXx's "perspective" library shader to do my 3D texturing for a while but had been struggling to understand how it worked so I could try changing things I need. Thanks to that guide I understand a lot better.
User avatar
parallax7d
Citizen
Posts: 82
Joined: Wed Jul 02, 2014 11:44 pm

Re: Line drawing capabilities of Love2D

Post by parallax7d »

Speaking of drawing lines, how good do Love lines look? Anti aliased? What are the based on, OpenGL?
User avatar
slime
Solid Snayke
Posts: 3161
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Line drawing capabilities of Love2D

Post by slime »

'smooth' lines (the default line style) are antialiased, whereas 'rough' lines aren't, unless you have FSAA enabled for the window.

Like everything else in love.graphics they're drawn using OpenGL - they don't use OpenGL's default line rendering though, because it has some nasty issues and isn't very nice-looking.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 4 guests