Khas Advanced Fog v3.0

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
375
First Language
Portuguese
Primarily Uses
RMMV
Khas Advanced Fog

Introduction
This is one of my graphics enhancement plugins for RPG Maker MV! The fog on this script is procedurally generated, completely processed by your graphics card with GLSL shaders.

Current version highlights
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
* Added "Auto Battle Fog" parameter
* Added colored fog
* Fixed bug "pixi cannot read property 'location' of undefined"
* Fixed bug with uppercase OFF in [fog OFF]

Attention
This plugin requires WebGL. There’s no way around this.
Old save files will not work correctly with this plugin.

Features
Easy to use
Effects are rendered using GLSL shaders
Comes with 3 fogs. You can easily add more
Dynamic fog
Variable fog density around the player
Colored fog
Battle fog

Screenshots
Click to enlarge!



Required Plugins
KhasCore
KhasGraphics

Download
You can download the Master Demo or all my plugins here (click me!).

Tutorial - How to install/use
Please carefully read this tutorial before using!
Additionally, you may download the demo to study and see the plugin in action.

@Meh made a video tutorial on custom fogs :)
You may watch it here (click me)!

Terms of Use
Please read the full terms included within the plugin's Help. Basically it's free for non-commercial use and not free for commercial use. Credit to Khas is required.
 
Last edited:

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
367
Reaction score
84
First Language
English
The game wont' launch for me at all. I checked to see if i had WebGL. I do.

/E:/-Last%20Envoy/js/plugins/KhasAdvancedGraphics.js:1305 Uncaught TypeError: Cannot read property 'Source' of undefined
/E:/-Last%20Envoy/js/plugins/KhasAdvancedFog.js:402 Uncaught TypeError: Cannot read property 'Source' of undefined
pixi.js:24595
Pixi.js 4.0.3 - ✰ WebGL ✰ http://www.pixijs.com/ ♥♥♥


rpg_managers.js:1756 TypeError: undefined is not a function
at Function.SceneManager.loadFilters (/E:/-Last%20Envoy/js/plugins/KhasAdvancedGraphics.js:597)
at Function.SceneManager.loadKhasPlugins (/E:/-Last%20Envoy/js/plugins/KhasAdvancedGraphics.js:586)
at Function.SceneManager.loadKhasPlugins (/E:/-Last%20Envoy/js/plugins/KhasAdvancedFog.js:237)
at Function.SceneManager.initialize (/E:/-Last%20Envoy/js/plugins/KhasCore.js:127)
at Function.SceneManager.run (rpg_managers.js:1608)
at Function.SceneManager.run
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
375
First Language
Portuguese
Primarily Uses
RMMV
@Solis you need to turn off my Advanced Graphics plugin. Use only KhasCore, KhasGraphics and KhasFog, in that order
 

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
367
Reaction score
84
First Language
English
Okay, thanks!

@Khas

That solved my issue. I guess the only thing I'm disliking about this plugin in so far is that I'm required to turn it on and off during map switches. Then, sometimes, a little debugger even shows up which is annoying to close. (even though nothing happened).

Is there a way I can get the fog only to show up if the note tag is on the map?

I want to use it to ways.

With Rain or after rain
or on certain maps, always.
 
Last edited:

SoSick.

Veteran
Veteran
Joined
Jun 29, 2016
Messages
223
Reaction score
190
First Language
english
Primarily Uses
RMMV
Hey dude! is there any chance that I can make the fogs density even lower? would be sick if you added a feature from your lighting plugin [ambient_light 75] <<< but also do this for fog!? thanks pal.
 

Meh

Villager
Member
Joined
Oct 20, 2015
Messages
27
Reaction score
24
First Language
Meep
Primarily Uses
RMMV
I just copied and pasted the events and comments into my game from the demo and they all worked fine.
Try that to see if it works. Wish you luck.


The game wont' launch for me at all. I checked to see if i had WebGL. I do.

/E:/-Last%20Envoy/js/plugins/KhasAdvancedGraphics.js:1305 Uncaught TypeError: Cannot read property 'Source' of undefined
/E:/-Last%20Envoy/js/plugins/KhasAdvancedFog.js:402 Uncaught TypeError: Cannot read property 'Source' of undefined
pixi.js:24595
Pixi.js 4.0.3 - ✰ WebGL ✰ http://www.pixijs.com/ ♥♥♥


rpg_managers.js:1756 TypeError: undefined is not a function
at Function.SceneManager.loadFilters (/E:/-Last%20Envoy/js/plugins/KhasAdvancedGraphics.js:597)
at Function.SceneManager.loadKhasPlugins (/E:/-Last%20Envoy/js/plugins/KhasAdvancedGraphics.js:586)
at Function.SceneManager.loadKhasPlugins (/E:/-Last%20Envoy/js/plugins/KhasAdvancedFog.js:237)
at Function.SceneManager.initialize (/E:/-Last%20Envoy/js/plugins/KhasCore.js:127)
at Function.SceneManager.run (rpg_managers.js:1608)
at Function.SceneManager.run
just copied and pasted
 

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
367
Reaction score
84
First Language
English
I figured it out thanks to Khas. Thanks though!
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
375
First Language
Portuguese
Primarily Uses
RMMV
@Solis About this "Is there a way I can get the fog only to show up if the note tag is on the map?"
I'll add something to allow more control and flexibility on the next version :)

