View unanswered posts | View active topics It is currently Sun May 16, 2021 6:41 am



Reply to topic  [ 2 posts ] 
 Move the object not the camera 
Author Message

Joined: Wed Nov 30, 2011 4:36 pm
Posts: 2
Post Move the object not the camera
Good afternoon to every one, some weeks ago I was trying to make my own example of augmented reality using OpenCv and OpenGl, looking for information in forums I knew GLC lib, and it has been really useful, I attached a picture of what I have done, what i did is to show the 3D object and show the camera in the background, also you can move the 3D object (a plane in this case) position with a green object and you can make it rotates with a red object (I did it using openCv), but I got a problem, I'm using the "GLC_MoverController" but it really moves the camera not the object, so when you translate (using pan as setActiveMover) and then you rotates the object (using TrackBall) it does not rotate in it's own center (pivot) it rotates using the center of the image as pivot. Is it possible to move the object and makes it rotate in it's own center as it does when it's in the initial position?

By the way I'm sorry if I'm not enough clear, the English is not my main language and it's hard to write about such as technical topic. I will make a tutorial about how to do it, but I would like to finish it first.


Attachments:
File comment: That's what I'm trying to avoid
exampleTwo.png
exampleTwo.png [ 42.06 KiB | Viewed 7866 times ]
File comment: Aumented Reality
AR.jpg
AR.jpg [ 33.7 KiB | Viewed 7866 times ]
Wed Nov 30, 2011 4:58 pm
Profile

Joined: Wed Nov 30, 2011 4:36 pm
Posts: 2
Post Re: Move the object not the camera
Soved using: viewtopic.php?f=4&t=702


Sat Dec 03, 2011 8:18 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.