Home Artists Posts Import Register

Content

Everything has been progressing nicely with the fur shader and the upcoming patron release, up until a couple of days ago. All of the sudden we hit a quite substantial roadblock. As it turns out, Unity cannot pass shadows onto transparent objects, and our fur shader makes heavy use of transparency (for the individual strands). In our development of the shader, we always tested it outdoors with the default skybox, so we hadn't noticed this. But as soon as we put Wolf into a level using the shader, we noticed he was shining like lamp (because he wasn't receiving any shadows in an otherwise shaded environment).

This was quite frustrating. At first we thought we had to abandon the shader, which would suck extremely hard considering the amount of time we've put into it. Reading the forums didn't help much or give any hope either. As a matter of fact, none of the fur shaders available in the Unity asset store support receiving shadows. And these guys have been trying to get it to work for far longer than we have. So if they hadn't managed to solve it by now, how could we do it?


At this point, we seriously thought we were fucked. Obviously we cannot use a shader that doesn't support receiving shadows. Any character using such a shader would look completely out of place when indoors, or when another character is casting a [non-visible] shadow onto him/her. However, having invested so much time into this, we refused to let ourselves be defeated by such an unexpected issue. It seems so trivial, yet apparently it is quite a complex problem getting true transparency and shadows to work (in any engine, not just Unity).


After much blood, sweat and tears, we're happy being able to show this result:

http://i.imgur.com/xthPG9k.png


It may not seem so impressive, but I don't think you realize the amount of trouble we had to go through to get it work. And apparently, no other fur-shader maker has managed to do so! So it feels almost unreal that we managed to achieve this when they haven't.


I won't go into details what magic we are using to accomplish this, but I can give you some other information. Right now, the highest quality fur shader we've got is actually 977 lines of uncompiled (!) source code. If you're uninitiated to how shaders work, you may not realize how much that is for a shader. It is HUGE.


What's more - because we required more control of how Unity renders the shaders, we had to go away from using Unity's simple way of creating shaders ("surface shaders") to writing our completely own fragment and vertex shaders (in essence circumventing Unity almost entirely). While being harder to work with, they are also faster than surface shaders. So by bumping into this problem, we manged to get a speed improvement as well! (In addition to supporting shadows.)


I understand that this post might come off as a bit of a brag or something. But never having written a line of fragment shaders previously, it just feels amazing to actually having overcome such a huge issue that apparently other fur-shader makers haven't solved! And we're so happy right now that we can keep the fur shader.


It would seem that, where there's a will, there's a way. :)


Unfortunately, this unexpected issue also means we're a bit behind schedule. We might still be able to release on Sunday, but there's a risk there will be a delay.


- odes

Files

(No title)

Comments

Baphomet

Yiffalicious: The world leader in cutting-edge furry porn technology

Dark Sunrise

Dude, brag all you want; those are some pretty amazing results you have there. In fact, have you ever considered selling this on the asset store? Having the most impressive fur system out there would likely bring in a chunk of side-cash...

Dave

Congrats

yiffalicious

It has crossed my mind, but preparing something and releasing in the asset store takes time. Also maintenance and other things. Plus, I don't think the fur shaders in the asset store make that much money. It's very much a specific need, and I'd much rather spend time on Yiffalicious.

Anonymous

believe me when i say that i have a bit of understanding when it comes to things like this. that understanding only goes far enough to say that you are absolutely AMAZING at what you do and i cannot possibly overstate how utterly SUPREME you are and have been at overcoming every obstacle you've encountered so far. You guys are some of the best developers i've seen in a VERY long time and it's evident that your love for your work is HUGE.

WorselTheV

It really is the seemingly trivial stuff that will screw up a code base. There is that sudden realization that it's really not trivial, then that sinking feeling that you've forgotten something then resignation at the pile of work it will take to fix it. It's satisfying when you figure it out. Go ahead, brag, you've earned it.

Anonymous

You guys never cease to amaze and inspire. Virtual hugs and highfives, you've a reason to be really proud of yourselves!

Anonymous

yes i am ready promotion and hope the new idea sore in the sky and forever going forward. oh p.s big fan

Ezyk Jaraad

This post makes me wonder. What would a Seal girl/boy look like?

yiffalicious

If such a character is wanted, it will happen sooner or later. More information about custom characters will be revealed later on.

Anonymous

a muscular or fit lioness/lion character would be cool with this fur especially with that big mane lions have

FJKMAN

wow congrats. you guys are too legit to quit XD. keep up the good work!