jit.gl.render - filter based on what is 'on camera'
HI everyone.
I've been thinking about trying to do a bunch of things to some geometry depending on whether it's actually being drawn in the window or not (whether it's in the camera view or not), and I can't think of a way to do it. Does anyone have any ideas? I've figured out that you could take the camera lens angle, camera view info, and position, and use these to work out which values in each cell were 'on-screen' or not. I have to admit, though, that i'm not entirely sure how best to do this. SO if you were looking at part of a square and altering the color etc., only the values you were seeing from that point of view would change.
has anyone done this sort of thing? Any thought would be appreciated..
Cheers
Mickster
You're referring to view frustum culling and (at least as far as I know), Jitter has no built-in methods for this. So you'll have to roll your own. There's a good tutorial that should get you started at: http://www.lighthouse3d.com/opengl/viewfrustum/
- pH