Game Development Community

Need a console guru - taking a leveloverview picture

by Aldavidson · in Torque 3D Professional · 08/13/2009 (4:16 am) · 7 replies

Hi guys,
Does anyone know of any console commands that will;
-disable all fog on a map
-will change it so their is no maxviewdistance/fade out distance
-set orientation to a plan view (so you can see the whole area)

I'm trying to take a screenshot of my terrain with all the pretty objects and rivers in place, for my Overview map but when i 'fly' out far enough to see the whole terrain, the terrain fades into the distance! Does anyone have any quick and easy answers for this?

(obviously i'd take the screenshot with hideHUDs(true) as well).

#1
08/16/2009 (5:18 am)
I'm not a console guru but the same result can be achieved using the level editor

While in game press F11 - To get the world editor up
Then Ctrl 1 - To switch to world camera view - hold right mouse and pull down to get a top down view
Use the S key to get higher in the air to whatever range you see fit

In the scene tree find the LevelInfo node from the SimGroup and select it

Before changing the following variables, write down what they currently are.

In the inspector area
To turn off the fog : set fog density at 0
If the world disappears at long ranges : set visibleDistance at 20000 or some such high number

When all is how you like it hit F11 again and take your screenshot.

Remember not to save these new setting or revert them back to how they were

Hope this helped.
#2
08/17/2009 (11:58 am)
Is their anyway you guys know of, to hide the player?

Your method works great, except that from that view you get the green txt "visitor" above your head, and you can very faintly see the player model.

Also is their anyway to snap the rotation of camera? I can never get it perfectly aligned with the terrain.
#3
08/17/2009 (1:16 pm)
setHidden(); seems to have "issues".
// try 
yourPlayersID.setallmesheshidden(true);

// To empty the green name
yourPlayersID.setshapename("");

// in spawn.cs (I think?) you can disable it showing this altogether

#4
08/17/2009 (1:27 pm)
forgive my ignorance, but how do you get the players id?
#5
08/17/2009 (1:34 pm)
Aldavidson, here are some older resources they may help you out:
Map HUD
Commander Map
RPG Map w/Points of Interest

These are mainly for TGE but should be able to be converted over with a little work. I am currently working on a new GUI control resource that hopefully I can get out in the next week. After that, if you still need help let me know and I will see what I can do.
#6
08/17/2009 (1:37 pm)
Easiest way - Look in the editor and select the player, the number over the player is it's ID. eg: 3106(null) - "null" is the where the object's name goes, or shows null if there is no name. (not the same as shapename).


edited due to wrong info.
#7
08/17/2009 (2:52 pm)
Do what Lethal Concept suggests above and toggle into hudless play mode (CTRL h (I think) to get rid of the GuiShapeNameHud -- the Template doesn't use the ShapeNameHud -- and take a screenshot, alternatively you can use the hudless screenshot option (ALT p).

If you need to hide the player or other objects, use %obj.startFade(%time, %delay, %bool).
%obj = id of relevant object
%time = length of time that the fade takes
%delay = length of time to delay before fade starts
%bool = true (fade out), false (fade in).
Suggestion: just do a container search for ShapeBase objects and fade them out.

MapHud and it's alternatives are good suggestions, though will have to be ported.

Make a script that automates all of the above.