Announcement

Collapse
No announcement yet.

sprite particle Id

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • sprite particle Id

    Hi !
    For a shader i'm writing, i need to retrieve the id of the particle being shaded.
    I'm using VRayContext.faceIndex for points and spheres but it doesn't work for sprites (the function seems to return the face index of the sprite itself)
    Is there another function i shoud use in this case ?

    Thanks in advance !
    Chervin SHAFAGHI
    CG Supervisor at CGEV, Paris.

  • #2
    Hello,
    Our particle primtives write the particle index in rc.rayresult.extra0, that should work for all particle types.

    Best regards,
    Deyan (V-Ray for Maya developer)
    Deyan Spirov
    V-Ray for Maya developer

    Comment


    • #3
      Thanks a lot i'll try that !
      Chervin SHAFAGHI
      CG Supervisor at CGEV, Paris.

      Comment

      Working...
      X