ARToolKit mirror
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) |
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?
|
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. |
All times are GMT -7. The time now is 07:21 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC