Results 1 to 4 of 4

Thread: How to skip tracing hair

  1. #1
    Join Date
    Aug 2011
    Posts
    20

    Default How to skip tracing hair

    Hi all,

    I'm trying to find a way to make ray skip hairs to find light sources around hairs.

    It is simple to ignore hairs by writing a custom hair shader that just calls mi_trace_continue, but if there is a bunch of hairs in the scene, it soon results in stack overflow (or lacking of trace depth).

    Another idea is to use mi_trace_probe_x with appropriate trace flag, but in my experiment, mi_trace_probe_x hits hairs even if trace flag is zero.

    Is there any way to achieve this goal?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2004
    Location
    Marina Del Rey, California
    Posts
    2,913

    Default

    Light sources? Do you mean indirect light sources, or light from objects? Or light from visible area lights?

    I assume so, because direct lights are easy to work with. And by using user ibl env, an environment can become a direct light.

    We're looking into the hair flag issue with mi_trace_probe_x, as that was reported in another thread recently.
    Barton Gawboy
    Training and Special Projects, NVIDIA ARC
    LAmrUG Forum Originator

  3. #3
    Join Date
    Aug 2011
    Posts
    20

    Default

    Thanks bart,

    By light sources, I mean indirect light sources.

    When I was testing mi_trace_probe_x, I couldn't find any thread in this forum regarding to both hairs and mi_trace_probe_x.
    I'd appreciate it if you let me know about the thread.

  4. #4
    Join Date
    Dec 2004
    Location
    Moscow, Russia
    Posts
    346

    Default

    It's old mr bug with mib_continue + hair.
    You may view some possible workaround here:
    http://forum.mentalimages.com/showthread.php?5224
    Pavel Ledin

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •