Cycles Render Equivalent of "X-Ray" Function Thanks for taking the time to hear out my predicament.

So I'm trying to recreate some vg items, nbd, but I'm having trouble finding an answer (let alone a proper title for the question..) as to how you would make materials to jump ahead/in front of other materials like seen with the viewport's "X-ray" feature.


Cycles Viewport w/ X-ray on

Here's what I need: a material/object that fazes through another. I've been experimenting and backfacing comes close, but causes unsightly shadows and doesn't really work along the neck of the bottle. Really I'm just wanting the equivalent of what's seen on screen without ruining the basic diffuse, or the red material fazing though other objects besides the bottle.

(Bottle and Liquid are separate meshes)

Thanks again, any help is appreciated.
You can move liguid to second layer and create second render layer. After merge them in compositor.



In this case you can't use Material ID or Object ID, because liquid is in other object, or suzanne in cube in my case. But is good to know there is this possibility. 
Workflow: use "Pass Index" (material or object) for create mask and after use this mask to separate object in compositor.