IrrAR - Irrlicht and Augmented Reality
I use dev-cpp on windows though, maybe I should make a compiling on windows guide..
CvIrrCamController - 3D head tracking lib to create window effect with webcam
IrrAR - Attach Irrlicht nodes to real life markers
http://www.nighsoft.com/
help needed
hello! i'm running irrAr-0.3 under mac os x 10.5.2
when tried to launch test.cpp i got:
and it crashed.
so i've changed
armgr->beginCamera("ardata/camera_para.dat","ardata/WDM_camera_flipV.xml", "-dev=/dev/video0");
to
armgr->beginCamera("ardata/camera_para.dat","ardata/WDM_camera_flipV.xml", "");
this time camera dialog opened, i've chosen the camera and got a black window with the following messages in console:
when tried to launch test.cpp i got:
Code: Select all
Using supplied video config "-dev=/dev/video0".
ARVideo may be configured using one or more of the following options,
separated by a space:
-nodialog
Don't display video settings dialog.
-width=w
Scale camera native image to width w.
-height=h
Scale camera native image to height h.
-fps
Overlay camera frame counter on image.
-grabber=n
With multiple QuickTime video grabber components installed,
use component n (default n=1).
N.B. It is NOT necessary to use this option if you have installed
more than one video input device (e.g. two cameras) as the default
QuickTime grabber can manage multiple video channels.
-pixelformat=cccc
Return images with pixels in format cccc, where cccc is either a
numeric pixel format number or a valid 4-character-code for a
pixel format.
The following numeric values are supported:
24 (24-bit RGB), 32 (32-bit ARGB), 40 (8-bit grey) The following 4-character-codes are supported:
BGRA, RGBA, ABGR, 24BG, 2vuy, yuvs.
(See http://developer.apple.com/quicktime/icefloe/dispatch020.html.)
-fliph
Flip camera image horizontally.
-flipv
Flip camera image vertically.
-singlebuffer
Use single buffering of captured video instead of triple-buffering.
so i've changed
armgr->beginCamera("ardata/camera_para.dat","ardata/WDM_camera_flipV.xml", "-dev=/dev/video0");
to
armgr->beginCamera("ardata/camera_para.dat","ardata/WDM_camera_flipV.xml", "");
this time camera dialog opened, i've chosen the camera and got a black window with the following messages in console:
Code: Select all
Your camera images are coming in a format that hasn't been coded for yet
If you would like the help make support for this image format please visit irrAR.cpp at the update_ITexture function
and get in contact with freaknigh gmail.com (project leader)
AR_DEFAULT_PIXEL_FORMAT:7
AR_PIXEL_FORMAT_RGB:1
AR_PIXEL_FORMAT_BGR:2
AR_PIXEL_FORMAT_RGBA:3
AR_PIXEL_FORMAT_BGRA:4
/[code]
i've tried different pixel formats and 2 cameras (built in eyesight and dv via firewire) - all the same..
do you guys know what the problem can it be?
Hi!
I've just tried to create a new IrrAR project using the already given sourcecode.
But I've got the same problem as Mizjaaa though I linked the libraries properly (at least I think so )
Here is the list of errors I get:
I've just tried to create a new IrrAR project using the already given sourcecode.
But I've got the same problem as Mizjaaa though I linked the libraries properly (at least I think so )
Here is the list of errors I get:
I use VS 08, by the way. I would be glad , if someone could tell me what exactly I am doing wrong!1>Linking...
1>irrAR.obj : error LNK2001: unresolved external symbol _arParamDecompMat
1>irrAR.obj : error LNK2001: unresolved external symbol _arVideoInqSize
1>irrAR.obj : error LNK2001: unresolved external symbol _arMultiGetTransMat
1>irrAR.obj : error LNK2001: unresolved external symbol _arVideoOpen
1>irrAR.obj : error LNK2001: unresolved external symbol _arParamDisp
1>irrAR.obj : error LNK2001: unresolved external symbol _arDetectMarker
1>irrAR.obj : error LNK2001: unresolved external symbol _arMultiReadConfigFile
1>irrAR.obj : error LNK2001: unresolved external symbol _arVideoCapStart
1>irrAR.obj : error LNK2001: unresolved external symbol _arVideoGetImage
1>irrAR.obj : error LNK2001: unresolved external symbol _arVideoCapNext
1>irrAR.obj : error LNK2001: unresolved external symbol _arInitCparam
1>irrAR.obj : error LNK2001: unresolved external symbol _arParamChangeSize
1>irrAR.obj : error LNK2001: unresolved external symbol _arParamLoad
1>irrAR.obj : error LNK2001: unresolved external symbol _arLoadPatt
1>irrAR.obj : error LNK2001: unresolved external symbol _arGetTransMat
Freaknigh, I'm trying to compile your project in devc++. Your binary version runs fine, my camera is detected properly and I can see sydney. After linking to the adequate libraries and changing some relative paths to absolute I was able to reduce the errors, but now when trying to compile I get this error:
And checking the project's options I also see larmulti and larvideo in its parameters. Which libraries are these? Where can I find them?
I presume they're the Artoolkit libraries but the only .a file is the one in yours and artooolkit's "multi" folder.
sorry for bumping into this thread, but I'm very interested in being able to compile it.
regards,
Alvaro
EDITED:Nevermind, I found the Artoolkit devpack from the community packages for devc++ and it installed the libraries I was missing. The project compiles and runs fine now, however image freezes and after a while changes to freeze again. Video is not as smooth as when running artooolkit's simpletest. Any ideas?
EDITED2: nevermind, again it starts moving once it detects the pattern
Any improvements to your loader?
Code: Select all
cannot find -lar
I presume they're the Artoolkit libraries but the only .a file is the one in yours and artooolkit's "multi" folder.
sorry for bumping into this thread, but I'm very interested in being able to compile it.
regards,
Alvaro
EDITED:Nevermind, I found the Artoolkit devpack from the community packages for devc++ and it installed the libraries I was missing. The project compiles and runs fine now, however image freezes and after a while changes to freeze again. Video is not as smooth as when running artooolkit's simpletest. Any ideas?
EDITED2: nevermind, again it starts moving once it detects the pattern
Any improvements to your loader?
Here's a quick test using Freaknigh's loader:
http://www.youtube.com/watch?v=_cl2rWZzGLY
cheers!
Alvaro
http://www.youtube.com/watch?v=_cl2rWZzGLY
cheers!
Alvaro
Only if your face looks like this:
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
Hi there.
I tried IrrAr on my WinXP system with VS2005
but ran into a problem:
ARToolkit as well as Irrlicht are there, compile fine and samples work.
The demo exe of irrar crashed without a comment though.
I Made a new Project, added test.cpp, irrar.cpp irrar.h from irrar package
to it.
This also compiles fine.
I run it in the standard form and it died. I am somewhat wary of the Intel
OpenGL implementation, changed the line in test.cpp tp this:
With that I get a Camera window, but still a crash.
I debugged a little, noticing, that somehow the picture size seems wrong.
max_pixels was more than 100k pixels with a 320x240 cam image.
I hardcoded max_pixels to 320x240, and voila. no crashes.
I now get a Window with an unfortunately scrambled image.
(not wrong color, ...scrambled.) But it is the cam image, because
the initial gradual picture change by the camera's automatic white balance
is noticeable.
I meddled aimlessly in IARManager::update_ITexture, but the gods of
programming were mispleased with my trial&error-demon worship today.
I guess there's something amiss in the collaboration of IrrAR frame-grab code taylored for OpenGL and the Direct3D8 Texture format.
Can someone shed a little light on this, please?
what does the direct3d texture format look like?
what is really expected by IrrAR?
Could the strange size setting of the camera mess up more than meets my tired eye?
EDIT: I forgot to add: somewhere in the compiling problems was of course the problem of resources not found, but I just copied the media and stuff directories from IrrAR over in my project directory.
I tried IrrAr on my WinXP system with VS2005
but ran into a problem:
ARToolkit as well as Irrlicht are there, compile fine and samples work.
The demo exe of irrar crashed without a comment though.
I Made a new Project, added test.cpp, irrar.cpp irrar.h from irrar package
to it.
This also compiles fine.
I run it in the standard form and it died. I am somewhat wary of the Intel
OpenGL implementation, changed the line in test.cpp tp this:
Code: Select all
device = createDevice( video::EDT_DIRECT3D8, dimension2d<s32>(WIN_WIDTH, WIN_HEIGHT), 16, fullscreen, false, false, &receiver);
I debugged a little, noticing, that somehow the picture size seems wrong.
max_pixels was more than 100k pixels with a 320x240 cam image.
I hardcoded max_pixels to 320x240, and voila. no crashes.
I now get a Window with an unfortunately scrambled image.
(not wrong color, ...scrambled.) But it is the cam image, because
the initial gradual picture change by the camera's automatic white balance
is noticeable.
I meddled aimlessly in IARManager::update_ITexture, but the gods of
programming were mispleased with my trial&error-demon worship today.
I guess there's something amiss in the collaboration of IrrAR frame-grab code taylored for OpenGL and the Direct3D8 Texture format.
Can someone shed a little light on this, please?
what does the direct3d texture format look like?
what is really expected by IrrAR?
Could the strange size setting of the camera mess up more than meets my tired eye?
EDIT: I forgot to add: somewhere in the compiling problems was of course the problem of resources not found, but I just copied the media and stuff directories from IrrAR over in my project directory.