PDA

View Full Version : ARToolKit mirror


skywalkerbr
07-08-2009, 08:55 AM
Hi every one!
How can I flip a image from a webcam like a mirror, for artoolkit?
I have this code:
import viz
viz.go()

#Add ARToolkit extension
ar = viz.add('artoolkit.dle')

#Create camera using first available webcam
camera = ar.addWebCamera()

#Create marker from pattern file
marker = camera.addMarker('ar/taca',width=1000)

#Add logo model
ball = viz.add('Taca_Fifa_AR.wrl',pos=(200,200,-400),cache=viz.CACHE_CLONE)
ball.setScale(0.1,0.1,0.1);

pic = viz.addTexture('Sb_Taca.jpg')


ball.texture(pic)


#Link logo model to marker sensor
viz.link(marker,ball)
ball.setPosition(200,200,0)

farshizzo
07-09-2009, 01:03 PM
If you mirror the image, then the computed position of the markers won't match what is displayed on screen. Can you explain what you are trying to achieve?

skywalkerbr
07-13-2009, 12:24 PM
Thanks for replying.
I want to mirror computed position of the markers too. So the effect will be the same as a mirror.
Like a "magic mirror" where the reality is augmented.