Re: [osg-users] Setting Camera Properties

2010-03-01 Thread Yashodhan Nevatia
Hi Mourad, all,

Thanks a lot for the information. I took a look at the links, and it sort of 
helped.

At the moment I can see the objects in the correct place (shaded faces, 
wireframe), however any textures are not displayed correctly.

I am using the Single Point Active Alignment Method developed at the Technische 
Universitat Munich to solve for the camera parameters.

Thank you,

Yashodhan

- Original Message -
From: Mourad Boufarguine mourad.boufargu...@gmail.com
To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
Cc: Rares Ambrus r...@spaceapplications.com
Sent: Friday, February 26, 2010 1:51:19 PM GMT +01:00 Amsterdam / Berlin / Bern 
/ Rome / Stockholm / Vienna
Subject: Re: [osg-users] Setting Camera Properties



Hi Yashodhan, 

Take a look at this link 
http://old.uvr.gist.ac.kr/wlee/web/techReports/ar/Camera%20Models.html . It 
explains the relationship between the real and virtual camera parameters. 

Besides that, you may want to look at osgART. 

Mourad 


On Fri, Feb 26, 2010 at 1:02 PM, Yashodhan Nevatia  
yashodhan.neva...@spaceapplications.com  wrote: 


Hi everyone, 

I am pretty new to OSG, and have been trying to create an application that uses 
OSG for Augmented Reality. I am using OSG 2.8.1. 

In order for the augmented reality to be rendered properly, I need to set up 
the OSG camera with parameters for the human eye (the application uses an 
optical see through screen to display the augmented information, the 
background/reality is observed through the display). 

I am setting the position and orientation as the view matrix, this seems to 
work fine. 

What I am having some trouble with is setting up the projection matrix. As far 
as I know, this is where I have to include the internal parameters of the 
camera being modeled. 

For a simple set up this includes the focal distances (along the axes of the 
image plane) and the center of the image plane, and is described by the matrix: 

fx 0 cx 
0 fy cy 
0 0 1 


If anyone could help me out here, it would be greatly appreciated. 

Thank you, 

Yashodhan 


-- 
Yashodhan Nevatia 
Systems Engineer 

Space Applications Services 
Leuvensesteenweg 325 
B-1932 Zaventem 
Belgium 
Tel: +32 (0)2-721.54.84 
Fax: +32 (0)2-721.54.44 
URL: www.spaceapplications.com 
___ 
osg-users mailing list 
osg-users@lists.openscenegraph.org 
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org 


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

-- 
Yashodhan Nevatia
Systems Engineer

Space Applications Services
Leuvensesteenweg 325
B-1932 Zaventem
Belgium
Tel:  +32 (0)2-721.54.84
Fax:  +32 (0)2-721.54.44
URL: www.spaceapplications.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Setting Camera Properties

2010-03-01 Thread Mourad Boufarguine
Hi Yashodhan,

Since you see the objects in the right place, I think the problem is not the
camera pose. Can you send some screenshots so we can understand the problem
? Do you use osgART ? if not, how did you setup the HUD containing the video
?

Mourad


