Jump to content

Marschner hair model


ssh

Recommended Posts

Primary, Secondary, Overall spec all have bright colours, diffuse has a decent intensity which is a ramp from a very very light grey to almost pure white. What other parameters should i be messing with?

Nice wip I should say!

My suggestion is to increase diffuse component to get light colored hair.

Please try to increase Diffuse Intensity from default 0.01 to something like 0.7.

Also changing diffuse color from default 0.001 (almost black) to something like (1, 0.9, 0.8) will help.

I've used similar settings for light colored hair in my video.

Link to comment
Share on other sites

  • Replies 87
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Yeah my setting with that last render were 0.8 on the diffuse intensity with it almost set to white. Maybe it had something to do with my lights? Dunno. :huh:

If i get time i will setup a simple scene to replicate it and you can tell me where im going wrong.(if you have the time) :)

Link to comment
Share on other sites

Here is the blond render:

post-4029-130816919881_thumb.jpg

I've increased intensities. Did not touch the lights, just switched raytraced shadows to depthmap on topLight.

It turned out that my shader use slightly different way to compute diffuse then standard shader from SESI.

I'm using call to:

diffuseBRDF()

This way one may set diffuse roughness.

In standard shader we have for diffuse:

abs(dot(nN,nL));

I've made a version of my shader that computes diffuse in that way. Please download from this post.

Here is the comparison of diffuse components of both shaders:

post-4029-130816929748_thumb.jpg

simpleHair_diffuse_hipnc.zip

simpleHair_spec_hipnc.zip

ssh_marschner_hair.otl

Link to comment
Share on other sites

Thank you sir :).

Any reason for using depth maps instead of raytrace apart from speed? I feel when it comes to fur than i get alot of pitted shadows and the resolutions get pretty insane :).

Either way back to testing can once again commence :).

Link to comment
Share on other sites

[uPDATE] Added hairPaintExport variable that contains diffuse premultiplied by color.

Now there are four export variables:

hairDiffuseExport - contains diffuse.

hairPaintExport - contains diffuse premultiplied by color.

hairSpecularExport - contains specular.

occlusionExport - contains white color (1,1,1).

ssh_marschner_hair.otl

Link to comment
Share on other sites

Thank you sir :).

You are welcome!

Any reason for using depth maps instead of raytrace apart from speed?

Basing on my experience of rendering animated hairy characters I should say that raytraced shadows are pretty unusable with hair.

Because both of rendering speed and lots of flickering in animation.

And depthmapped shadows are fine, just set pixel samples to values like 3x3. Usual resolution is 1k or 2k, but it greatly depends on placement of your lights.

Hope this helps.

Link to comment
Share on other sites

Hi there. I'm trying to use your shader on character I'm making that has long hair. I'd like to try and have dark hair, either a dark brunette, or even something close to black, with settings similar to your dark haired model in your first post.

But I'm completely lost as to what controls what. Any suggestions for how to tackle that?

Link to comment
Share on other sites

Hi!

I was trying to use yours shader on hqfarm and I've got some problems.

It is really strange thing - when I'm rendering simple test scene locally - everything works. While rendering locally, all otls (including yours) are loaded from network directory. I'm sure, that farm can read and load otls from this directory.

While rendering on farm, the shader takes no effect on object.

The only error that I get in hqfarm terminal is (using highest mantra verbose level):

'

Unable to get VEX code from:

opdef:/Shop/ssh_marschner_hair

'

In attachment there is simple test scene that doesn't work while network rendering.

Thank You and i'm waiting for your reply.

testlibotls2_pub.hip

Link to comment
Share on other sites

Hi grzegorz!

Just tested your scene on my farm and it rendered without any errors.

We did not use HQueue, but I don't think this is a problem.

May I suggest you to check HOUDINI_OTL_PATH environment variable on render nodes?

It should contain a path to network directory with hair shader otl.

Can you please check if other custom otls works when rendering on farm?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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