I have a case where I'm raytracing in a lightmap shader and raytraced shadows are failing. Every object in the scene is set to cast shadows, but some objects weren't casting any shadows. It seems to be related to the camera's instance having a motion transformation. If I turn motion off, or remove the motion transformation from the camera then everything works. I should also mention it seems to be dependent upon the number of instances in the scene (although I've yet to figure out what the limit is), as when I select only a few instances to render they also render correctly (even with motion enabled). Changing the primary renderer from scanline to raytrace also works but introduces other problems (unrelated to this, perhaps I'll start another thread for that).
Is there anything I can do other than setting mi_state_set_pri (which is the only thing I'm aware of that needs to be done to be able to reliably raytrace from within a lightmap shader)?
Thanks in advance.