SSN: Soft Shadow Network for Image Compositing

07/16/2020
by   Yichen Sheng, et al.
0

In image compositing tasks, objects from different sources are put together to form a new image. Artists often increase realism by adding object shadows to match the scene geometry and lighting. However, creating realistic soft shadows requires skill and is time-consuming. We introduce a Soft Shadow Network to generate convincing soft shadows for 2D object cutouts automatically. SSN takes an object cutout mask as input and thus is agnostic to image types such as painting and vector art. Although inferring the 3D shape of an object from its silhouette can be ambiguous, it is easy for humans to get the 3D geometry from a 2D projection when it is in an iconic view. We follow this intuition and train the SSN to render soft shadows for objects' iconic views. To train our model, we design an efficient pipeline to produce diverse soft shadow training data using 3D object models. Our pipeline first computes a set of soft shadow bases by sampling hard shadows. During training, environment lighting maps that cover a wide spectrum of possible configurations are used to calculate the soft shadow ground truth using the shadow bases. This enables our model to see a complex lighting pattern and to learn the interaction between the lights and 3D geometries. In addition, we propose an inverse shadow map representation, which makes the training focused on the shadow area and leads to much faster convergence and better performance. We show that our model produces realistic soft shadow details for objects of different shapes. A user study shows that SSN generated shadows are often indistinguishable from shadows calculated by physics-based rendering. Our SSN can produce a shadow in real-time and it allows real-time interactive shadow manipulation. We develop a simple user interface and a second user study shows that amateur users can easily use our tool to generate soft shadows matching a reference shadow.

READ FULL TEXT

page 6

page 9

research
12/01/2022

Soft Labels for Rapid Satellite Object Detection

Soft labels in image classification are vector representations of an ima...
research
03/22/2023

LightPainter: Interactive Portrait Relighting with Freehand Scribble

Recent portrait relighting methods have achieved realistic results of po...
research
08/24/2020

Interactive Annotation of 3D Object Geometry using 2D Scribbles

Inferring detailed 3D geometry of the scene is crucial for robotics appl...
research
07/27/2016

How2Sketch: Generating Easy-To-Follow Tutorials for Sketching 3D Objects

Accurately drawing 3D objects is difficult for untrained individuals, as...
research
05/20/2022

Enriching StyleGAN with Illumination Physics

StyleGAN generates novel images of a scene from latent codes which are i...
research
02/28/2023

PixHt-Lab: Pixel Height Based Light Effect Generation for Image Compositing

Lighting effects such as shadows or reflections are key in making synthe...
research
12/19/2020

No Shadow Left Behind: Removing Objects and their Shadows using Approximate Lighting and Geometry

Removing objects from images is a challenging problem that is important ...

Please sign up or login with your details

Forgot password? Click here to reset