WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-05-2009, 12:16 PM
SuzyQ SuzyQ is offline
Member
 
Join Date: Mar 2009
Posts: 5
Simulated video monitor

I am trying to simulate a monitor in the Vizard 3D environment which includes a portion of the screen which simulates a real-time video of a specific location in the scene. Is this possible? Note that this is not the same as a creating a subwindow since the video must remain on the simulated monitor while the user navigates to various locations within the scene.
Reply With Quote
  #2  
Old 05-05-2009, 12:38 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Yes, you can use a render node to render the scene to a texture from any arbitrary viewpoint. Then you just apply the texture to any object in the scene. Here is a sample script showing how to do this:
Code:
import viz
viz.go()

#Create render texture
renderTexture = viz.addRenderTexture()
	
#Create render node to render texture
renderNode = viz.addRenderNode()
renderNode.attachTexture(renderTexture)
renderNode.setInheritView(False)
	
#Set position/rotation of render node camera
renderNode.setPosition([0,10,0])
renderNode.setEuler([0,90,0])

#Apply render texture to object in scene
model = viz.add('gallery.ive')
model.texture(renderTexture,node='art04-FACES')

#Link an object to the viewpoint
arrow = viz.add('marker.wrl',scale=(2,2,2))
viewLink = viz.link(viz.MainView,arrow)
viewLink.setPos([None,0,None])
viewLink.setEuler([None,0,0])

#Get the party started
avatar = viz.add('vcc_female.cfg',pos=(0,0,2),euler=(180,0,0))
avatar.state(5)
Reply With Quote
  #3  
Old 05-05-2009, 12:56 PM
SuzyQ SuzyQ is offline
Member
 
Join Date: Mar 2009
Posts: 5
That's exactly what I wanted to do - Thank you.
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
lat long mapped video Brett Lindberg Vizard 3 02-25-2009 07:41 PM
3D stereo on a secondary monitor (projected wall) michaelrepucci Vizard 1 07-29-2008 11:25 AM
Video Texturing cheezus69 Vizard 2 04-14-2008 03:26 AM
Monitor Modes & Vizard (problems...) tmcw Vizard 1 10-03-2007 07:29 AM
video jebber Vizard 1 09-28-2004 05:20 PM


All times are GMT -7. The time now is 11:34 AM.


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