• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[General] A lot of fog in my head.

Status
Not open for further replies.
Level 13
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:


[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
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.
 
Level 25
Joined
Jul 10, 2006
Messages
3,315

Attachments

  • ColorMeFog.mdx
    6.3 KB · Views: 91
Level 13
Joined
Mar 6, 2008
Messages
851
Thank you for the model. But I see I have to post some screeshots to show my problem.

fog of war
attachment.php


fog of war and a unit
attachment.php


no fog of war
attachment.php


You can show text tags locally.
I know how to use the local player stuff. The problem is that we show only text tags if a unit isn't in fog of war, for example if an enemy unit has a dot. it would be weird to see floating text messages in areas which should not be visible to you and it also reveals the position of an enemy.
 

Attachments

  • withafog.jpg
    withafog.jpg
    62.4 KB · Views: 259
  • withafogunit.jpg
    withafogunit.jpg
    83.8 KB · Views: 298
  • withoutafog.jpg
    withoutafog.jpg
    113.2 KB · Views: 305
Status
Not open for further replies.
Top