API to acquire PBR materials from any portrait image for relighting
With SwitchLight API, you can extract surface normal map, albedo map, roughness map & remove background of any portrait image and use it in your own 3D pipeline that supports physical-based-rendering (PBR). 1. Surface Normal API: Surface Normal maps represent in which direction each pixel is pointing towards in 3D space, and without surface normal, things will look super flat and unrealistic. 2. Albedo API: Albedo map removes any shadows or highlights from the original image and represents what the subject would look like under very flat white lighting. Also known as diffuse map or base…
In plain words
SwitchLight API extracts physical-based rendering materials from portrait images for use in 3D pipelines. The tool generates surface normal maps that define pixel directionality in 3D space, albedo maps that show subjects under neutral lighting, roughness maps indicating surface texture, and removes backgrounds automatically. It is designed for 3D developers and artists who need to convert 2D portraits into relightable 3D assets with accurate material properties for realistic rendering.
written from the facts on this page · September 2026
From the sources
In the maker’s words, at launch
With SwitchLight API, you can extract surface normal map, albedo map, roughness map & remove background of any portrait image and use it in your own 3D pipeline that supports physical-based-rendering (PBR). 1. Surface Normal API: Surface Normal maps represent in which direction each pixel is pointing towards in 3D space, and without surface normal, things will look super flat and unrealistic. 2. Albedo API: Albedo map removes any shadows or highlights from the original image and represents what the subject would look like under very flat white lighting. Also known as diffuse map or base color. 3. Roughness API: Roughness map represents how rough or smooth the surface is. The darker it is, the smoother the surface is like a mirror. For example your clothes is much rougher than your skin, and will be represented brighter in the roughness map. Also known as glossiness map. 4. Background Removal: Removes the background and return PNG file with alpha channel Below is a video of a demo app where you can relight a human portrait in realtime using SwitchLight API & ThreeJS. Here, I extracted surface normal, albedo and roughness map using SwitchLight API and and used ThreeJS's Physical Based Rendering capability. We've also attached a sample code snippet so feel free to try it out! Demo Video: https://www.youtube.com/watch?v=JaIBwL4w7HA Code Snippet: https://www.switchlight-api.beeble.ai/docs/tutorial
More dev tools this month
the category →



Open-source GTM skills for technical founders
Dev tools · 29d ago · gtmcofounder.com

OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.
Dev tools · 1d ago · opentrailpaper.com

Launched alongside, August 2023
the whole month →



Lottielab▲871Create and ship lottie animations to sites and apps faster
Dev tools · 2023 · lottielab.com
- LC
Outlines is a Python library that focuses on text generation with large language models. Brandon and I are not LLM experts and started the project a few months ago because we wanted to understand better how the generation process works. Our original background is probabilistic, relational and symbolic programming. Recently we came up with a fast way to generate text that matches a regex (https://blog.normalcomputing.ai/posts/2023-07-27-regex-guide...). The basic idea is simple: regular expressions have an equivalent Deterministic-Finite Automaton (DFA) representation. We…
AI · 2023 · github.com