Forums > Jitter

jit.gl.render – filter based on what is 'on camera'

March 30, 2006 | 1:21 am

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


March 31, 2006 | 2:42 am

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


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