X Ray tests (Patreon)
Content
I would like to add xray views at some point, so I've been doing tests with the best way to set that up.
The easiest way would to just be model a cross section and then use that, but then I've either got to rotate the cross section constantly, or only do x-ray stuff from one angle. I'm not a big fan of that, so I've been trying to do it with shaders.
My current test is two shaders, one for the outer edge, that is flat, and one for the inner part that cuts off anything facing the camera. If seems to work alright when zoomed out a bit, but getting to close it kinda breaks with perspective a bit.
the unshaded cross section in maya:
Test of the shaders in Unreal engine:
And here's what happens if I get the camera too close. You can see how I'm faking this more apparently:
This is something I'll keep playing with. As I really want to make it look cool if I'm going to include it!
P.S. Animating it, I think I've already got working alright!