If an object(1) is located in a another object(2) with a volume material, the parts of the object(1) in the object(2) won't show up in the object index pass, although they are visible in the final render.
*Open the attached .blend file
*Render the image
*Goto the compositor
*In the lower viewer node, you should only see half of the object.
Blender:
============================================
version 2.56 (sub 0), revision 34076. Release
build date: 2011-01-04, 23:31:09
platform: Windows 7 32bit
OpenGL
============================================
renderer: GeForce 8600M GS/PCI/SSE2
vendor: NVIDIA Corporation
version: 3.3.0
Description
Description
Event Timeline
Comment Actions
it is not about if you find it visible, it's about the frontmost rendered entity in rendering. Also a near-zero transparent plane would give this result.
You can configure a render in separate layers to facilitate such passes better. Make one layer do "solid" only, and put the rest in another layer.