/OBS_threeJS_graphics

Some fun stuff, creating 3d gfx elements with transparent BG for use in OBS

Primary LanguageJavaScript

OBS_threeJS_graphics

Some fun stuff, creating 3d gfx elements with transparent BG for use in OBS

This is just a small plaything. I wanted to test three.JS for creating realtime 3d rendered elements that I could add to a OBS stream.

I was surprised that I could output it with transparent backdrop so you get a perfect alpha for the 3d element. Just took some threeJs examples and made sure they rendered with alpha and no background.



Installation:

  1. Clone this to a local folder
  2. in OBS, create a Browser element
  3. check "Local File" chk box. If you just want to run it directly from the folder.
  4. Browse to the HTML file you want to show inside this REPO.
  5. Add the following css to be sure that you do not get an background color:
body { background-color: rgba(0,0,0,0)!important }; margin: 0px auto; overflow: hidden; }

Alt text