@SoSick. You can create custom fogs! There's instructions on the plugin on how to do it
 

Meh

Villager
Member
Joined
Oct 20, 2015
Messages
27
Reaction score
24
First Language
Meep
Primarily Uses
RMMV
I made a little video tutorial that shows how to make custom fogs if anyone is interested.
I used atom to edit the code, but notepad++ or visual Studio would be ok too and wasn't hard at all.

@Khas
I'd like to know if there's anyway I could only have the fog active across half of the screen please? So it'll look like low laying fog.
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
375
First Language
Portuguese
Primarily Uses
RMMV
@Meh thanks for making a tutorial!

This is not possible yet. I intend to add masking on the next version, so you could do something like this :)
 

Meh

Villager
Member
Joined
Oct 20, 2015
Messages
27
Reaction score
24
First Language
Meep
Primarily Uses
RMMV
Your very welcome, gives you more time to work on improving this already great plugin

Cool, it'll keep a look out for the next version and will post a screen shot of the hoard approaching through the mist. Man I can already see it!
 

Fred Ransom

Villager
Member
Joined
Sep 2, 2015
Messages
8
Reaction score
3
First Language
English
Primarily Uses
Hi, I Do like the KhasAdvancedFog.js but I found a problem. It works fine in the development computer but in a non development environment I get "TypeError"\n"Cannot read property 'location' of undefined". The OS did not matter. If fog was turned on it would crash. I tried ten different computers with different OS. If the development environment was not there, it would crash. Here is a pic of the crash I shrunk to 800x473. Can you help me?
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
375
First Language
Portuguese
Primarily Uses
RMMV
@Fred Ransom can you access the console (by pressing F8 or F9, I think) in this version? Unfortunately I can't get much information from the screenshot.
 

Fred Ransom

Villager
Member
Joined
Sep 2, 2015
Messages
8
Reaction score
3
First Language
English
Primarily Uses
Hi, I tried to get CONSOLE To work outside of the development environment. I use the YEP_CoreEngine.js to bring it up in the
windows7 system I Have. I have three WIN7 Boot drives, Three LINUX boot drives, One freshly made WIN10 System. Note I had an updated
WIN7 to WIN10 but when I tried to run it had deactivated itself. I have a 500Gb FAT32 on my Blacx Theraltake backup drive to transfer files
between WIN7 and WIN10 system. The GOOD NEWS IS that the Fresh copy of WIN10 the Test6 game that I Made works.
http://www.game.poweroc.com/Test6/www/index.html
This Game was Designed to work in android but like Linux it will NOT and in some WIN7 systems. To check this out I Downloaded
the New Steam RPGMaker MV into One of my Linux Boot drives. Even with the New UbuntuMATE 17.04.2 the program crashes when I
turn on the fog in a Linux system. I then made a New Game, one without any plugins except the YEP and Starter ones.
http://www.game.poweroc.com/Test7/www/index.html
This One works in all system and OS's and my Pixi7 android device. These are basic games, no thrills.
Check them out. if Test6 works, that system will work with your fog.
Test7 is to compare with Test6. It is to check your system with RPGMV games. If Test7 runs you can run RPGMaker MV Games.
Thank you for your help on this matter. I am also a patron of your on *******.
 

Khas

Detective lv73
Veteran
Joined
Sep 16, 2012
Messages
282
Reaction score
375
First Language
Portuguese
Primarily Uses
RMMV
@Fred Ransom thank you for the detailed response. I have windows 10 here and your tests run perfectly fine. I'll do some searches and see if I can find what the problem is.

Could you run both tests on your systems, press F2 and check if it's displaying "WebGL Mode" on the top left corner of the screen?
 

Fred Ransom

Villager
Member
Joined
Sep 2, 2015
Messages
8
Reaction score
3
First Language
English
Primarily Uses
Yes, Both Test6 and Test7 in all OSs are running in WebGL Mode.
 

Skurge

" (GASP) What's going on!? "
Veteran
Joined
Jul 12, 2015
Messages
1,084
Reaction score
224
First Language
English
Primarily Uses
N/A
What do you think is the easiest method to allow battle fog to operate if the battle begins from a fogy map? I don't want to have battles run off the plugin commands if they are present on a map or not prior to the fight.

I also noticed the fog seems quite dense even when set on rare since the changes you made with these new plugins, is there a way we can alter the fog density further?
 

Gonor

Veteran
Veteran
Joined
Oct 15, 2012
Messages
140
Reaction score
68
First Language
German
Primarily Uses
RMMV
Hey there,
is there a way to change to fog's color? I tried tinting the screen but this appears to happen on a different layer.

So long.
Gonor
 

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

Latest Threads

Latest Profile Posts

Seems like people have stopped looking both ways before crossing the road nowadays. Blindly walking out into a into a road only ends in disaster.
Just finished planning out the skeleton of the main quest line of my new game. I'm so excited for it!
Integrating Jason Perry's japan tile set while listening to Murray Atkinson's Heaven and Earth background music.
I forgot I had an account on rpgmakercentral lol
"What do you think the best place to visit on this cold days?" "Hell..."

Forum statistics

Threads
94,539
Messages
921,737
Members
124,406
Latest member
keyboardjockey
Top