Google

[WIP] Webcam Plugin

A place for users of OGRE to discuss ideas and experiences of utilitising OGRE in their games / demos / applications.

Moderators: OGRE Team, Moderators

Postby ShadeOgre » Thu May 29, 2008 2:57 pm

OgreSDK/Samples/Common/include (if you compile the source manually), but I think, if you use the precompiled SDK it's in the same dir (but im not sure). Anyway, this is in one of the ogreSDK's subdir, so search for it ;)
ShadeOgre
Regular
 
Posts: 152
Joined: Mon Mar 10, 2008 10:55 pm
Location: Budapest, Hungary

Postby westpointer » Wed Oct 22, 2008 2:39 pm

what the webcam is used for?
I downloaded Demo_Bin_WebcamPlugin, but have no idea how to use it, or how to make it works.
User avatar
westpointer
Regular
 
Posts: 62
Joined: Fri May 23, 2008 9:29 am

Postby outdoors » Wed Nov 12, 2008 3:01 pm

hi,

i'm trying to compile the source code with ming+ codeblocks but i get this error:

undefined reference to _imp___ZN4Ogre16WebcamController30getWebcamTextureByMaterialNameERKSs'

Someone knows what is this?

Thank you!
outdoors
Newcomer
 
Posts: 2
Joined: Wed Nov 12, 2008 2:33 pm

Missing Plugin_Webcam.lib

Postby crownin110 » Tue Nov 18, 2008 12:46 am

I've been attempting to use the webcam plugin for OGRE but I can't seem to find the Plugin_Webcam.lib. I tried compiling the source for the project in hopes that it would create the missing library, but I haven't been able to compile that because of an error I have been receiving. The error is located in the OgreExport ExternalTextureSourceManager.h line 51 and reads "error C2504: 'ResourceAlloc' : base class undefined. If anyone could either send me a link to the Plugin_Webcam.lib or maybe help me out with the error that would be really appreciated.
crownin110
Newcomer
 
Posts: 1
Joined: Fri Nov 14, 2008 3:10 pm

Re: [WIP] Webcam Plugin

Postby DrScorpion » Mon Jun 29, 2009 5:12 pm

Hi all,

I have compiled the plugin in VS2005 - so that it refers to header files from Mogre and loaded it in a Mogre project.

1. When I add the plugin in the plugins.cfg - and launch the application, it crashes. I assume perhaps it's due to some references that the Plugin_Webcam.dll is making. From the log I get the following

17:26:12: Loading library .\Plugin_Webcam
17:26:12: OGRE EXCEPTION(7:InternalErrorException): Could not load dynamic library .\Plugin_Webcam. System Error: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. in DynLib::load at ..\src\OgreDynLib.cpp (line 80)


2. Assuming that this is resolved, how would I access the classes defined in the plugin?

For example, WebCamController object is required.
ExternalTextureSourceManager.Singleton.SetCurrentPlugIn("webcam_video");
WebCamController webcamc = (WebCamController)ExternalTextureSourceManager.Singleton.CurrentPlugin;

Translated from Demo
ExternalTextureSourceManager::getSingleton().setCurrentPlugIn("webcam_video");
WebcamController* WebcamCtrl = (WebcamController*)ExternalTextureSourceManager::getSingleton().getCurrentPlugIn();

Thanks a lot ;-)
DrScorpion
Newcomer
 
Posts: 1
Joined: Mon Jun 29, 2009 4:46 pm

Re: [WIP] Webcam Plugin

Postby magichere » Fri Aug 14, 2009 1:44 am

I found out that The webcam plugin dosen`t work with the latest OGRE 1.6.3 , It`s work 1.4.9 .
magichere
Newcomer
 
Posts: 2
Joined: Wed Dec 03, 2008 2:40 am

Just switched to Ogre

Postby Incepcionizta » Fri Apr 16, 2010 5:55 am

Hi guys! :D Any updates on the plugin yet? Tnx! :D
Incepcionizta
Newcomer
 
Posts: 1
Joined: Fri Apr 16, 2010 5:45 am

Re: [WIP] Webcam Plugin

Postby Shago » Thu May 13, 2010 8:05 pm

I managed to make it work on Visual Studio 2008 with Ogre 1.7.1, Open CV 2.1 and PTypes 2.1.1 without much hazzle.
Great plugin.
Shago
Newcomer
 
Posts: 2
Joined: Thu May 13, 2010 7:53 pm

Re: [WIP] Webcam Plugin

Postby bwillers » Wed Jul 14, 2010 7:48 am

I'm trying to get this to build on VStudio 2010 but I keep getting bizarre errors seemingly coming from the standard libraries:

Code: Select all
1>  Webcam.cpp
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\complex(42): error C2039: '_C_double_complex' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\complex(42): error C2146: syntax error : missing ';' before identifier '_Dcomplex_value'
1>c:\program files (x86)\microsoft visual studio 10.0\vc\include\complex(42): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...


Anyone have any ideas on how to fix this?

Thanks
bwillers
Familiar face
 
Posts: 32
Joined: Mon Oct 26, 2009 11:08 pm

Previous

Return to Using OGRE in practice

Who is online

Users browsing this forum: Google [Bot] and 2 guests