WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-26-2010, 07:01 AM
CRI CRI is offline
Member
 
Join Date: Mar 2010
Posts: 26
Vizard AR problem

When I make a video later showed

I then removed Marker

Shows the image will not disappear
Reply With Quote
  #2  
Old 03-26-2010, 09:29 AM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
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
Reply With Quote
  #3  
Old 03-26-2010, 10:32 PM
CRI CRI is offline
Member
 
Join Date: Mar 2010
Posts: 26
I solved this problem
thank you!
Reply With Quote
Reply


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
Big problem with OpenSG exporter for max to Vizard omadawn Vizard 5 06-09-2009 11:51 AM
Vizard tech tip: Using the Python Imaging Library (PIL) Jeff Vizard 0 03-23-2009 11:13 AM
newbie problem getting vizard to work Colin Vizard 2 11-10-2006 10:54 AM
problem talking to usb device in Vizard Vbents Plug-in development 2 06-15-2006 03:08 PM
Vizard Crashes: causes are hard to determine, possible problem with the viz code vr_boyko Vizard 1 01-07-2005 10:52 AM


All times are GMT -7. The time now is 10:28 PM.


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