I plan on making a flag system to represent which city is controlled by whom and I am using the Korhan Flag as the unit. The issue I came to is how can I change the flag's ( not the pole ) texture by triggers. Also if that isn't possible how could I add variants to that unit to change the flag texture. Also I need to add around 50 variations considering I have many countries so I cant simply just replace the current flag texture by blizzard.
Seriously though - I think you should be looking into multiple model variations, like the civilian unit. I am not quite sure how this works and would love an answer to this question as well.
I didn't spell my own user name wrong. I couldn't choose HELLYA as my username in the beginning so I had to pick something that is close to HELLYA.
And I believe the civilian variation things is for model add ons... like the backpack or different hair color, etc
Your solution is 50 copies of the flag model and 50 custom textures. Not as bad as it sounds as the textures can be lower resolution, which only take up a few KB after compression.
around 30KB uncompressed, hopefully 15KB compressed per flag model.
Best case scenario 750KB file size added, worst case 1.46MB added. Props for the basic math analysis? anyone?
Your solution is 50 copies of the flag model and 50 custom textures. Not as bad as it sounds as the textures can be lower resolution, which only take up a few KB after compression.
around 30KB uncompressed, hopefully 15KB compressed per flag model.
Best case scenario 750KB file size added, worst case 1.46MB added. Props for the basic math analysis? anyone?
If you want real optimization you'd only need to use 1 texture and 50 models. If you used 50 separate textures, besides being a complete mess chances are that a single flag texture won't be in the power of 2 and there's going to be space wasted.
But yes, at least 50 different model's the only solution I can see. Might be able to be just one model but I'd have to test a few things before confirming it.
Ops forgot to add pole after the flag in "the flag texture" :P hehe...
To xcorbo
Well, I'd prefer to use 50 textures as I'm having to also use that texture for other matters such as selecting a Country with a Image of the Flag ( It's a Dialog ) and along with other things... So is there then a way to perhaps use catalogs to do it? I also currently, have no ways of editing a sc2 model...
@xcorbo: Go
The flag textures are all 2^x, no worries there. But 50 flags on a single diffuse map would definitely have wasted space, unless you go crazy with fitting everything of similar color together and reusing symbols. But this isn't the biggest issue, the biggest issue is the M3 plugin doesn't even import the model with the flag portion. (we may be able to get a fix for this eventually)
@HELLYAH: Go
"But the flag texture is separate then that of the texture of the flag so there has to be a way..."
That only saves a little space, it doesn't help the situation because ->
I think the only viable way you can actually make use of korhal flag with custom flag textures is to make 50 copies of the model. Each model will need to be hex-edited to change the mapping paths to the 50 unique flag textures. That's the only way i can think of to retain the waving flag portion of the model, and you'd need 50 unique textures because modifying UVW through hex-editing would be too tedious.
I plan on making a flag system to represent which city is controlled by whom and I am using the Korhan Flag as the unit. The issue I came to is how can I change the flag's ( not the pole ) texture by triggers. Also if that isn't possible how could I add variants to that unit to change the flag texture. Also I need to add around 50 variations considering I have many countries so I cant simply just replace the current flag texture by blizzard.
Thanks,
HELLYA
You spelled your own name wrong.
Seriously though - I think you should be looking into multiple model variations, like the civilian unit. I am not quite sure how this works and would love an answer to this question as well.
@MrLimeKing: Go
I didn't spell my own user name wrong. I couldn't choose HELLYA as my username in the beginning so I had to pick something that is close to HELLYA.
And I believe the civilian variation things is for model add ons... like the backpack or different hair color, etc
Bump...
Your solution is 50 copies of the flag model and 50 custom textures. Not as bad as it sounds as the textures can be lower resolution, which only take up a few KB after compression.
around 30KB uncompressed, hopefully 15KB compressed per flag model.
Best case scenario 750KB file size added, worst case 1.46MB added. Props for the basic math analysis? anyone?
@onisagi: Go
But the flag texture is separate then that of the texture of the flag so there has to be a way...
flag texture is separate then that of the texture of the flag
If you want real optimization you'd only need to use 1 texture and 50 models. If you used 50 separate textures, besides being a complete mess chances are that a single flag texture won't be in the power of 2 and there's going to be space wasted.
But yes, at least 50 different model's the only solution I can see. Might be able to be just one model but I'd have to test a few things before confirming it.
@illidans911: Go
Ops forgot to add pole after the flag in "the flag texture" :P hehe...
To xcorbo
Well, I'd prefer to use 50 textures as I'm having to also use that texture for other matters such as selecting a Country with a Image of the Flag ( It's a Dialog ) and along with other things... So is there then a way to perhaps use catalogs to do it? I also currently, have no ways of editing a sc2 model...
Anyway thanks for the current support!
@xcorbo: Go The flag textures are all 2^x, no worries there. But 50 flags on a single diffuse map would definitely have wasted space, unless you go crazy with fitting everything of similar color together and reusing symbols. But this isn't the biggest issue, the biggest issue is the M3 plugin doesn't even import the model with the flag portion. (we may be able to get a fix for this eventually)
@HELLYAH: Go "But the flag texture is separate then that of the texture of the flag so there has to be a way..."
That only saves a little space, it doesn't help the situation because ->
I think the only viable way you can actually make use of korhal flag with custom flag textures is to make 50 copies of the model. Each model will need to be hex-edited to change the mapping paths to the 50 unique flag textures. That's the only way i can think of to retain the waving flag portion of the model, and you'd need 50 unique textures because modifying UVW through hex-editing would be too tedious.
Any other ideas?