GL_Fog version 1.1.0

chaucer

Veteran
Veteran
Joined
Aug 6, 2014
Messages
278
Reaction score
439
First Language
English
Primarily Uses
RMMV
GL_Fog : 1.1.0
Author : Chaucer


Introduction :


A simple plugin which utilizes webgl to create randomized fog, no images required! Not only does this plugin create randomized fog, but it also simulates the movement of fog! This plugin is highly customizable, the fog has many parameters to help tailor it to your needs.

Features :
  • Create completely randomized fog.
  • No pictures required.
  • Highly customizable.

Screenshots :

Screenshot from 2020-01-22 14-38-47.png

Screenshot from 2020-01-22 14-38-54.png

Screenshot from 2020-01-22 14-39-02.png

Terms of use :
This Plugin may be used commercially, or non commercially so long as credit
is given, either in the games credit section, or in a text file alongside
the game. This plugin may NOT be sold, or Plagiarized. This plugin may
be extended upon, and shared freely.

Download :
GL Fog
 

Attachments

Last edited:

TenTranVN

Veteran
Veteran
Joined
Apr 13, 2017
Messages
165
Reaction score
17
First Language
Vietnam
Primarily Uses
RMMV
Can it be combined on a map! I mean opacity
.And does it reduce performance?
 

chaucer

Veteran
Veteran
Joined
Aug 6, 2014
Messages
278
Reaction score
439
First Language
English
Primarily Uses
RMMV
Combined on map? I'm not sure I follow, but the plugin adds fog to the map correct. You can adjust the opacity as well, yes. The fog will even transition to battles as well. :)

As for performance, there is some minor performance overhead. I wouldn't recommend adding this to a mobile game( it didn't work when I tried it, and the fps was really low ), but for the typical computer there shouldn't be any issue.
 

Creative Ed

Veteran
Veteran
Joined
Sep 16, 2013
Messages
313
Reaction score
328
First Language
Portuguese
Primarily Uses
RMMV
Looks awesome to create some dream sequences :)
Nice plugin!
 

beenbaba

Slowly getting there
Veteran
Joined
Apr 28, 2015
Messages
289
Reaction score
158
First Language
English
Screenshots don't do this plugin justice. It looks super nice and runs really well
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
528
Reaction score
224
First Language
thai
Primarily Uses
RMMV
I'm confuse
is this just this command or there enable disable command I miss
because it's not working in new fresh project
3.JPG
 

chaucer

Veteran
Veteran
Joined
Aug 6, 2014
Messages
278
Reaction score
439
First Language
English
Primarily Uses
RMMV
I just tested out the issue you're having, and this was a minor oversight on my end it seems as though fadein is required, you could simple specify "fadein 1" at the end of the plugin arguments, and it should work, however I will fix it so that it is no longer required.


edit : actually, you know what? the issue is not what I initially thought, took me a while before I realized that colors are whole number values, not floats.

Code:
   argument[gl_fog] : color R G B
---------------------------------------
   description : Define the color of the fog R( red ) G( green ) and B( blue )
   are whole numbers, a number between 0 ( no color ) and 255 ( full color ),
   each value should be seperated by a space.alternatively, script snippets,
   can be spliced in instead of a number.
---------------------------------------
   example : color 255 100 50
   example : color $gameVariable.value(1) 100 $gameVariable.value(2)
The examples I posted were from a unreleased version before I realized float values don't work in variables, so I alrtered the way it works, I'll update the examples thanks for pointing this out.


edit2:
● Version : 1.0.1
● Date : 01/31/2020
✩ updated documentation.
 
Last edited:

Nicke

Fortune seeker
Veteran
Joined
Apr 4, 2012
Messages
547
Reaction score
549
First Language
Swedish
Primarily Uses
RMMV
Great plugin! I have a question. Is it possible to add a feature where you can specify a region or event for the fog to be placed at? Like say I have a big map and I want to hide certain places for the player until they go inside the fog.
 

chaucer

Veteran
Veteran
Joined
Aug 6, 2014
Messages
278
Reaction score
439
First Language
English
Primarily Uses
RMMV
Currently, it's not possible to do so with this plugin while it definitely is a possibility in the future, perhaps when I find time again. :)
 

Iqus

inVictor
Member
Joined
Oct 17, 2013
Messages
28
Reaction score
11
First Language
Spanish
Primarily Uses
RMMV
Hello Chaucer, really nice plugin!

I'm having some strange effects, however, where the fog seems to disconnect in a rectangular way in some places:

fog.png

I thought, maybe it's my resolution (1088x612), or maybe one of my plugins is caunsing interference but...:

1586215062540.png

Tried on a freshlymade project and it was still there.

Any ideas?

Thanks! And again, great work :)
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
528
Reaction score
224
First Language
thai
Primarily Uses
RMMV
hi
can I suggest something
now the gl fog is above everything include show picture
if there a plugin command that make it under show picture would be cool
because the fog is over the bust picture
it is good and bad in difference time
thank you

image_20200428_154856.jpg
 

chaucer

Veteran
Veteran
Joined
Aug 6, 2014
Messages
278
Reaction score
439
First Language
English
Primarily Uses
RMMV
@Iqus this is interesting, I haven't seen this issue in any of my testing, if you can could you pm me about this, I'd like to try to resolve this issue asap. if anyone else has this issue please let me know as well, as it may help narrow down the cause of the problem.

@pasunna I will move the fog below the picture by default, and I will add the ability to specify the layer position as well. Thanks for the feedback! :)
 

chaucer

Veteran
Veteran
Joined
Aug 6, 2014
Messages
278
Reaction score
439
First Language
English
Primarily Uses
RMMV
● Version : 1.1.0
● Date : 01/31/2020
✩ Fixed "Cannot read property '_fogBarrier' of undefined Line:559:38".
★ Add fog layer options( via plugin manager ).

@pasunna I apologize, I didn't add a plugin command, at least, not quite yet, I've got some other features planned for this pluign as well, in the next update I'll add a plugin command for this. For now it's left as a plugin manager variable.
 

pasunna

Veteran
Veteran
Joined
Feb 3, 2019
Messages
528
Reaction score
224
First Language
thai
Primarily Uses
RMMV
um... don't need to apologize...
unlike I pay you to do it
just do as you comfort
and thank you for your great work
 

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

Latest Threads

Latest Posts

Latest Profile Posts

*when the One Map Challenge is the only time you can finish a game*
Drifty wanted to make sure the default MV spark animation lived on, so he made it in Effekseer for the contest :guffaw::guffaw::guffaw:
Thanks to a post in a forum thread we can better create MV/MZ plugins in Haxe.
Latest video of my adventures in Kingdom Hearts 3~
Imagine every unfunny joke gets a laugh track, and it doesn't top until you genuinely laugh at that unfunny joke.

Forum statistics

Threads
99,565
Messages
966,771
Members
131,199
Latest member
TheFaz
Top