Material ID does not work when OxHair is used.

 
 
 
Posted by:dontiti
Data created:31 May 2022

Hi,

Is there a way to set OxHair's material ID randomly?

I want to set the hair color randomly.

It can be randomized by using OxMeshFromStrands and rendering in the mesh state.

However, VrayHairMaterial does not work well in that condition.

So I want to render with VrayOrnatrixMod for OxHair.

I have tried several methods but have failed.

Converting a mesh to a guide after using ScatterRandomly on MeshFromStrand will result in the loss of the material ID setting.

The scene crashes when I try to set the strand ID using TagetData in OxGenerateGuideData.

 

can i please get some help. thanks!

(Sorry for my poor English.)

 

Version: Ornatrix 7.2.2 max 2021 Vray 5


Attached Files:
Image 1Image 2
>Hair_Mat_ID.max (475136 bytes),

Hi, Sorry for the delay.

I have to double check but I believe OxHair is deprecated. For any hair shading workflow you should use what your renderer provides. 

This tutorial is for VRay in Maya but the same can be done in VRay for Max. The idea is to use the VRayHairSampler to randomize the color by curve ID. You should also look into VRayHairInfoTex. MeshfromStrands is not needed.

However, I think the VRay hair shader includes parameters to randomize the colors. Did you try it? 

I will try to reproduce the crash with OxGenerateData. Notice that this will not give you what you need. 

Jeordanis Figuereo (Product Designer. EPHERE Inc.)

Thank you for your reply.

I will take a look at the tutorial you gave me.

I will ask again if I have any more questions. Thank you in advance.