IrrAR - Irrlicht and Augmented Reality

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
Mizjaaa
Posts: 2
Joined: Sat Sep 13, 2008 1:08 pm

Post by Mizjaaa »

Can you please tell me, wich libraries i have to link, and where i can link them?

I am using Visual Studio 2005, and experimenting with augmented reality for a school project.

Tia
FreakNigh
Posts: 122
Joined: Thu Oct 19, 2006 7:31 am
Location: Orlando FL, USA
Contact:

Post by FreakNigh »

I use dev-cpp on windows though, maybe I should make a compiling on windows guide..
Image

CvIrrCamController - 3D head tracking lib to create window effect with webcam
IrrAR - Attach Irrlicht nodes to real life markers
http://www.nighsoft.com/
hexsex
Posts: 1
Joined: Mon Sep 15, 2008 9:23 pm

help needed

Post by hexsex »

hello! i'm running irrAr-0.3 under mac os x 10.5.2

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.
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:

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?
metalhead
Posts: 4
Joined: Mon Sep 22, 2008 5:42 pm

Post by metalhead »

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:
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
I use VS 08, by the way. I would be glad , if someone could tell me what exactly I am doing wrong!
metalhead
Posts: 4
Joined: Mon Sep 22, 2008 5:42 pm

Post by metalhead »

I solved it by myself by adding every lib through #pragma comment(lib, "*.lib").
Everything works fine now - thanks for your great work!
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

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:

Code: Select all

cannot find -lar 
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 :D

Any improvements to your loader?
afecelis
Admin
Posts: 3075
Joined: Sun Feb 22, 2004 10:44 pm
Location: Colombia
Contact:

Post by afecelis »

Here's a quick test using Freaknigh's loader:
http://www.youtube.com/watch?v=_cl2rWZzGLY
cheers!

Alvaro
kaos
Posts: 155
Joined: Tue Aug 12, 2008 8:25 pm
Location: Spain

Post by kaos »

¿what difference are there between opencv and artoolkit?
teamAlpha
Posts: 68
Joined: Sun Mar 08, 2009 4:14 pm

Post by teamAlpha »

Does this support face recognition algorithm?
(don't respond with "FAIL" / "EPIC FAIL" if my question was stupid :P)
Alpha::AppleBoy
BlindSide
Admin
Posts: 2821
Joined: Thu Dec 08, 2005 9:09 am
Location: NZ!

Post by BlindSide »

Only if your face looks like this:

Image

:lol:
ShadowMapping for Irrlicht!: Get it here
Need help? Come on the IRC!: #irrlicht on irc://irc.freenode.net
teamAlpha
Posts: 68
Joined: Sun Mar 08, 2009 4:14 pm

Post by teamAlpha »

BlindSide wrote:Only if your face looks like this:

Image

:lol:

:D :lol: ...
Alpha::AppleBoy
AndreasT
Posts: 8
Joined: Mon Jul 20, 2009 8:27 pm

Post by AndreasT »

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:

Code: Select all

	device = createDevice( video::EDT_DIRECT3D8, dimension2d<s32>(WIN_WIDTH, WIN_HEIGHT), 16, fullscreen, false, false, &receiver);
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.
AndreasT
Posts: 8
Joined: Mon Jul 20, 2009 8:27 pm

Post by AndreasT »

Aside of the double post, did I say something offensive?
No thread resurrections allowed here?
Wrong forum?
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

FreakNigh probably just didn't see your post yet, maybe send him a pm?
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Post by devsh »

I absolutely DARE YOU TO DO ANIMATED CHESS with this!
Post Reply