WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Turning off rendering (https://forum.worldviz.com/showthread.php?t=4964)

mhtong 02-27-2014 11:57 AM

Turning off rendering
 
This may seem an odd request, but is there a way to have Vizard run its main loop without actually opening up a display or rendering anything? I was hoping there'd be a flag in viz.go() to do this, but it doesn't appear to be the case.

I have an environment coded up and I'd like an AI agent to be able to train in it. I could duplicate much of the code for the environment, but what would be easiest since I want the environment to be acting the same as normal would be to simply disable rendering and allow everything to work internally as if it were running as normal (but much faster).

farshizzo 02-27-2014 12:02 PM

You can use the following code to show/hide the main graphics window:
Code:

# Hide Window
viz.setOption('viz.window.visible', 0)

# Show Window
viz.setOption('viz.window.visible', 1)

You will probably also want to disable rendering as well:
Code:

viz.MainWindow.visible(False)


All times are GMT -7. The time now is 07:23 PM.

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