Khas Advanced Fog v3.0

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
376
Reaction score
84
First Language
English
Any news on that update about being able to turn it on and off more easily?
 

lonewolph

Veteran
Veteran
Joined
Oct 25, 2015
Messages
211
Reaction score
14
First Language
English
beautiful work! I would also like to see the ability to color the fog as well.
 
Last edited:

Izzybelle

Veteran
Veteran
Joined
Jul 25, 2013
Messages
37
Reaction score
5
First Language
English
Primarily Uses
RMMV
I am having the same issue as an earlier user and I was curious if this problem was ever solved. Everything worked properly back in May. Once I started working on other maps to get my demo ready, (and received a new computer) I went back to complete finishing touches on those maps and they were no longer working. (I also do not have access to the old computer to test if it still works there)

Any help would be awesome!

Edit: Discovered that when I turn "Variable Fog Density" Off. The error stops happening. So the error has something to do with the variable fog density.
 

Attachments

Last edited:

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
For some reason I wasn't getting any notifications from this thread, sorry for not replying to you.

@Fred Ransom I'll see what I can do about this. PIXI is very unhelpful when debugging shader/webgl code, so this will be hard to fix.

@Skurge the order of the plugins matter, so perhaps you need to put fog before lighting. Otherwise you may create a custom fog.

@Gonor that's a cool idea! I'll add this feature to the next update.

@Solis an update is on the way. Hopefully I'll finish it by the end of the month, depending on the bugs I have to fix.

@Izzybelle thanks for reporting the bug. I'll do my best to fix it.
 

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
376
Reaction score
84
First Language
English
@Khas
This is great news! I'm super excited! Thanks!
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,197
Reaction score
274
First Language
English
Primarily Uses
N/A
Ah very good, that was the source of my problem!
 

Gonor

Veteran
Veteran
Joined
Oct 15, 2012
Messages
140
Reaction score
68
First Language
German
Primarily Uses
RMMV
@Gonor that's a cool idea! I'll add this feature to the next update.
I asked the same question a while ago and according to Khas', he'll add in in the next update.
 

dragon1up

Veteran
Veteran
Joined
Sep 24, 2013
Messages
130
Reaction score
41
First Language
English
Primarily Uses
RMMV
I am having the same issue as an earlier user and I was curious if this problem was ever solved. Everything worked properly back in May. Once I started working on other maps to get my demo ready, (and received a new computer) I went back to complete finishing touches on those maps and they were no longer working. (I also do not have access to the old computer to test if it still works there)

Any help would be awesome!

Edit: Discovered that when I turn "Variable Fog Density" Off. The error stops happening. So the error has something to do with the variable fog density.

Thanks so much haha just updated to the newer plugins and fixed it because of what you did :)
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
Here's the latest update for Advanced Fog! I've implemented new features and solved some important problems. The full list of changes is below:

* Added "Transfer Reset" parameter
If ON, the fog is reset after every transfer (reset to off).

* Added "Auto Battle Fog" parameter
If ON, battles will use the same fog from map!

* Added colored fog
Now fogs can have colors!
You may add the color: {"r": 0-255, "g": 0-255, "b": 0-255} parameter to any fog's definition.

* Fixed bug "pixi cannot read property 'location' of undefined"
This bug happened to some users of other operating systems, but now it has been fixed.

* Fixed bug with uppercase OFF in [fog OFF]
Now it's less confusing to turn off the fog!


After substituting the old plugin, please delete and add it again in the Plugin Manager! You may check the updated tutorial to learn about how to use the new features.

Please note that the terms of use have been updated! If you want to use this plugin commercially, please read them here.

@Izzybelle @Fred Ransom @dragon1up I've fixed the bug you reported!
 

dragon1up

Veteran
Veteran
Joined
Sep 24, 2013
Messages
130
Reaction score
41
First Language
English
Primarily Uses
RMMV
Here's the latest update for Advanced Fog! I've implemented new features and solved some important problems. The full list of changes is below:

* Added "Transfer Reset" parameter
If ON, the fog is reset after every transfer (reset to off).

* Added "Auto Battle Fog" parameter
If ON, battles will use the same fog from map!

* Added colored fog
Now fogs can have colors!
You may add the color: {"r": 0-255, "g": 0-255, "b": 0-255} parameter to any fog's definition.

* Fixed bug "pixi cannot read property 'location' of undefined"
This bug happened to some users of other operating systems, but now it has been fixed.

