3D Clipping...

Started by
-1 comments, last by dalep 18 years, 7 months ago
Hi. I'm trying to create the effect of a crystal ball or holographic projector or whatever where I have a spherical window into another scene. And the center of that sphere, while stationary "out here" can move around "in there" and the scale can change, etc. And, newb that I am, I can't come up with a good, generalized way to clip the "in there" scene. There's a ton of different things that could be displayed and I don't want to write clipping logic for each of them. It would be much simpler to apply those rules in the outer context. I've considered rendering to a surface and then masking a circle out of that but maybe some of the smart folks here can think of something better. It seems like a perfect application for effects/HLSL, yeah? Just pass in my sphere radius and bounce any vertices that fall outside it. Could even do a fading effect the closer to the sphere bounds the vertex is. Maybe I just answered my own question but I'd be grateful for any additional insights.

This topic is closed to new replies.

Advertisement