WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   ARToolKit mirror (https://forum.worldviz.com/showthread.php?t=2136)

skywalkerbr 07-08-2009 08:55 AM

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)

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.


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