Pottus / Texture-Studio

86 stars 90 forks source link

Texture tags and categorizing #50

Open iD0N opened 8 years ago

iD0N commented 8 years ago

Hey there, I feel like texture studio could really use some way of tagging certain textures and then searching for said tags, currently texture array is rather random (you'd see a window, then a wall, then some sign, then some road texture and so on) and I would really love to see say 20 wall textures at the same time when looking for a brick wall, I know it's already possible using theme textures, however I feel like a collaboration on this (so you wouldn't have to do all the work) could easily lead to implementation of this feature and at the same time make a proper categorized list for mappers with not much work from a single person. You could basically allow player tagging to textures, allow them to contribute to the project by putting them in another repository, reviewing them and accepting proper ones. after awhile you'd have enough raw-data to make those categories, easing every mapper's life.

Crayder commented 8 years ago

There is like 10,000 textures. This will take a while.

For the moment however, there is /tsearch which is currently displayed in a dialog (selecting a texture will set the 3D texture viewer to the texture's index).

I planned on just creating a temporary theme for the search results but haven't. That's going to be how I first address this issue.

iD0N commented 8 years ago

Thats a pretty neat way to start it off, but I still think the ultimate goal should be a fully categorized texture list, I myself flip around ~500 of them each time I start texturing one of my maps (mostly starting at a random point to find new good textures) so it wouldn't take that long as I know there are alot of people like me. However loading/saving such tag and category data as I suggested would need a constant connection to a SQLite/MySQL source as to not allocate megabytes of space for it.

Southclaws commented 8 years ago

A central repository of tags could be useful, albeit a large undertaking. People could contribute tags so everyone gets them.

Crayder commented 8 years ago

I wouldn't go as far as running a MySQL server for it (unless however it was ran on something extremely reliable, like the uL server maybe), I don't think TS should ever rely on something more than it's current files.

A SQLite database would suffice, one with the current texture list and just one more column, "tags". The tags would be comma separated into one string.