- Joined
- Mar 6, 2008
- Messages
- 851
Hey,
I have two different problems with fog of war and black mask which I desperatly need to be solved.
The first one may fits better into the model section but I place it here anyway.
All of my doodads have the same base, but some disappear in fog of war. So it must be something about the models. What can I do that all models can be seen in fog of war?
And here is the second problem which is a little bit more urgent as the first one.
I started using the alpha tile.
It has a lot of benefits like not using invisible plattforms anymore etc but there are also disatvantages. In fog of war the alpha tile I use loses its transparency which is distracting and ugly in some cases.
But the map must have a fog of war for a few reasons.
For example we use a lot of text tags and we want to show them only to players who see the unit the text tag belongs to.
I first tried to solve the problem by disabling fog of war and black mask and setting the day night model with SetDayNightModels("","") to null and adding to every unit a light model link. It looked realy cool but there is the problem with the visibility of the text tags mentioned above and also if there are 500 unit with attached light models, could this cause performance issues?
My second solution approach was trying to remove the visibility of the fog of war by importing a war3mapMisc.txt file where I changed a lot of this data:
But the only thing what happens was that the fog of the minimap changed.
I need to find a solution to plan my further steps in case of terraining.
I have two different problems with fog of war and black mask which I desperatly need to be solved.
The first one may fits better into the model section but I place it here anyway.
All of my doodads have the same base, but some disappear in fog of war. So it must be something about the models. What can I do that all models can be seen in fog of war?
And here is the second problem which is a little bit more urgent as the first one.
I started using the alpha tile.
It has a lot of benefits like not using invisible plattforms anymore etc but there are also disatvantages. In fog of war the alpha tile I use loses its transparency which is distracting and ugly in some cases.
But the map must have a fog of war for a few reasons.
For example we use a lot of text tags and we want to show them only to players who see the unit the text tag belongs to.
I first tried to solve the problem by disabling fog of war and black mask and setting the day night model with SetDayNightModels("","") to null and adding to every unit a light model link. It looked realy cool but there is the problem with the visibility of the text tags mentioned above and also if there are 500 unit with attached light models, could this cause performance issues?
My second solution approach was trying to remove the visibility of the fog of war by importing a war3mapMisc.txt file where I changed a lot of this data:
[FogOfWar]
FoggedTerrain=170,16,16,32
BlackMaskedTerrain=255,0,0,0
DarkMaskedTerrain=230,0,0,0
BoundaryTerrain=230,0,0,0
FoggedBoundaryTerrain=170,16,16,32
FoggedObject=255,64,64,96
BlackMaskedObject=255,0,0,0
DarkMaskedObject=255,32,32,48
BoundaryObject=255,0,0,0
FoggedBoundaryObject=255,64,64,96
ShadowImageColor=170,0,0,0
FogColorPlayer=255,255,255,255
FogColorAlly=255,255,255,0
FogColorEnemy=255,255,0,0
FogColorResource=255,32,128,128
FogColorItem=255,240,240,0
FogColorHero=255,255,255,128
FogColorDestructable=255,0,160,128
FogColorCreepAllied=255,255,120,0
FogColorBlackMaskAlpha=0
FogColorDarkMaskAlpha=40
FogColorFogMaskAlpha=128
FogColorVisibleAlpha=255
FogColorBlightMask=0,63,63,64
I need to find a solution to plan my further steps in case of terraining.