Enhanced Texture Browser for Radiant 1.5


(DerSaidin) #21

Awesome, great work.

Will you need help taging everything?


(Shaderman) #22

It would be nice to get help with that because it’s a huge number of textures and shaders and will be a lot of work. If you’re interested, I could send you a “special” Radiant version with a prepared XML file containing nodes for all textures and shaders (with assigned stock map names) but without tags. But first I’ll need a clean ET installation again and have to write some code for collecting all texture/shader names and assigning the stock map names which might take some days. But once again, it’ll be a hard job to have as few tags as possible which - on the other side - need to be very expressive :slight_smile:

Once there’s a good basic XML file, a translation of the tags to your native language would be really easy by renaming them…

Just in case someone is interested in the structure of the XML file:

<?xml version="1.0" encoding="UTF-8"?>
<stock>
  <shader path="textures/egypt_floor_sd/carpet_c02">
	<tag>floor</tag>
	<tag>carpet</tag>
	<tag>ugly</tag>
	<map>oasis</map>
  </shader>
  <texture path="textures/egypt_floor_sd/afloor_m02">
	<map>oasis</map>
	<tag>floor</tag>
	<tag>stone</tag>
  </texture>
</stock>

There are either shader or texture nodes (for filtering like “show shaders”) with attibutes containing the path to the shader/texture and child nodes containing zero or more map or tag entries. Maybe there’ll be more information to each shader in future containing attributes like surfaceparms for example. This is one point on my wish list besides auto completion for the search field :slight_smile:

Shaderman


(Shaderman) #23

I’ve made a basic XML file containing all ET (2.60) shaders, textures and appropriate assignment of the 6 stock maps.

Some information for the statisticians out there. There are 1085 shaders and 573 textures (301 without shader). Battery uses 171 shaders/textures, Fueldump 149, Goldrush 148, Oasis 124, Radar 147 and Railgun 150 shaders. That’s what you always wanted to know, right? :stuck_out_tongue:

All in all, there are 1658 shaders and textures where tags could be used in ET with my Radiant modification. A lot of them shouldn’t need tags such as terrain shaders which were apparently created by easygen and aren’t useful for mapping. There are lots of shaders like textures/egypt_walls_sd/stucco which should get the same tag information so I’ll add a function to copy & paste tags from one shader to another to make tagging easier.

I’d really appreciate help with this tagging job… :slight_smile:


(Shaderman) #24

Finally it’s done :moo:

Special thanks to Der’saidin for creating a tag file for Enemy Territory and EB for writing some documentation for the ETB (will be available soon).

The Enhance Texture Browser is available with the latest GtkRadiant 1.5 nightly build. See this thread for more information.

Would be nice to get some feedback.

Shaderman


(EB) #25

(Same as the other thread:)
Link to the ETB documentation.


(kamikazee) #26

After working somewhat with the ETB, I must say it’s quite a great tool. Thanks for all the work.

I’ve got some sugestions though:
-You got a button there to toggle tags/textures. What if this would be changed to a tab page with “Textures” and “Tags”?
-The list changes width when toggled from tags to textures and vice versa. It just looks a little disturbing if it changes so suddenly, is it possible to use a dragable divider instead?
-The search function is a little different for textures/tags. What about making the tag search similar to texture loading? (For textures, you can doubleclick a texture folder, press spacebar or press enter if you selected on path.)


(jalisko) #27

I just read the part where you ask for suggestions and jumped answering. Didn’t read any posts below, so I hope this wasn’t said already, but just can’t wait :slight_smile:

In Quark, when you select a face there is a extensible menu where you have listed the names of all textures currently in use in the map, you can just quickly find in there and replace. It looks like some useless feature, but it ends up being a great time saver.


(Shaderman) #28

Thanks for the suggestion! I guess this is what you mean and I bet EB will kill me because his great documentaion is out of date one day after release :X

ETB without tag support / with tag support, texture view / with tag support, tag view:

-The list changes width when toggled from tags to textures and vice versa. It just looks a little disturbing if it changes so suddenly, is it possible to use a dragable divider instead?

This issue is almost solved with the change of using tabs instead of a toolbar. The width of both views (textures/tags) depends on the width of the widest view.

-The search function is a little different for textures/tags. What about making the tag search similar to texture loading? (For textures, you can doubleclick a texture folder, press spacebar or press enter if you selected on path.)

IIRC I tried to implement double click support but it can’t be used while the tag list is used in “multiple selection mode”. Multiple selection (searching for multiple tags at the same time) is much more important, so we currently can’t have both functions :confused: I hope it’ll be possible once the old win32 GTK libs used by Radiant will be updated (there’s a pango font metric bug preventing us from upgrading at the moment).


(EB) #29

I will update the ETB documentation once the changes are permanent and released ina public build.


(Shaderman) #30

Try “View -> show all” (CTRL + A) followed by “View -> Hide Unused” (CTRL + U) in the Texture Browser. You’ll see all textures and shaders used in your map which is much better than getting a list of path names :wink:

Thanks & sorry again :moo:

I’ve just added a context menu to the tag view:


(kamikazee) #31

Ok, that puts out doubleclick. But is it possible then to use keystrokes like ENTER or SPACE to start a search?


(EB) #32

…“habit” does cause me to hit the enter key whether or not a text field utilizes it.
Although I do have to grab the mouse to continue using Radiant, so, to me, clicking the button just afterwards is not a hassle. …who knows, sooner or later I just may teach myself to click the button without hitting the enter key, but probably not. Darn habit ! hehe.


(Shaderman) #33

Sure it’s possible but I think using the mouse is the way to go here :slight_smile:

The tab and context menu changes are in the trunk now.