AP

API to acquire PBR materials from any portrait image for relighting

Hacker News

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 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

Share card

Actual performance

12points
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: physical, using, code · Missing: mac, agents, macos
78%78% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Hacker NewsStrong engagement from HN community · Strong signals: ide, pipe, io · Missing: https docs, excited, just released
52%52% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
51%51% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: video · Missing: mobile apps, ios, personal
43%43% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
26%26% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
5%5% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

In
Introduction into FP and Scala – workshop materials45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Introduction into FP and Scala – workshop materials

Hacker News11
Ha
Handcrafted standing desks from reclaimed materials39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Handcrafted standing desks from reclaimed materials

Hacker News32
Li
LivePortrait App – Turn Static Portrait Image into Live Portrait36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

LivePortrait App – Turn Static Portrait Image into Live Portrait

Hacker News1
An
An electronics bill of materials builder42%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

An electronics bill of materials builder

Hacker News3
Ev
Everyday Materials [Netflix Show, U.S.]39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Everyday Materials [Netflix Show, U.S.]

Hacker News2
Cr
Create a portrait painting from one photo50%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Create a portrait painting from one photo

Hacker News36
Al
Alinor the Platform for Advanced Materials60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Alinor the Platform for Advanced Materials

Hacker News2
Portrait Union
Portrait Union26%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Your photo, painted as a Renaissance royal in seconds.

Product Hunt+1
Ve
Verticals – Intelligent landscape to portrait video cropper29%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Verticals – Intelligent landscape to portrait video cropper

Hacker News3
St
Stable Diffusion Finetuning AI Portrait Tool (Drip Art)52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Stable Diffusion Finetuning AI Portrait Tool (Drip Art)

Hacker News1