Game Development Community

Terrain Action Values, Not affecting Terrain Editting

by Edward F. Maurina III · in Torque Game Engine · 02/02/2003 (2:29 pm) · 3 replies

Team,

I usually don't play around with the Terrain Action Values, found under:

MissionEditorMenu->Edit->Terrain Editor Settings...

However, today I am playing with them and was surprised to see that there was no change. Specifically, I changed the drop off in the Soft selection so that the left was 100% and all the rest of the values were near 0. I expected the center of my soft selection device to act strongly with a swift fall-off. No deal. Similarly I adjusted the Radius with no effect.

So, does anyone have a clue on whether this is hookedup. I'm going to start digging in the code shortly, but I'm really hoping someone already has an idea or two about this.

Thanks,

Ed

#1
02/02/2003 (3:07 pm)
Hmm.. Found first part of problem. The OK button does not APPLY changes...kinda weird, but easy to fix. Steps to fix

1. in common/editor/EditorGui.cs ->
find: function TESettingsApplyButton::onAction()

ADD Following code below said function:
function TESettingsOKButton::onAction(%this)
{
   ETerrainEditor.softSelectFilter = TESoftSelectFilter.getValue();
   ETerrainEditor.resetSelWeights(true);
   ETerrainEditor.processAction("softSelect");
   Canvas.popDIalog(TerrainEditorValuesSettingsGui);
}

2. in common/editor/TerrainEditorVSettingsGui.gui ->

replace this code:
new GuiButtonCtrl() {
         profile = "GuiButtonProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "218 205";
         extent = "80 20";
         minExtent = "8 8";
         visible = "1";
         command = "Canvas.popDIalog(TerrainEditorValuesSettingsGui);";
         helpTag = "0";
         text = "OK";
         groupNum = "-1";
         buttonType = "PushButton";
      };
with this:
new GuiButtonCtrl(TESettingsOKButton) {
         profile = "GuiButtonProfile";
         horizSizing = "right";
         vertSizing = "bottom";
         position = "218 205";
         extent = "80 20";
         minExtent = "8 8";
         visible = "1";
         helpTag = "0";
         text = "OK";
         groupNum = "-1";
         buttonType = "PushButton";
      };


~~~~
Radius changes still don't seem to take affect. I'm still looking.

-Ed
#2
02/02/2003 (3:57 pm)
Mine work fine just like I would expect. I hit apply and all works. If you make the radius 1 then the effect created by the adjustable graph only effects 1 terrain block. Yet you turn it to 50 and it affects multible terrain blocks. I never thought it was broke. Maybe yoiur expecting it to do somthing else?
Not trying to argue about it though.

Matt
#3
02/02/2003 (4:37 pm)
Matt/All,

1. The code snippet I added address the fact that the APPLY button applies changes, but the OK button does not (which it should).

2. I am just not clear on this radius thing. I change the scale and see the effect of that, but if I change the radius, the brush acts the same. As far as I can see brush size selection is the only thing that affects the size of the area operated on. I can set radius to anything and the brush behaves the same. Perhaps radius only affects certain operations?

Anyone, I'm looking for a clear explain on the function of the RADIUS. I must be making a wrong assumption in that it affects the brush radius or action radius. If someone could give an example usage I would be completely in debt.
-Ed