Game Development Community

Totally disable UI/rendering

by Squall · in Torque 3D Beginner · 08/18/2010 (8:05 am) · 6 replies

Hi all,

Is there a proper way to disable the UI as well as rendering? I can disable rendering frame by modify guicanvas::renderFrame but there's a whole lot more to totally disable the rendering/UI. Here are the object/functionality needed to disable:
1. GUICanvas
2. GUIcontrol
3. Shader (this always cause me problem: Failed to load shader)

The reason for this is I need to have a lot of dummy clients (no graphics) to do testing.

#1
08/18/2010 (1:17 pm)
Don't think that this is what you want, but anyway ...
As in hide the GUI? HudlessPlayGui.toggle();
#2
08/19/2010 (2:56 am)
Thank for your reply!!!
Yeah the HudlessPlayGui.toggle() can hide the GUI but is there anyway to not add the GUI at all (i.e. no window, no rendering, no shading, no GUI) just interactive scripts ?
I can modify the engine, just that the amount of things to modify is kinda huge.
#3
08/19/2010 (3:06 am)
I expect I'm a bit out of my depth on that ... unless it'll work by just commenting out the relevant scripts execs in scripts/client/init.cs ...
#4
08/20/2010 (4:45 am)
Hi Steve,
I tried that yesterday, and still trying just trace any GUI components to comment them out. But seems they have some problem download mission (datablocks)
Anw, just wanna ask a quick question. Is there a way for us to start multiple clients without them locking the shading files (hlsl) at the beginning ?
Can we disable shading, or access to the shading files /

Thanks a lot
#5
08/20/2010 (1:02 pm)
lol, I'm making this up as I go ... I have no idea. :P
#6
08/25/2010 (6:29 am)
hehe thank Steve!

It turned out just setting the shaders folder to read-only was the trick to allow multiple clients' access. Though it's quite manual, I gotta say :D