![]() |
|
#1
|
|||
|
|||
Hello,
thank you for your quick answer! Yes exactly! Essentially what we would like to do is to run a little experiment programmed with pygame on a 3d model of a screen in a virtual model of a room. So it would be sort of a "virtual recreation" of a normal psychological experimental setting. Would you know an existing solution to do this? Best regards and many thanks! Alvin |
#2
|
|||
|
|||
I needed something similar, and my solution was to have one laptop running the program I wanted to show in Vizard. On another computer, I use a webcam to film the contents of that laptop, and show the videofeed of that webcam on a texture in Vizard. See the example code below. Something similar may be a solution for you as well.
Code:
viz.go() screen = viz.addTexQuad(size=4) #Create Video Camera extension video = viz.add('VideoCamera.dle') #Connect to next available generic video capture device cam = video.addWebcam() #Apply videofeed of webcam as a texture of the screen screen.texture(cam) Last edited by Frank Verberne; 02-18-2013 at 09:38 AM. |
#3
|
|||
|
|||
Hello Mr Verberne,
thank you very much for your solution, this is an ingenious idea! I will definitely try to do that. Many thanks and best regards! Alvin |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Vizard 4 Beta Testing | farshizzo | Announcements | 0 | 02-01-2011 10:46 AM |
Vizard tech tip: Using the Python Imaging Library (PIL) | Jeff | Vizard | 0 | 03-23-2009 11:13 AM |
What are the options for making a movie of a Vizard world? | Karla | Vizard | 1 | 05-13-2008 10:56 AM |
General Questions about Vizard: World Viz | dav | Vizard | 5 | 08-28-2006 03:44 PM |