On Mon, Mar 1, 2010 at 5:10 PM, Yashodhan Nevatia 
yashodhan.neva...@spaceapplications.com wrote:

 Hi Mourad, all,

 Thanks a lot for the information. I took a look at the links, and it sort
 of helped.

 At the moment I can see the objects in the correct place (shaded faces,
 wireframe), however any textures are not displayed correctly.

 I am using the Single Point Active Alignment Method developed at the
 Technische Universitat Munich to solve for the camera parameters.

 Thank you,

 Yashodhan

 - Original Message -
 From: Mourad Boufarguine mourad.boufargu...@gmail.com
 To: OpenSceneGraph Users osg-users@lists.openscenegraph.org
 Cc: Rares Ambrus r...@spaceapplications.com
 Sent: Friday, February 26, 2010 1:51:19 PM GMT +01:00 Amsterdam / Berlin /
 Bern / Rome / Stockholm / Vienna
 Subject: Re: [osg-users] Setting Camera Properties



 Hi Yashodhan,

 Take a look at this link
 http://old.uvr.gist.ac.kr/wlee/web/techReports/ar/Camera%20Models.html .
 It explains the relationship between the real and virtual camera parameters.

 Besides that, you may want to look at osgART.

 Mourad


 On Fri, Feb 26, 2010 at 1:02 PM, Yashodhan Nevatia 
 yashodhan.neva...@spaceapplications.com  wrote:


 Hi everyone,

 I am pretty new to OSG, and have been trying to create an application that
 uses OSG for Augmented Reality. I am using OSG 2.8.1.

 In order for the augmented reality to be rendered properly, I need to set
 up the OSG camera with parameters for the human eye (the application uses an
 optical see through screen to display the augmented information, the
 background/reality is observed through the display).

 I am setting the position and orientation as the view matrix, this seems to
 work fine.

 What I am having some trouble with is setting up the projection matrix. As
 far as I know, this is where I have to include the internal parameters of
 the camera being modeled.

 For a simple set up this includes the focal distances (along the axes of
 the image plane) and the center of the image plane, and is described by the
 matrix:

 fx 0 cx
 0 fy cy
 0 0 1


 If anyone could help me out here, it would be greatly appreciated.

 Thank you,

 Yashodhan


 --
 Yashodhan Nevatia
 Systems Engineer

 Space Applications Services
 Leuvensesteenweg 325
 B-1932 Zaventem
 Belgium
 Tel: +32 (0)2-721.54.84
 Fax: +32 (0)2-721.54.44
 URL: www.spaceapplications.com
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 --
 Yashodhan Nevatia
 Systems Engineer

 Space Applications Services
 Leuvensesteenweg 325
 B-1932 Zaventem
 Belgium
 Tel:  +32 (0)2-721.54.84
 Fax:  +32 (0)2-721.54.44
 URL: www.spaceapplications.com
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Setting Camera Properties

2010-02-26 Thread Yashodhan Nevatia
Hi everyone,

I am pretty new to OSG, and have been trying to create an application that uses 
OSG for Augmented Reality. I am using OSG 2.8.1.

In order for the augmented reality to be rendered properly, I need to set up 
the OSG camera with parameters for the human eye (the application uses an 
optical see through screen to display the augmented information, the 
background/reality is observed through the display).

I am setting the position and orientation as the view matrix, this seems to 
work fine.

What I am having some trouble with is setting up the projection matrix. As far 
as I know, this is where I have to include the internal parameters of the 
camera being modeled. 

For a simple set up this includes the focal distances (along the axes of the 
image plane) and the center of the image plane, and is described by the matrix:

fx   0cx
0fy   cy
001


If anyone could help me out here, it would be greatly appreciated.

Thank you,

Yashodhan


-- 
Yashodhan Nevatia
Systems Engineer

Space Applications Services
Leuvensesteenweg 325
B-1932 Zaventem
Belgium
Tel:  +32 (0)2-721.54.84
Fax:  +32 (0)2-721.54.44
URL: www.spaceapplications.com
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Setting Camera Properties

2010-02-26 Thread Mourad Boufarguine
Hi Yashodhan,

Take a look at this link
http://old.uvr.gist.ac.kr/wlee/web/techReports/ar/Camera%20Models.html . It
explains the relationship between the real and virtual camera parameters.

Besides that, you may want to look at osgART.

Mourad

On Fri, Feb 26, 2010 at 1:02 PM, Yashodhan Nevatia 
yashodhan.neva...@spaceapplications.com wrote:

 Hi everyone,

 I am pretty new to OSG, and have been trying to create an application that
 uses OSG for Augmented Reality. I am using OSG 2.8.1.

 In order for the augmented reality to be rendered properly, I need to set
 up the OSG camera with parameters for the human eye (the application uses an
 optical see through screen to display the augmented information, the
 background/reality is observed through the display).

 I am setting the position and orientation as the view matrix, this seems to
 work fine.

 What I am having some trouble with is setting up the projection matrix. As
 far as I know, this is where I have to include the internal parameters of
 the camera being modeled.

 For a simple set up this includes the focal distances (along the axes of
 the image plane) and the center of the image plane, and is described by the
 matrix:

 fx   0cx
 0fy   cy
 001


 If anyone could help me out here, it would be greatly appreciated.

 Thank you,

 Yashodhan


 --
 Yashodhan Nevatia
 Systems Engineer

 Space Applications Services
 Leuvensesteenweg 325
 B-1932 Zaventem
 Belgium
 Tel:  +32 (0)2-721.54.84
 Fax:  +32 (0)2-721.54.44
 URL: www.spaceapplications.com
 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org