Results 1 to 4 of 4

Thread: state->parent on shadow segments - mental ray 3.14 - Maya 2017

  1. #1
    Join Date
    Apr 2012
    Posts
    4

    Default state->parent on shadow segments - mental ray 3.14 - Maya 2017

    Hi there,

    When running mental ray 3.14 on Maya 2017 the shadow segments mode seem to be broken.
    In a shadow shader, I was able to get state->parent->type == miRAY_LIGHT, but now no longer works. state->parent->type always returns miRAY_SHADOW.

    Workarounds ?


    Martin

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

    Default

    We have been changing some things with shadow segments. Checking in with devs to see if this means a change in shader api.
    Barton Gawboy

  3. #3
    Join Date
    Apr 2012
    Posts
    4

    Default

    Cool. I use state->parent->type == miRAY_LIGHT in a shadow shader to be able to identify the first shadow segment. Seems that the new russian-roulette feature implemented in mental ray 3.14 for these shadows, ended up breaking something in its state's history.


    Martin

  4. #4
    Join Date
    Dec 2004
    Location
    Marina Del Rey, California
    Posts
    4,143

    Default

    yeah, I recall mila having to adjust when getting information for debugging shadow seg depth, now that you mention that. It's not in there anymore, but I seem to recall having to go down the segment chain once more to do proper counting of seg depth.

    And again, I'm checking with the devs on this.
    Barton Gawboy

Posting Permissions

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