Alastar Gabriel (but you can call me anything). I'm an ex-professional software developer, now I make weird art and music :p I will give you bug facts unprompted


Twitch, Ko-fi, Neocities, Mastodon


We can be friends but I have to warn you, I am a little awkward and kind of hard to get ahold of :p


ENG/日本語 OK


website
444631.xyz/
Tumblr (I probably won't use this one much)
www.tumblr.com/444631

sysl
@sysl
Note, this will still appear as black in the Love2D Game Window.
First of all, thank you @xkeeper for this, who found this worked even after being told "It can't be done"

The Code

function love.draw()
  -- This is all you need to do in your Love2D Code, set the background to transparent.
  love.graphics.setBackgroundColor(0,0,0,0)
end

Setting up the OBS Capture

  1. Game Capture
  2. Mode: Capture Window
  3. Allow Transparency: True/Checked

That's it?

That's it. As long as you don't change the background, anything drawn in the love2D window will be drawn as if on top of a transparent background. Great for fun effects without having to use a chroma key.

You must log in to comment.