WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Vizard AR problem (https://forum.worldviz.com/showthread.php?t=2646)

CRI 03-26-2010 07:01 AM

Vizard AR problem
 
When I make a video later showed

I then removed Marker

Shows the image will not disappear

Darkmax 03-26-2010 09:29 AM

I'm not exactly understand what you are referring but if you want to something disappear when the marker is not shown you have do something like this:

Code:

import viz
viz.go()

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

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

#Create matrix marker
marker = camera.addMatrixMarker(0,width=1000)

#Add avatar model and set state 1
avatar = viz.add('vcc_male.cfg')
avatar.state(1)

#Link avatar model to marker sensor
viz.link(marker,avatar)

#Method that update if the marker is visible
def updateVisible():
        if marker.getVisible():
                avatar.visible(viz.ON)
        else:
                avatar.visible(viz.OFF)

vizact.ontimer(0,updateVisible)

I hope is that what you need

CRI 03-26-2010 10:32 PM

I solved this problem
thank you!


All times are GMT -7. The time now is 08:26 PM.

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