Just curious to know, since terrain tags limit you to 7- is there a method you know of that can allow us to do more?
Khas Advanced Graphics (deferred lighting and procedurally generated fog)
JS Plugin Releases (RMMV)Hello Khas.
More extensive testing with your scripts crystalized to few ideas. As your current script is very light and painless to system resource, it might be superb to use for more effects like particle system for dynamic weather. (my weather is affected by about 10 variables like region temperature, humidity, altitude, wind, fogprobability, storm probability and changes as often as region weather stability checks ticks it should change.
Using your script I was able to achieve nice results based on complex weather system (ambient light is affected by amount of clouds on sky, intensity of rain, day/night cycle, moon phase etc.). I made multiple fog variants speeds based on wind direction at region. (Especially in mountain area when you are inside clouds - faster moving mist nice simulates such effect)
I am not programmer but looking at weather and particle effects - they are pretty close to fog system to me.
If I think about rain - it just multiple tiny water "lights" moving from top to down in ankle based on wind strenght and direction.
I was able to achieve very nice results for example for ambient lightnings during storm (at this moment they are just few paralel events visible during storm only as few phases of "lightning+thunder sound effect" (by switching event pages) using random position for event on field 🙂 - but they look marvelous.
But for each snowflake / rain drop it is not probably too clever idea use hundred or so paralel events with scripting 🙂 while it could maybe be done "like fog". There is a way around to use "bigger blocks" with multiple rain drops I plan to try this evening.
But I was thinking, maybe for future features of script, something like formulas for speed, direction, rotation and multiply of particles might be another bonus for users.
More extensive testing with your scripts crystalized to few ideas. As your current script is very light and painless to system resource, it might be superb to use for more effects like particle system for dynamic weather. (my weather is affected by about 10 variables like region temperature, humidity, altitude, wind, fogprobability, storm probability and changes as often as region weather stability checks ticks it should change.
Using your script I was able to achieve nice results based on complex weather system (ambient light is affected by amount of clouds on sky, intensity of rain, day/night cycle, moon phase etc.). I made multiple fog variants speeds based on wind direction at region. (Especially in mountain area when you are inside clouds - faster moving mist nice simulates such effect)
I am not programmer but looking at weather and particle effects - they are pretty close to fog system to me.
If I think about rain - it just multiple tiny water "lights" moving from top to down in ankle based on wind strenght and direction.
I was able to achieve very nice results for example for ambient lightnings during storm (at this moment they are just few paralel events visible during storm only as few phases of "lightning+thunder sound effect" (by switching event pages) using random position for event on field 🙂 - but they look marvelous.
But for each snowflake / rain drop it is not probably too clever idea use hundred or so paralel events with scripting 🙂 while it could maybe be done "like fog". There is a way around to use "bigger blocks" with multiple rain drops I plan to try this evening.
But I was thinking, maybe for future features of script, something like formulas for speed, direction, rotation and multiply of particles might be another bonus for users.
@Kilitar Thanks for the suggestions and reports!
1) In order to implement this effect accurately, I need to implement 3D environment recognition, otherwise the shadowed areas will look really weird. This might be added in the future 🙂
2) Maybe. I'll take a look into this as well.
3) Interesting, I didn't thought of this. I'll fix it.
4) This sounds weird, I need to test it here and check if this behavior is expected.
Actually I have a lot of features I intend to implement, and particles is one of them. Anyhow, I liked the weather system idea based on many variables, it sounds really cool. I've added it to my todo plugin list. Now that I have access to shaders, I want to try a lot of graphic improvements! I have some ideas for rain and snow already 😀
I just need to find time to do so hahaha I wish I had a time-turner.
@IttleRPG thank you!
@Skurge Unfortunately there's no way to add more tile tags 🙁
Also, would you mind sending the error again? I can't see the attachment for some reason.
1) In order to implement this effect accurately, I need to implement 3D environment recognition, otherwise the shadowed areas will look really weird. This might be added in the future 🙂
2) Maybe. I'll take a look into this as well.
3) Interesting, I didn't thought of this. I'll fix it.
4) This sounds weird, I need to test it here and check if this behavior is expected.
Actually I have a lot of features I intend to implement, and particles is one of them. Anyhow, I liked the weather system idea based on many variables, it sounds really cool. I've added it to my todo plugin list. Now that I have access to shaders, I want to try a lot of graphic improvements! I have some ideas for rain and snow already 😀
I just need to find time to do so hahaha I wish I had a time-turner.
@IttleRPG thank you!
@Skurge Unfortunately there's no way to add more tile tags 🙁
Also, would you mind sending the error again? I can't see the attachment for some reason.
Huh wierd i don't know why it did not send-but here we go:
@Skurge thanks! Can you send me the console information as well? You can do that by pressing F8
Here is the console information, now i've noticed something very unusual and that is you can see on the console it's mentioning the Terrax plugin but the problem is the terrax plugin has been removed for this test. How it's still referencing it is a real mystery to me.
@Skurge this is happening when calling a plugin command. My plugin is receiving an invalid parameter (it should be receiving a string, but it's receiving something undefined instead), so this some other plugin's fault. You may solve this by placing my plugin before the others.
Anyway, I will add a security check to prevent crashes when receiving invalid parameters from other plugins.
The 3rd line below is the problem. It expects a string, but command is undefined for some reason.
Anyway, I will add a security check to prevent crashes when receiving invalid parameters from other plugins.
The 3rd line below is the problem. It expects a string, but command is undefined for some reason.
Code:
Game_Interpreter.prototype.pluginCommand = function(command, args) {
var handled = false;
switch (command.toLowerCase()) {
Hm I have updated and removed any plugins that could possibly associate itself with your one and from the beginning your plugins are positioned at the very top-but it seems to dislike this plugin for some reason.
It's designed to change the colours of the rain, I use it to make it merge and fluctuate colours to match along with the neon lit backgrounds.
It's designed to change the colours of the rain, I use it to make it merge and fluctuate colours to match along with the neon lit backgrounds.
@Skurge perhaps it's other plugin that is messing with plugin commands. Anyway, I'll add a safety check to prevent this in the next version 🙂
I'd appreciate that-thanks for your help! I'll be sure to show you how beautiful it looks when the fixes are complete!
This may not be possible at all, I don't know enough about the engine to even hazard an educated guess, but is there a possibility to use normal maps on the sprites? It would make dungeons look amazing if that was implemented. Anyway, thanks for the plugin, even without further improvements it already enhances maps a great deal.
Hey guys! How is everything doing? I really liked the idea of this plugin, I installed on my project, but, it looks like the light is very weak here... like the image attached, it's very hard to see the blue... Is there a way to make it more brighter?
Thanks a lot in advance!
Thanks a lot in advance!
I had the same question before, the simple method to fix that would be to edit the image file itself- I opened my blue graphic in GIMP and changed it's brightness to a higher level and it seems to work.
Awesome! I'll try that today, thanks a lot!
Its also very easy to add as much new lights (even with different shapes and sizes) as you want. In plugin description it is described and it is simply copy/paste. You dont need to be scripter to do that.
Hey Khas,
I can't tell you how happy I was to see that you released this for RMMV. After converting my project from VXA, I was kind of at a loss for good lighting and I was unhappy with the few available options, but when I found this plugin a couple days ago I immediately started redoing all the lighting in my game and it looks GREAT. I did run into a small problem, however.
In Windows (at least in the game test), your plugin works flawlessly. On Android, the game doesn't start. I get an error before the title screen pops up: "TypeError: Cannot read property 'blendmodes' of undefined."
Unfortunately there's no console to call on in Android (not that I'm aware of, anyway) so I don't have any more data for you than that. Any idea what might be happening?
Quick edit: Not sure it matters, but settings are all default in the plugin, I didn't change anything. I do have 4 custom lights added in (which all work as they should).
I can't tell you how happy I was to see that you released this for RMMV. After converting my project from VXA, I was kind of at a loss for good lighting and I was unhappy with the few available options, but when I found this plugin a couple days ago I immediately started redoing all the lighting in my game and it looks GREAT. I did run into a small problem, however.
In Windows (at least in the game test), your plugin works flawlessly. On Android, the game doesn't start. I get an error before the title screen pops up: "TypeError: Cannot read property 'blendmodes' of undefined."
Unfortunately there's no console to call on in Android (not that I'm aware of, anyway) so I don't have any more data for you than that. Any idea what might be happening?
Quick edit: Not sure it matters, but settings are all default in the plugin, I didn't change anything. I do have 4 custom lights added in (which all work as they should).
@Uthgard I know! They would look awesome with normal mapping 😀
But unfortunately this is not possible. Perhaps one day, but I can't say anything for sure.
@Fabricio assim como ele já te disse, é só você alterar os gráficos da maneira que quiser! Também dá pra criar novos efeitos, dê uma olhadinha no Help do plugin xD
@Skurge @Kilitar thanks for the help!
@Sacrifyx Thanks for the compliments! Unfortunately, this plugin requires WebGL to do all this fancy lighting, and it isn't available in some mobile devices for some reasons. Even if I implemented a simpler version of it without WebGL, these mobile devices wouldn't have sufficient power to handle the effects. Thus, I'm focused on development for devices that support WebGL.
I'm sorry this can be frustrating, but there's no way around it. Unless someone figure out how to enable WebGL in those devices.
Edit:
Guuuuuys the new version of the script is almost ready! It will be released soon, with awesome new features 🙂
But unfortunately this is not possible. Perhaps one day, but I can't say anything for sure.
@Fabricio assim como ele já te disse, é só você alterar os gráficos da maneira que quiser! Também dá pra criar novos efeitos, dê uma olhadinha no Help do plugin xD
@Skurge @Kilitar thanks for the help!
@Sacrifyx Thanks for the compliments! Unfortunately, this plugin requires WebGL to do all this fancy lighting, and it isn't available in some mobile devices for some reasons. Even if I implemented a simpler version of it without WebGL, these mobile devices wouldn't have sufficient power to handle the effects. Thus, I'm focused on development for devices that support WebGL.
I'm sorry this can be frustrating, but there's no way around it. Unless someone figure out how to enable WebGL in those devices.
Edit:
Guuuuuys the new version of the script is almost ready! It will be released soon, with awesome new features 🙂
How soon are we talking about 😉
Can't wait for it, thanks for the great work Khas!
Can't wait for it, thanks for the great work Khas!
Thanks for the reply Khas. As far as I can tell my phone does support WebGL, at least in Chrome browser. Is your (or rpg makers) implementation separate or different in some way, or is the support linked to the browser and not the phone in general?
Original thread: https://forums.rpgmakerweb.com/threads/khas-advanced-graphics-deferred-lighting-and-procedurally-generated-fog.73911/
