How to set the positon of the projection plane in OpenGL?

It might help if you explain what you are trying to do.

Asymmetric frustum, stereo rendering, depth of field?

The word focus has no firm meaning in basic graphics rendering.

Give us info on the algorithm, we’re all grown up, we can handle it.

<insult deleted by moderator>, he is trying to do exactly what he says, set the position of the projection plane. In OpenGL the projection plane is set by the near parameter value to glFrustum. Unfortunately this means you can’t change the focal length without affecting z-buffer mapping.

then he got his answer on the 2nd reply, [insult response deleted by knackered].
incidentally, opengl imposes no such limitations. a matrix is a matrix.

Give us info on the algorithm, we’re all grown up, we can handle it.
btw theres code in the opengl FAQ on how to extract the near clip plane from opengl

Originally posted by foobar:
, he is trying to do exactly what he says, set the position of the projection plane. In OpenGL the projection plane is set by the near parameter value to glFrustum. Unfortunately this means you can’t change the focal length without affecting z-buffer mapping.
That’s so obvious, it can’t be the answer.
He is working on an algorithm which needs the focal length.

foobar, I deleted your insult, watch your tone in future please.

There’s a huge assumption in your reply that has absolutely no basis in the original post, not only is it a wild guess but it’s very likely to be wrong unless you know something we don’t.

The original poster needs to supply more information and be much more specific.

V-man, there is nothing obvious about foobar’s zbuffer non-sequitur.

hawaii is long gone. Like Batman into the night.
I fear we shall never know what his grand plan was.

What I understood of this thread is that hawaii wants to know how to set up his projection matrix, all in a polite manner. English doesn’t seem to be his native language, yet he took the time to format it properly.


Am I the only one concerned about the OpenGL forums descending into an anarchic melee? This used to be a neutral place. I for one have become a lot more reluctant to post my questions here.

I think it is a real shame that the some of the most knowledgeable people around here seem to be the culprits.

I don’t know what you’re talking about. Nobody was in any way aggressive (except for foobar).
Hawaii got his answer and was perfectly happy. He thanked me and went on his merry way.
If you think this is anarchic, you’ve lived a very sheltered life.
If you’re referring to dorbie, then he has a point - focus does have no meaning in OpenGL. He’s got an enquiring mind, just wanted to know more about what hawaii wanted to achieve. He was polite, but firm. Hawaii (and you) should be delighted someone took a real interest in his question. It’s a clear demonstration of the exceptional value of this forum, not the opposite as you’re trying to claim.

I’m not disputing the value of this forum at all, I was just worried about the somewhat hostile attitude of some posters recently, and felt I had to say this. I wasn’t referring to Dorbie.

Thanks.

remdul, I don’t think any of this was intended as mean spirited, you have to hang out here a bit before you realize how special it is to see knackered post code. The rest of the chatter was just OT banter, I don’t think anyone had a go at the original poster, if they had I would have acted accordingly. As for hawaii, he’s welcome back any time to flesh out the details.

Originally posted by dorbie:
how special it is to see knackered post code.
that’s exactly what i thought.

Originally posted by dorbie:
The rest of the chatter was just OT banter
which i hope didn’t offend anyone. i really think we should have an offtopic thread here where people can chill out…if we had such a thread, the other threads would probably be “cleaner”

charming, anyone would think I never contribute anything round here.
Actually, fair point.

oh nooo- that’s not what i wanted to say. i’ve seen lots of contribution from you- but rarely code.

and i have to admit, of all of your posts, the ones in which you reply to someone who asks if somebody can post code to solve his special problem are way more entertaining and therefore stay in my mind for a longer time :wink:

Yep, more often than not knackared is getting hot & bothered at someone for daring to ask for code! You’d think they were reaching over onto his hard drive and stealing his precious bodily fluids :slight_smile:

(If you don’t get the reference just move on, it’s still not biblical).

you should not joke about stealing bodily fluids- don’t you know the story of boris becker and that russian model whose name i do not remember :stuck_out_tongue:

about giving away code: we’ve seen more than a few guys here who obviously wanted to have their homework done by the community. one day i even received an email by someone called “jasmin”, who wanted me to code something absolutely noobish for her. here i agree with knackered: i do not spend even 5 minutes because somebody else is too lazy to do his homework.

Ok, Dr. Strangelove, it was easier than I expected :wink:

Dorbie, everything we needed to know was in the title of his post, hence the highly appropriate, but deleted, description of the ‘help’ being provided.
(For future reference it is always safe for you to assume I know something you don’t :slight_smile: )

And V-man, perhaps I didn’t make it completely clear, in pin-hole projection the focal length is the distance to the projection plane (which is the near plane in OpenGL).

I’m procrastinating on a problem of my own, so I’ve done all the hoovering, all the washing, re-arranged my front room, and pasted code onto a forum. What else can I do to distract me from the real issue at hand???
Have you tried washing the dishes? I find that to be very relaxing. I’ve had some of my greatest inspirations while giving a greasy pan a good scrub.