• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

Visibility Delay

Status
Not open for further replies.
Level 21
Joined
Nov 4, 2013
Messages
2,017
If you already tested my map, then you'll understand what I'll be speaking about very easily. If not, well, let me explain. Basically, it's very dark in my map and you play with a first-person camera. As long as you walk with normal speed, everything with the visibility is ok. However, when I use a skill that speeds me up, I end up in the black mask before even exploring it! That's awkward because it makes it harder to run away because you end up kissing a cliff and clicking around randomly like a demented person.
I tried in the Gameplay Constants to set the Unit Visibility Change Rate to 0.00 but it didn't make things different. Therefore I decided to consult the almighty triggers and create a periodic trigger that provides visiblity every 0.01 seconds (everything is destroyed then recreated so no leaks) yet it didn't really improve that much the performance and it even caused a little delay with a full house (10 players).
So is there something I missed or is it just impossible to fix?
 
Fog of war updates pretty slow in the game. This has always been the case, for example when blinking towards the border of the fog of war.

Unfortunately, no way around this except by increasing the visibility range of units.

If you use first person camera anyway, why even have fog of war? Just disable it and save yourself from a lot of other fog-of-war related trouble like rendering issues with alpha tiles aswell.
 
Level 21
Joined
Nov 4, 2013
Messages
2,017
Fog of war updates pretty slow in the game. This has always been the case, for example when blinking towards the border of the fog of war.

Unfortunately, no way around this except by increasing the visibility range of units.

If you use first person camera anyway, why even have fog of war? Just disable it and save yourself from a lot of other fog-of-war related trouble like rendering issues with alpha tiles aswell.

Revealing the whole map is too bad. My map is supposed to be a dark maze where you are only supposed to see what's around due to the scarce light.
 
Level 21
Joined
Nov 4, 2013
Messages
2,017
In that case... make a cloud that has a high opacity and make it follow your unit.
The cloud will not allow you to see through a few meters through it (like a real cloud) and the vision gets better the closer the object you want to see is to you.

A... real cloud? How do I get this result (model or something)? You also need to take care that I don't want this cloud to be seen by other players. I mean, if I am walking within my own cloud but I encounter another player with the cloud, wouldn't I see it? That would be awkward I think.
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
A model like the cloud that is used to disable buildings from attacking... dunno its name.
Just make it half way transparant and make it huge.

You can make the cloud (which is a unit) have 100% tranparancy using triggers.
You can do this locally for all players except the one with the unit that the cloud is attached to.
This will make you only see your own cloud.
 
Level 12
Joined
May 22, 2015
Messages
1,051
Is it possible to make your own vision trigger - specific to just the player unit?

I haven't played your map, so forgive me if I say something that doesn't make sense.

Anyway, my idea is that you could periodically check where the unit is and update the player's vision with a trigger (reveal the area around the unit that is within vision range). You could even have this trigger only active when the player activates the speed ability.

I hope this helps.
 
Level 21
Joined
Nov 4, 2013
Messages
2,017
Is it possible to make your own vision trigger - specific to just the player unit?

I haven't played your map, so forgive me if I say something that doesn't make sense.

Anyway, my idea is that you could periodically check where the unit is and update the player's vision with a trigger (reveal the area around the unit that is within vision range). You could even have this trigger only active when the player activates the speed ability.

I hope this helps.

Lol SAUS I already have this trigger because I want black mask everywhere without fog of war.
Wietol, I am still stuck. How can I create this cloud?
 
Level 12
Joined
May 22, 2015
Messages
1,051
Lol SAUS I already have this trigger because I want black mask everywhere without fog of war.
Wietol, I am still stuck. How can I create this cloud?

Oh is that what is causing the black mask to stay there too long? or...

Can you modify it to not put black mask in the hero's radius? This is probably all more simple if I actually played your map lol. Can't do that right now though.
 
It's not fog of war by the way, it's black mask. Also, what's that function you just did? How does it work exactly? Do I just copy-paste that in the custom script?
Read the tutorial I linked.

Don't use clouds, don't care about black mask. Read the tutorial. It's what you want.
 
Status
Not open for further replies.
Top