WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 11-11-2010, 12:25 PM
Darkmax Darkmax is offline
Join Date: Feb 2010
Posts: 108
load a texture on a object of a viewpoint

I'm having troubles trying to resolve how i can put a texture of a scene/viewpoint into a object?

For example in this code i want to show in a painting what is happening in scene 2.

And in scene 2 i load artoolkit, but i can only show the video and not the scene 2 or the subwindow of the scene 2 or the viewpoint that is on the scene 2.

Help if someone know how to resolve this.

import viz


subWindow = viz.addWindow()
subView = viz.addView()
#subWindow.visible(0) #doesn't show the subwindow

#Add ARToolkit extension
ar = viz.add('artoolkit.dle')
video = viz.add('VideoCamera.dle')
cam = video.addWebcam()

#Create camera using first available webcam
camera = ar.addCamera(texture=cam,param=None,flipVertical=False,thresh=None,globalScale=None,window=subWindow)

#Create marker from pattern file
marker = camera.addMatrixMarker(3,width=1000)

#Add logo model
logo = viz.add("logo.ive",viz.WORLD, 2)

#Link logo model to marker sensor,logo)

galeria = viz.add("gallery.ive")
pintura = galeria.getChild("Dali")
Reply With Quote
Old 11-12-2010, 12:52 PM
Darkmax Darkmax is offline
Join Date: Feb 2010
Posts: 108
Also if this can't be possible, it would be nice if some one could tell me just to stop searching how to resolve this.
Reply With Quote

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
How to render a texture of the transparent object and then blur it whj Vizard 1 09-25-2012 04:15 PM
How to apply shader and render texture to an object whj Vizard 0 04-23-2010 01:23 PM
Applying texture or colour to an on-the-fly object tomo_the_third Vizard 1 06-22-2009 12:12 PM
Texture Load Error softscan2 Vizard 1 01-31-2007 10:35 AM
File Path 4 Object Load softscan2 Vizard 1 09-23-2005 09:59 AM

All times are GMT -7. The time now is 06:05 PM.

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