Forums > Jitter

OpenGL object clipping

Aug 13 2014 | 4:15 pm

Is there any way to tell whether an object is within the frustum of an OpenGL camera – in other words whether the object is on screen or off screen? I have a bunch of in a 3D space – each videoplane plays a movie, and I want to be able to stop the movie when the object is offscreen. (I’ve tried writing a javascript to do this, but my math skills are, um, limited, and it’s not working very well.) Figured I might be missing something, and that maybe there’s a more straightforward way to do this.

Aug 13 2014 | 10:46 pm

just brainstorming a bit here:

This is one of those projects that immediately has me thinking about jit.phys.*, with its collision/bounds detection stuff. If you could get the viewport "cone" into jit.phys you could detect when something’s leaving that cone/field of view.

Viewing 2 posts - 1 through 2 (of 2 total)

Forums > Jitter