|  | 
| 
 Pygame Screen within Vizard World Hello everyone, at the risk of asking a silly question I would like ask wether anyone knows how one could have a screen with a pygame game on within Vizard. The same way Vizard offers the possibility to play a video file on a virtual object (e.g. 3d model of a screen) with the viz.addVideo() function, would it be possible to blit (hope that's the correct term...) a pygame animation on a screen model within a model of a virtual room? Or would there be some other way with Python using some of pygame's functions? Best regards and many thanks! Alvin | 
| 
 To be clear, you want to display the live output of a pygame application as a texture in Vizard? | 
| 
 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 | 
| 
 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() | 
| 
 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 | 
| All times are GMT -7. The time now is 12:15 PM. | 
	Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
	
	Copyright 2002-2023 WorldViz LLC