WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-08-2009, 08:55 AM
skywalkerbr skywalkerbr is offline
Member
 
Join Date: Jul 2009
Posts: 2
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)
Reply With Quote
  #2  
Old 07-09-2009, 01:03 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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?
Reply With Quote
  #3  
Old 07-13-2009, 12:24 PM
skywalkerbr skywalkerbr is offline
Member
 
Join Date: Jul 2009
Posts: 2
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem using mirror dan12345 Vizard 3 07-28-2008 04:48 AM
Strange bug concerning a mirror Frank Verberne Vizard 2 05-15-2008 05:09 AM
Eyes that keep looking at the mirror Frank Verberne Vizard 3 05-13-2008 05:39 AM
Mirror issues Frank Verberne Vizard 2 04-08-2008 10:37 AM
Getting a mirror to work in any environment Frank Verberne Vizard 5 03-27-2008 08:21 AM


All times are GMT -7. The time now is 07:03 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC