ARToolKit | Mailing List Archive |
![]() |
From: | Stephen DiVerdi <sdiverdi@c ..........> | Received: | Mar 26, 2003 |
To | anderaus@s ........... | ||
Subject: | Re: ARToolkit and MFC | ||
The integration isn't that tight - all the GLUT functionality I could find was in SRC/Gl/gsub.c...I haven't gotten the toolkit to use MFC, but I did switch it from GLUT to SDL, which I imagine was largely similar modifications to what you'll need to do. As I recall, the most important thing you'll need to change is the argInit call, which does some camera parameter initialization and then calls argInit2 to do the GLUT initialization. What I did is took the call to argInit2 out of argInit, renamed argInit2 to argInitContext, and then changed it from initializing GLUT to initialize SDL. The other calls you need to change are easy...argCleanup and argSwapBuffers need fixing. If you want to use the ARToolkit GLUT-style event loop, you'd need to fix up argMainLoop, but it would probably be easier to just make your own main loop for MFC style event handling (I'm totally unfamiliar with MFC, so I don't know). Does that help you out some? -steve diverdi -sdiverdi@c .......... > Hello everyone > > The last couple of days I have been messing around trying to implement > an MFC version of ARToolKit, but I've come to a complete halt because of > the tight integration between ARToolKit and GLUT. > > Has anyone succeeded using ARToolKit with MFC? Any help would be > appreciated. > > Thank you, > > Anders Austad > > |
From: | Stephen DiVerdi <sdiverdi@c ..........> | Received: | Mar 26, 2003 |
To | anderaus@s ........... | ||
Subject: | Re: ARToolkit and MFC | ||
The integration isn't that tight - all the GLUT functionality I could find was in SRC/Gl/gsub.c...I haven't gotten the toolkit to use MFC, but I did switch it from GLUT to SDL, which I imagine was largely similar modifications to what you'll need to do. As I recall, the most important thing you'll need to change is the argInit call, which does some camera parameter initialization and then calls argInit2 to do the GLUT initialization. What I did is took the call to argInit2 out of argInit, renamed argInit2 to argInitContext, and then changed it from initializing GLUT to initialize SDL. The other calls you need to change are easy...argCleanup and argSwapBuffers need fixing. If you want to use the ARToolkit GLUT-style event loop, you'd need to fix up argMainLoop, but it would probably be easier to just make your own main loop for MFC style event handling (I'm totally unfamiliar with MFC, so I don't know). Does that help you out some? -steve diverdi -sdiverdi@c .......... > Hello everyone > > The last couple of days I have been messing around trying to implement > an MFC version of ARToolKit, but I've come to a complete halt because of > the tight integration between ARToolKit and GLUT. > > Has anyone succeeded using ARToolKit with MFC? Any help would be > appreciated. > > Thank you, > > Anders Austad > > |
From: | anderaus@s ........... | Received: | Mar 26, 2003 |
To | artoolkit@h .................. | ||
Subject: | ARToolkit and MFC | ||
Hello everyone The last couple of days I have been messing around trying to implement an MFC version of ARToolKit, but I've come to a complete halt because of the tight integration between ARToolKit and GLUT. Has anyone succeeded using ARToolKit with MFC? Any help would be appreciated. Thank you, Anders Austad |
From: | anderaus@s ........... | Received: | Mar 26, 2003 |
To | artoolkit@h .................. | ||
Subject: | ARToolkit and MFC | ||
Hello everyone The last couple of days I have been messing around trying to implement an MFC version of ARToolKit, but I've come to a complete halt because of the tight integration between ARToolKit and GLUT. Has anyone succeeded using ARToolKit with MFC? Any help would be appreciated. Thank you, Anders Austad |
From: | "Emmanuel Dubois (IRIT)" <Emmanuel.Dubois@i ......> | Received: | Mar 27, 2003 |
To | Stephen DiVerdi <sdiverdi@c ..........>, anderaus@s ........... | ||
Subject: | Re: ARToolkit and MFC | ||
Hello, I was also thionking at using ARtoolkit with MFC but havn't done anything yet. I was just wondering if the ARFrameGrabber functionnalities were linked with GLUT . Does anyone know if ARFrameGrabber are linked with GLUT or not ? Thanks, E.D. At 11:11 26/03/2003 -0800, Stephen DiVerdi wrote: >The integration isn't that tight - all the GLUT functionality I could find >was in SRC/Gl/gsub.c...I haven't gotten the toolkit to use MFC, but I did >switch it from GLUT to SDL, which I imagine was largely similar >modifications to what you'll need to do. > >As I recall, the most important thing you'll need to change is the argInit >call, which does some camera parameter initialization and then calls >argInit2 to do the GLUT initialization. What I did is took the call to >argInit2 out of argInit, renamed argInit2 to argInitContext, and then >changed it from initializing GLUT to initialize SDL. > >The other calls you need to change are easy...argCleanup and >argSwapBuffers need fixing. If you want to use the ARToolkit GLUT-style >event loop, you'd need to fix up argMainLoop, but it would probably be >easier to just make your own main loop for MFC style event handling (I'm >totally unfamiliar with MFC, so I don't know). > >Does that help you out some? > >-steve diverdi >-sdiverdi@c .......... > > > > Hello everyone > > > > The last couple of days I have been messing around trying to implement > > an MFC version of ARToolKit, but I've come to a complete halt because of > > the tight integration between ARToolKit and GLUT. > > > > Has anyone succeeded using ARToolKit with MFC? Any help would be > > appreciated. > > > > Thank you, > > > > Anders Austad > > > > |