Jump to content
Paint.NET 5.1 is now available! ×

Recommended Posts

Posted (edited)

Hi y'all,

 

Im a building a product configurator so that people can compose their own chair.

 

What i do is:

- I take the a photo of the product

- Then i put a color (chosen by the user) over the places it should be colored (see the red image):

chair_texture.png

 

Now i want to add the lighting effects of the original photo over this one.

So what i want to do is take the following image:

chair_overlay.png

Now i want to make a transparant image to put over the color (red image) so that it looks realistic

 

What i thought i wanted to do is:

- Take the average color of the image

- Make everything thats brighter then the average color a white spot which is transparent based on the difference between the light spot and the average color

- Then do the same with dark spots but then with the color black

 

Can someone help me do this?

Or do you know a different way to achieve a realistic end picture?

 

Thanks,

Wipped

Edited by Wipped
Forgot text
Posted (edited)

Maybe the simplest way is good enough. Put the red chair-shape as a new layer over the background image (black chair) and play with the Blending Modes in the layer properties.

 

chair.jpg

Edited by IRON67
Posted

@IRON67 Thanks for the response.

 

The problem is that i need a stand-alone overlay image, which will be rendered over the color in a html canvas with javascript

Posted
1 hour ago, Wipped said:

which will be rendered over the color in a html canvas with javascript

 

Well, then it isn't a problem of Paint.net anymore but of HTML and CSS.

Posted

Wipped still needs an image to be used as a lighting overlay - regardless of how the final image will be constructed.

 

The overlay will be mostly transparent, except for areas of white (highlights) and gray/black (shadows). So what we need to do is remove the base color (i.e. basic black of the example chair) leaving the lighting effect.

 

Here's an excellent tutorial on adding highlighting and shadows

 

 

  • Like 1
Posted

Thanks for the reactions guys.

 

I'm still not exactly where i want to be but you brought me quite a bit closer.

 

Will update when i reach the ultimate solution.

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...