PDA

View Full Version : Hair Inside Vray


RenatoT
09-19-2007, 09:07 PM
About Hair and Vray.

In the 1.02 i've added the support for the shader Hair Polygon.. and not the support for the Hair Video Post.. the news is that the shading is calculated by the Hair shader.. just this.

I need now to find a render parameters that allow to get good rendering time (no shadow map) and detailed tiny polys.

http://www.tarabella.it/C4D/VrayForC4d/VrayHairPolyShader.jpg


Cheers
Renato

the_Monkey
09-19-2007, 09:31 PM
Whooaa! That is some sexy Hair Renato!

-m

Fluffy
09-20-2007, 04:23 AM
Note that Hair generating instances work as well (since it generates geometry).
Here is a quick example :
http://www.pixiemedia.com/fc4d/vray/vine.jpg

burnin
09-20-2007, 08:57 AM
and how can someone get to this hair generated ivy - i just don't know
can you post a sample scene
very practical use

rhodesy
09-20-2007, 10:18 AM
I don't have hair but does this mean (for those that have it) that you still need to generate the large amounts of polys but you can now get the light quality of the hair module / material?

hiro
09-20-2007, 10:48 AM
and how can someone get to this hair generated ivy - i just don't know
can you post a sample scene
very practical use

oh, i'm interested in this too. i just know the ivy generator, but its newe for me, that you can do this with hair.

please can you give us the scene?

thanks in advance!

greetings

Fluffy
09-20-2007, 02:03 PM
I don't have hair but does this mean (for those that have it) that you still need to generate the large amounts of polys but you can now get the light quality of the hair module / material?

Hair comes with a "polygon Hair" shader that can be placed inside a Vray material to simulate the 2D Hair shader on real geometry. That is what Renato is currently working on, and it works great so far.

For the vine, nothing fancy, just set your hair to generate instances (in this case, simple subdivided planes, with an alpha mapped leave texture on it), to deform along the hair splines.

Here is the scene : Vine file (http://www.pixiemedia.com/fc4d/vray/vine.zip)

hiro
09-20-2007, 02:25 PM
thanks for the file, i' ll check it soon..

hiro
09-20-2007, 02:49 PM
i didn't know this function of hair, its great and easy! thanks for the tipp! (i've learnd a a lot, just watching the posts in this forum, not only 'bout Vray!)
:o
greetings

scanmead
09-20-2007, 06:35 PM
Yikes, Renato! You're adding things so fast, I can't keep up with you! :wink:

But to get any sort of Hair into VRay is a huge bonus!

RenatoT
09-20-2007, 09:21 PM
Hi all,

yes, just a support for the shader.

I hope that will be possible to use the full features of the best hair module in the world :)

Cheers
Renato

Walli
09-20-2007, 09:26 PM
that looks very promising!

winh
09-25-2007, 11:54 AM
Renato,

Could you explain how to use this shader, I am having trouble getting anything to appear. :oops:

Thanks

Fluffy
09-25-2007, 12:16 PM
Place the polygon hair shader (can be found in the shader list of any Vray material) inside the luminance channel. Then place both the Hair material (the one from Hair, that deforms the geometry) and the Vray material with the Hair shader on the Hair object and your are set.

winh
09-25-2007, 06:04 PM
Fluffy,

Thanks for your response. I still must be missing something though. I have assigned both a Hair Mat and a Vray Mat(with polygon hair shader in lum channel) onto a polygon object, but I still don't get anything but a brown object when vray renders it.

Fluffy
09-25-2007, 06:13 PM
Did you set the Hair object to generate polygons?
Vray cannot render 2D hairs from the Hair material, only geometry.
So, make it generate "flat" hairs, for example.

winh
09-25-2007, 06:22 PM
That did the trick.

Thanks so much.

edub
09-25-2007, 08:28 PM
How can I determine the color of the hair? Is it the Hair Mat, or the Vray Mat (with Polygon Hair in Luminosity Color Channel) that determines the color?

I just get black color hair polys, even though I have both Hair Mat and Vray Mat colors as green.

Fluffy
09-25-2007, 08:30 PM
the polygon Hair shader is the one that sets the color.

Here is exactly what does what :
- Hair Object generates geometry
- Hair material deforms the Hair meshes (with curl, tappering, etc...)
- polygnal hair shader sets the color, specular, etc.. of the hair

edub
09-25-2007, 08:48 PM
thanks Fluffy,

but I must be doing something else wrong... I can't seem to get a color from the polygon hair shader.

Only the luminosity Layer is active? What should the Luminosity layer Transparency be set at?

edit:

I am also getting a totally blown out lighting when I add the hair objects/ mats... an otherwise perfectly lit scene is now mostly white, with black hair objects... I'm confused

Fluffy
09-25-2007, 10:12 PM
Sorry, I don't know why I was set on the luminosity channel.
Diffuse channel is fine for Hairs, luminosity will cast GIs.

edub
09-26-2007, 07:50 PM
here is a simple file with Hair object and Vray material w/ Polygon Hair as shader.

http://rapidshare.com/files/58673582/Vray_Hair_test.c4d.zip.html

Can someone please take a look and tell me why I can't get the hair objects to render with color?

- I would like to use the Vray Physical Sun+Sky light, if possible (shadows should be turned on)
- I would also like to use Vray Physical Camera.

Thanks :)

edub
09-27-2007, 07:12 PM
I have edited my post above to include a Vray Hair test scene that I can not get to render with colored hair.

please take a look, if someone knows how to help.

Fluffy
09-27-2007, 07:15 PM
I can't download the file, your sharing website seems to be overloaded.
Would you mind sending it by email at sf(at)pixiemedia.com?

Thanks!

Fluffy
09-28-2007, 03:27 AM
Sorry I took so long, having a 1½ year old girl at home kind of takes you over :)

I had a look at your file, but couldn't see why it was not working for you.
I made a file from scratch, and it is fine. Are you sure you installed the latest update?

Here is my sample file : Polygonal Hair Shader (http://www.fluffy4d.com/wp-content/uploads/2007/09/polygonal_hair.zip)

I hope this helps.

JDP
09-28-2007, 04:38 AM
edub, your hair shader was set to spherical mapping, make sure to set it to uvw for it to work correctly.

edub
09-28-2007, 07:38 AM
wow, mystery solved!

thanks guys :)