Re: [osg-users] Camera intrinsics

2011-04-06 Thread benedikt naessens
Keith Parkins wrote: After looking at this again, I am unclear as to whether you have built the projection matrix from the intrinsic parameters. I was assuming that you had made it by hand. To do that you would do something like this:

Re: [osg-users] Camera intrinsics

2011-04-06 Thread Keith Parkins
Hi Benedikt, I don't have time to look at this right now, but off the top of my head the sign difference that you noticed may be because I grabbed this from a reverse projection that I did (the projection was bounced off some mirrors to a back projection which in turn was viewed by looking into

Re: [osg-users] Camera intrinsics

2010-07-28 Thread Mourad Boufarguine
Hi Ricky, This link may help you : http://old.uvr.gist.ac.kr/wlee/web/techReports/ar/Camera%20Models.html http://old.uvr.gist.ac.kr/wlee/web/techReports/ar/Camera%20Models.html Mourad ___ osg-users mailing list osg-users@lists.openscenegraph.org

[osg-users] Camera intrinsics

2010-07-27 Thread Ricky Flintoff
Hi, I have a quick question. I looked up online on setting camera intrinsics (5 parameters, including radial distortion). Would I be using viewer.getCamera()-setProjectionMatrixAsPerspective(intrinsic_parameter_matrix)? Also, can I do this (with a different matrix) before rendering each frame?

Re: [osg-users] Camera intrinsics

2010-07-27 Thread Keith Parkins
Use camera-setProjectionMatrix(intrinsic_parameter_matrix); Not sure what you are trying to do with respect to the other question you have. On Tue, 27 Jul 2010, Ricky Flintoff wrote: Hi, I have a quick question. I looked up online on setting camera intrinsics (5 parameters, including radial

Re: [osg-users] Camera intrinsics

2010-07-27 Thread Ricky Flintoff
Thank you! I am essentially changing the view (using setViewMatrix) before rendering each frame. With each new view matrix, I have a different set of intrinsic parameters and I was wondering if I can set those again. In essence, can I repeatedly change intrinsic parameters of the camera?

Re: [osg-users] Camera intrinsics

2010-07-27 Thread Keith Parkins
After looking at this again, I am unclear as to whether you have built the projection matrix from the intrinsic parameters. I was assuming that you had made it by hand. To do that you would do something like this: //-//

Re: [osg-users] Camera intrinsics

2010-07-27 Thread Ricky Flintoff
Hi, Oh wow! Thank you very very much! Thank you! Cheers, Ricky -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30328#30328 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] Camera intrinsics

2010-07-27 Thread Ricky Flintoff
Hi, Sorry! I have a couple of more questions. Whats _near and _far? Also, is there any reference for these equations? Thank you again for your tremendous help. Cheers, Ricky -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30330#30330