Game Development Community

Missing Terrain Editor Brush

by Kevin Rogers · in Torque Game Engine · 12/21/2005 (8:47 pm) · 6 replies

Since merging 1.4 with my project, the brush is not being displayed, rendering the terrain editor useless. Any ideas why?

(I found someone with the same problem in this thread below, but figured I'd post here as well since that's only the Mapping forum... http://www.garagegames.com/mg/forums/result.thread.php?qt=37117 )

Thanks,
Kevin

#1
12/21/2005 (9:27 pm)
There was a bug related to having a mismatching near/far clip plane on the editor widget renders that we fixed during 1.4 dev. Can you see the brush if you get very close to it? Do the mission bounds box (the green and red walls in the distance) show up at all?
#2
12/22/2005 (11:16 am)
Thanks for the quick response, Ben. I think we figured it out... from the other thread:
Quote:I dont know yet what causes the problem, but I noticed it only happens when I UNcheck the "tile" option of the terrainblock. As soon as you check "tile" again, the brush re-appears. Very weird, but if you dont want tiling terrain you still must edit it while it is tiled it seems.

This is indeed the cause of the problem. The "tile" property was unchecked for my terrain. (Apparently the "tile" property is new to 1.4?) Once "tile" is selected and the change applied, voila, the brush reappears.

So, to summarize, terrains are not currently editable unless "tile" is selected, due to the brush being unavailable.
#3
12/22/2005 (12:28 pm)
WTF!

That's deeply weird. I'm glad we localized the problem, though.
#4
01/02/2006 (9:30 am)
The check box thing doesn't work for me, I think that was just a coincidence the the tile property change made the brush appear. I have been able to see the brush by flipping to d3d then back to ogl but that too may be a coincidence. There is still a bug there to be fixed. It may be a driver interaction thing too because on my laptop, the terrain brush works as it should.

Don
#5
01/08/2006 (1:15 am)
What are the respective cards?
#6
01/09/2006 (6:24 pm)
I've just looked at this a bit more and it is not the graphics card, it is something in the prefs.cs. Here is a diff between a prefs that doesn't show the brush (Left) and one that works as it should (Right). Hope this helps isolate the problem.

Don

F:\Torque\SDK\example\GameOne>diff prefs.cs prefs.cs-good
16,18d15
< $pref::Console::extent = "876 300";
< $pref::Console::position = "0 0";
< $pref::Constructor::lastPath = "GameOne/client/ui";
24,25c21
< $pref::environmentMaps = "0";
< $Pref::GuiEditor::PreviewResolution = "640 480";
---
> $pref::environmentMaps = "1";
46c42
< $pref::OpenGL::allowTexGen = "0";
---
> $pref::OpenGL::allowTexGen = "1";
59c55
< $pref::OpenGL::noEnvColor = "1";
---
> $pref::OpenGL::noEnvColor = "0";
107c103
< $pref::Video::displayDevice = "D3D";
---
> $pref::Video::displayDevice = "OpenGL";
112,114c108,110
< $pref::Video::profiledRenderer = "Direct3D";
< $pref::Video::profiledVendor = "Microsoft Corp.";
< $pref::Video::resolution = "1024 768 32";
---
> $pref::Video::profiledRenderer = "GeForce 6800 GT/AGP/SSE2/3DNOW!";
> $pref::Video::profiledVendor = "NVIDIA Corporation";
> $pref::Video::resolution = "800 600 32";

F:\Torque\SDK\example\GameOne>