I am trying to use LOD groups in mental ray. But Mental Ray ignores them. I have also tried to create my
own “LOD type” expressions based on a group of objects where the group’s custom LOD attribute expression measures the distance between the camera and the group. The LOD attribute is then adjusted to 0,1 or 2 and the expressions on the objects then read that attribute to turn their visibility on or off.
It works well in the hardware display but mental ray ignores it in batch rendering. Mental ray only displays the object that was displayed on frame one, sometimes it will display the other object, but often incorrectly, and it never hides the first object.
Does this have something to do with the fact that Maya translates the scene into the mental ray file format and the expression based visibility is not being translated properly. If so how can I force a proper translation?