Scripts / setfogintensity

Author
Message
Scanman
4
Years of Service
User Offline
Joined: 8th Dec 2019
Playing: Total War Saga: Troy, Amytric Pulse
Posted: 21st Jun 2020 17:28 Edited at: 21st Jun 2020 21:35
Hi there,

Working on my secret area, where player can explode barrels to open door. In addition, fog appears after shooting barrels. It looks like really cool effect. Besides of it, fog dissappears if player leaves secret area, and appears if it returns. Really cool.

But I have a question. May be someone knows what measure units does SetFogIntensity use? If I write SetFogIntensity(90) meaning percents it changes not to 90 but to much more lesser value. TAB-TAB effect panel after explosion shows value that differs of 90 in 2 times. And all other numbers differs. So I need to send as parameters number that much greater then result. What is the coefficient?

This is how i set fog.


You can see video using link below. Thank you again for attention...
Setting fog after explosion
PM
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 21st Jun 2020 19:20
Only the tab bars are percentage, the actual values are higher, not exactly sure but I seem to remember the number 260 from somewhere

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
GubbyBlips
5
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 21st Jun 2020 19:29
Just be careful. Though I can't be sure, maybe this doesn't pertain to fog, but
some things like TextColor above 256 or below 0 will result in GG breaking--
GG breaking means your level has broken and corrupted, GG will start over
reloading your level, but be locked up afterward so you have to close it down.
Save your level every couple minutes when experimenting - even better do
these experiments on a new default map that's disposable.
PM
3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 21st Jun 2020 19:46
I remember it being a bit tricky, can remember the way GG has to measure it. Try GetAmbienceIntensity ( ) to get the current value so you'll have a base value to play with, Anyway I recall those values being different value via tab tab than via script.
Take a look to visual.ini file to see who is expecting percent value, or rgb value, or so on.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-03-29 10:11:30
Your offset time is: 2024-03-29 10:11:30