WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-27-2014, 11:57 AM
mhtong mhtong is offline
Member
 
Join Date: Sep 2012
Posts: 6
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).
Reply With Quote
  #2  
Old 02-27-2014, 12:02 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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)

Last edited by farshizzo; 02-27-2014 at 12:08 PM.
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
rendering level shahramy Vizard 1 07-26-2010 12:12 PM
how to control vizard rendering shahramy Vizard 0 07-23-2010 10:50 PM
Any way to increase rendering resolution v-Salik Vizard 3 09-12-2007 04:57 PM
Buttons Not rendering to both Eyes in 3d shivanangel Vizard 2 05-24-2007 06:58 AM
Texture map rendering problem JRichizzle Vizard 4 03-04-2004 07:20 AM


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


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