WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-21-2013, 08:11 AM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Exclamation Using A Projector

Hello. I have a project that involves a projector. The goal is use a web camera for tracking markers' position and orientation, but I want the projector to display the virtual 3D model only. Thus far I have everything working with the web camera, I just need to know if this is possible?

Thanks,
Stephanie
Reply With Quote
  #2  
Old 01-25-2013, 11:51 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,448
If you don't want to render the camera image set the window argument to None:
Code:
camera = ar.addWebCamera(window=None)
Reply With Quote
  #3  
Old 03-12-2013, 08:03 PM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Still having issues!!!

Hello, Jeff. I tried the camera function but I'm still not receiving my desired output. That line of coding removes gives a black screen. To help you get a better understanding I've attached a word document with the output I want, the screen shots of the output I'm receiving, and my source code. Thanks in advance for all your assistance.

Design: Virtual Assembly Program

Equipment/ Software: Web Camera, Epson Projector, and ARtoolkit markers

Goal: I need the web camera for tracking purposes only. I want the projector to render the virtual 3D
Model without video feedback from the web camera (NOT THE WEB CAMERA).

Output: Iím getting feedback from both the web camera and projector.

Paths: I tried replacing camera = ar.addWebCamera() with camera = ar.addWebCamera(window=None)
and I receive a black screen and feedback.
Reply With Quote
  #4  
Old 03-13-2013, 02:01 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,448
Can you post a simple example script that shows the issue you are having?
Reply With Quote
  #5  
Old 03-13-2013, 07:21 PM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Sample Source Code

Attached sample code and screen shots of my output thus far. Thanks
Attached Files
File Type: pdf SAMPLE CODE.pdf (198.8 KB, 490 views)
File Type: pdf starling worldviz forum.pdf (329.3 KB, 505 views)
Reply With Quote
  #6  
Old 03-14-2013, 06:51 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,448
Can you start with a simple example and verify that you get the correct output?
Code:
import viz
viz.go()

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

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

#Create a matrix marker with the specified id
marker = camera.addMatrixMarker(0,width=1000)

#Add logo model
logo = viz.add('logo.ive')

#Link logo model to marker sensor
viz.link(marker,logo)
Reply With Quote
  #7  
Old 04-05-2013, 01:37 PM
starlingstm starlingstm is offline
Member
 
Join Date: May 2011
Posts: 19
Yes, I get the correct output. Now, how do I bring a projector into the connection and use it to only output my "logo" in an augmented environmnet.
Thanks
Reply With Quote
  #8  
Old 04-05-2013, 04:34 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,448
Does your projector work in stereo or mono? If stereo, which kind of stereo input does it require?

If the test application works but your application does not, you'll need to find out where your application is breaking. To do that, start with a simple script, and add code until you see where the problem begins.
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
shadows in mirror chris_user Vizard 0 02-17-2011 03:37 AM
Use Projector from room.wrl jassel41 Vizard 1 11-18-2010 02:38 PM
multiple shadows using projector theuberk Vizard 13 02-24-2009 02:56 AM
3d projector Vinicius Lima Vizard 21 03-05-2008 03:51 PM
3D Projector Vinicius Lima Vizard 1 08-20-2007 05:52 PM


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


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