Convex Editor (Sketch Tool) Change Default Material?
by SqHd · in Torque 3D Professional · 04/19/2012 (4:51 pm) · 2 replies
Has anyone successfully changed the default material used by the Convex Editor / Sketch Tool?
I am really enjoying it, but I am so sick of orange (that's Half-Life's style).
I tried setting it to Grid512_Grey_Mat in the Editor Settings while in the world editor. No luck.
I then changed the main.cs file in the "convexEditor" folder to the Grid512_Grey_Mat under Settings - setDefaultValue at the bottom. This didn't work either. (I also tried other existing material names, but still no change).
Is this something that needs to be changed at the source level (guiConvexShapeEditorCtrl.cpp) and recompiled?
Any tips would be greatly appreciated. Thanks.
I am really enjoying it, but I am so sick of orange (that's Half-Life's style).
I tried setting it to Grid512_Grey_Mat in the Editor Settings while in the world editor. No luck.
I then changed the main.cs file in the "convexEditor" folder to the Grid512_Grey_Mat under Settings - setDefaultValue at the bottom. This didn't work either. (I also tried other existing material names, but still no change).
Is this something that needs to be changed at the source level (guiConvexShapeEditorCtrl.cpp) and recompiled?
Any tips would be greatly appreciated. Thanks.
#2
(It's weird how the option is there in the editor to change the default material though.)
04/19/2012 (8:05 pm)
Thanks for the advice. I think I'll just edit the material.cs.(It's weird how the option is there in the editor to change the default material though.)
Associate Michael Hall
Distracted...
mMaterialName = StringTable->insert("Grid512_OrangeLines_Mat");ATt least it's not hardcoded to a specific texture!You can change the texture that the Grid512_OrangeLines_Mat material is using, defined in "core/art/grids/materials.cs".
Or you could modify the source and initialize nMaterialName to look for a different material, something with a more suitable name, and then define that material in script.