* Fixed bug with uppercase OFF in [fog OFF]
Now it's less confusing to turn off the fog!


After substituting the old plugin, please delete and add it again in the Plugin Manager! You may check the updated tutorial to learn about how to use the new features.

Please note that the terms of use have been updated! If you want to use this plugin commercially, please read them here.

@Izzybelle @Fred Ransom @dragon1up I've fixed the bug you reported!
Here's the latest update for Advanced Fog! I've implemented new features and solved some important problems. The full list of changes is below:

* Added "Transfer Reset" parameter
If ON, the fog is reset after every transfer (reset to off).

* Added "Auto Battle Fog" parameter
If ON, battles will use the same fog from map!

* Added colored fog
Now fogs can have colors!
You may add the color: {"r": 0-255, "g": 0-255, "b": 0-255} parameter to any fog's definition.

* Fixed bug "pixi cannot read property 'location' of undefined"
This bug happened to some users of other operating systems, but now it has been fixed.

* Fixed bug with uppercase OFF in [fog OFF]
Now it's less confusing to turn off the fog!


After substituting the old plugin, please delete and add it again in the Plugin Manager! You may check the updated tutorial to learn about how to use the new features.

Please note that the terms of use have been updated! If you want to use this plugin commercially, please read them here.

@Izzybelle @Fred Ransom @dragon1up I've fixed the bug you reported!
Can I have an example of how to change the fog's colours ? Like I've done the following for a map proprieties
[fog dense]
(color: {"r": 100-255, "g": 0-255, "b": 0-255})


Unless it can only be done for custom fogs, in which case an example would be great :) + thanks for fixing up the previous error me and @Izzybelle @Fred Ransom had.
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
@dragon1up it can be done only with custom fogs. There's 3 fogs there as an example (red, green and blue).

You just need to add a new line with the color:
blue: {
speed: {x: 0.2, y: 0.07},
size: 1.0,
ambientDensity: 60,
playerDensity: 20,
playerRange: 5,
color: {"r": 0, "g": 0, "b": 255} <--- like this! :)
},
 

dragon1up

Veteran
Veteran
Joined
Sep 24, 2013
Messages
130
Reaction score
41
First Language
English
Primarily Uses
RMMV
@dragon1up it can be done only with custom fogs. There's 3 fogs there as an example (red, green and blue).

You just need to add a new line with the color:
blue: {
speed: {x: 0.2, y: 0.07},
size: 1.0,
ambientDensity: 60,
playerDensity: 20,
playerRange: 5,
color: {"r": 0, "g": 0, "b": 255} <--- like this! :)
},

Thanks just got back home..first thing I did was test it out and it works !! Amazing job once again Khas :)
 

Fred Ransom

Villager
Member
Joined
Sep 2, 2015
Messages
8
Reaction score
3
First Language
English
Primarily Uses
Hi I like the fog very much and am looking forward to the new Real-Time shadows for MV.
Sorry to see your ******* site close. You May want to reconsider the choice after learning
what happens to Engineers from job TO job or when the project is done the job is done.
I did find a easy Bug to fix that you may have fixed already. Here is a fixed line of your code:
Khas.Fog.Settings.TRANSFER_RESET = String(Khas.Fog.PARAMETERS["Transfer Reset"]).toLowerCase() == "on";
After this fix it worked perfectly.
Thank you.
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
@Fred Ransom thanks! Actually the error happens if you didn't remove/add the plugin again in the plugin manager.
But it's a very simple thing indeed :)
 

lonewolph

Veteran
Veteran
Joined
Oct 25, 2015
Messages
211
Reaction score
14
First Language
English
is it possible to add the ability to use blend modes on the fog?
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
380
First Language
Portuguese
Primarily Uses
RMMV
@lonewolph I guess it could be done! The fog is a sprite, so blend modes can be applied.
But I won't add any new features to this plugin (more details later!).
 

Ally

Linked Rooms Games Founder - Fleshforward
Member
Joined
Mar 17, 2012
Messages
332
Reaction score
154
First Language
Italy
Primarily Uses
RM2k
Hey @Khas :)
Thank you for the update...
I try it on my project and receive this error:
1.png
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:
attack on titan final season is airing tomorrow, I'm excited and scared at the same time!

Forum statistics

Threads
105,882
Messages
1,017,230
Members
137,607
Latest member
Maddo
Top