Jump to content


piobug

Member Since 08 Jun 2012
Offline Last Active Jan 13 2013 08:03 AM
-----

Posts I've Made

In Topic: Character skin/hair tone swapping: textures or mat color?

10 June 2012 - 01:29 PM

View PostTheNut, on 09 June 2012 - 05:06 PM, said:

You will need to have separate textures for dark skinned characters though (modifying grayscale images here would be difficult), as well as oriental characters. There's subtle differences that should be kept, but you could still have the hue option to add some fun element to it.
never thought about that.
Thank you for the tips and the great reply.

In Topic: Character skin/hair tone swapping: textures or mat color?

09 June 2012 - 01:45 PM

View PostVilem Otte, on 09 June 2012 - 12:35 PM, said:

You could actually do NVidia like solution today for lots of faces today using megatexture-like technology (e.g. paging faces textures and doing texture-space blurs on them then - exactly like they did, but actually you could work on infinite number of faces with this way). :)

thank you for your reply. I have read something about the topic but I don't have enough knowledge to understand how it could answer my question or solve my problem: could you elaborate more o point me to some resources online, please?

In Topic: Character skin/hair tone swapping: textures or mat color?

08 June 2012 - 10:30 PM

View PostReedbeta, on 08 June 2012 - 08:19 PM, said:

The key to high-quality skin shading is subsurface scattering (SSS). I don't know whether Unity offers an SSS shader, but if it does that would be a good place to start.

I thought SSS was only needed for realistic skin rendering but I'll give it a try: Unity doesn't offer a SSS shader but you can code one.

View PostReedbeta, on 08 June 2012 - 08:19 PM, said:

A technique I've seen before for altering texture colors is to multiply the rgb color with a 3x3 matrix in the pixel shader. You can do various things with this. A scaling matrix will make things brighter and darker obviously; scaling perpendicular to the luminance axis (the black-to-white diagonal axis) will adjust saturation. It can also be useful to rotate around the luminance axis, which adjusts hue. I'm sure there are other kinds of color-shifting transformations a creative person could come up with. :)

never heard of this stuff, thank you. I was indeed looking for a multiply effect similar to the one found in Photoshop so I'll give a try to the "3x3 matrix" stuff. After a quick search in the interwebs I didn't find anything easy to understand or fast to use: do you have some resource at hand you could point me to?

Thank you for the help.