OcRam - Lights plugin

Vis_Mage

Novice Magician
Veteran
Joined
Jul 28, 2013
Messages
511
Reaction score
176
First Language
English
Primarily Uses
RMMV
After getting some time to use the plugin, I've got an update suggestion, that could be neat.

Perhaps there could be a configurable area for a handful of preset light codes in the plugin config. Then, you could use a comment along the lines of <preset:1> to load the light tag of preset 1. I mostly recommend this so that, if someone were to later decide to edit a commonly used light (such as torches or lamp posts), that they wouldn't have to hunt for and edit dozens of events.
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
522
Reaction score
608
First Language
Finnish
Primarily Uses
RMMV
After getting some time to use the plugin, I've got an update suggestion, that could be neat.

Perhaps there could be a configurable area for a handful of preset light codes in the plugin config. Then, you could use a comment along the lines of <preset:1> to load the light tag of preset 1. I mostly recommend this so that, if someone were to later decide to edit a commonly used light (such as torches or lamp posts), that they wouldn't have to hunt for and edit dozens of events.
Thank you for the idea!

I will add this feature in next version of this plugin.
 

Feraleth

Veteran
Veteran
Joined
Jun 19, 2019
Messages
53
Reaction score
8
First Language
German
Primarily Uses
RMMV
@OcRam is there now a light blockade for walls? ^^ I asked about it a while ago. :) Unfortunately I couldn't find anything in the current version either. Do you still plan to bring that in?
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
522
Reaction score
608
First Language
Finnish
Primarily Uses
RMMV
@OcRam is there now a light blockade for walls? ^^ I asked about it a while ago. :) Unfortunately I couldn't find anything in the current version either. Do you still plan to bring that in?
Thank you for the message,

I answered then: "Shadows are not in next version. Still figuring how I do it with minimal performance impact."

Now I answer:
With out WebGL calculating shadows for each (moving) event is really slow (you need to calculate them in every frame before light source is drawn). I like to keep this as light-weighted as possible.

But I have not abandoned all hope what it comes to real-time shadows ;)
 

Feraleth

Veteran
Veteran
Joined
Jun 19, 2019
Messages
53
Reaction score
8
First Language
German
Primarily Uses
RMMV
Thank you for the message,

I answered then: "Shadows are not in next version. Still figuring how I do it with minimal performance impact."

Now I answer:
With out WebGL calculating shadows for each (moving) event is really slow (you need to calculate them in every frame before light source is drawn). I like to keep this as light-weighted as possible.

But I have not abandoned all hope what it comes to real-time shadows ;)
To be Continued xD

I think it's great that you put so much emphasis on performance and I really can only hope that you will find a solution despite the hard difficulty :)
 
Last edited:

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
106
Reaction score
15
First Language
french
Primarily Uses
RMMV
Yeah sorry, I figured it out. Your plugin is amazing, and I'm trying my best to understand it.
I've read the help section multiple times but until now I've only used simple lights systems, yours looks very complete, and I'm sure I can achieve great things with it.

Sorry to bother you with another question but I think I understand your plugin command tints the entire screen with an absolute value rather than a relative one, but is there a workaround for overlays ? My fogs and overlays gets tinted too and I went from this :

To this :

Any news on this ?

Also, is it possible to use your plugin during daytime ? (when light_bg equals #ffffff)


Like this :

1593550704458.png

I want to use the terrain tag attribute to make this slab glow but I cant if it's day time.
(I'm using another plugin to demonstrate what I want to achieve)
 

Ace of Spades

Veteran
Veteran
Joined
Jan 19, 2017
Messages
120
Reaction score
160
First Language
English
Primarily Uses
Any news on this ?

Also, is it possible to use your plugin during daytime ? (when light_bg equals #ffffff)


Like this :

View attachment 149619

I want to use the terrain tag attribute to make this slab glow but I cant if it's day time.
(I'm using another plugin to demonstrate what I want to achieve)
You'll have to change the default daytime color to something else for the lights to show. I used a very light grey for my daytime tint. You can use a hex color selector online to find an off-white color you like.
 

user3k

Villager
Member
Joined
Feb 1, 2014
Messages
13
Reaction score
2
First Language
Portuguese
Primarily Uses
RMMV
Hello @OcRam

In my project, the chars turn up yellow, but in your demo they are normal. I updated the libs folder with my project folder (I made a new project), and in your project the chars turned yellow. How to solve?

tnks
 

Attachments

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
522
Reaction score
608
First Language
Finnish
Primarily Uses
RMMV
Hello @OcRam

In my project, the chars turn up yellow, but in your demo they are normal. I updated the libs folder with my project folder (I made a new project), and in your project the chars turned yellow. How to solve?

tnks
Thank you for the message,

Seems like you got yellow tint or light color hex is yellow.

To solve this use no tint and light source color #ffffffff
 

user3k

Villager
Member
Joined
Feb 1, 2014
Messages
13
Reaction score
2
First Language
Portuguese
Primarily Uses
RMMV
Thank you for the message,

Seems like you got yellow tint or light color hex is yellow.

To solve this use no tint and light source color #ffffffff

I've changed the plugin settings 'other settings -> battle/player data -> color' and changed to #ffffffff and it worked, thank you.

But in the battle, the 'cone' of the light appear wrong, showing herself in the middle of the screen. How can i solve, so that they appear in the middle of the screen (picture attached)?

Btw, I've found a bug in the demo: in the Battle Light event, when I choose 'ALARM!', I got an error.
And in the plugin, 'other settings -> battle data', when I change the degree, I got an error too.
 

Attachments

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
522
Reaction score
608
First Language
Finnish
Primarily Uses
RMMV
I've changed the plugin settings 'other settings -> battle/player data -> color' and changed to #ffffffff and it worked, thank you.

But in the battle, the 'cone' of the light appear wrong, showing herself in the middle of the screen. How can i solve, so that they appear in the middle of the screen (picture attached)?

Btw, I've found a bug in the demo: in the Battle Light event, when I choose 'ALARM!', I got an error.
And in the plugin, 'other settings -> battle data', when I change the degree, I got an error too.
Thank you for the message,

There is Offset X parameter which allows you to adjust x position for light sources. Note: Battle light "Right light source" will invert offset x parameter.

There was a bug in battle light plugin command and it is now fixed and ready for downloads!

Latest version is now v2.10

I will update demo project in next few weeks. To fix some weather, audio and light bugs. All plugins are always updated and uploaded ASAP.
 

user3k

Villager
Member
Joined
Feb 1, 2014
Messages
13
Reaction score
2
First Language
Portuguese
Primarily Uses
RMMV
Hello @OcRam

After some tests, I changed the offset value to 400 and it worked.

This is something that is 'default' in the plugin? I dont know if is because I copied the plugin from the demo, and the problems affect only me, but I think this options should be default (color #ffffffff and x offset).

I know there is instructions in the plugin (and the demo is for all your pulgins), but I missed some noobie friendly instructions, like some area with a npc showing the commands (ex: for changing the light in the map, use the plugin command light_bg #303040ff 0, and showing the effect - also telling to use the plugin command to change the bg color before using the command to show the light for the player/follower). The 'all' area is a bit confuse for me, at least in the beginning.

Thanks for your work in the plugin and your help.
 

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
106
Reaction score
15
First Language
french
Primarily Uses
RMMV
You'll have to change the default daytime color to something else for the lights to show. I used a very light grey for my daytime tint. You can use a hex color selector online to find an off-white color you like.
I did everything, I even downloaded the demo project from @OcRam website but I really can't figure out.

How to make lights visible in daytime ? :kaoeh:

People tell me to change abient color, or to modify the daytimecolor, but it seems that it's not enough

Even in the demo project, lights doesn't work in daytime...Am I really missing something obvious ?
 

Alexandre

Veteran
Veteran
Joined
Jul 8, 2015
Messages
85
Reaction score
36
First Language
French
Primarily Uses
A quite interesting collection of plugin.
 

Beachsidey0

Villager
Member
Joined
Jun 3, 2020
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RMMV
Sorry to bug but having a conflicting plugin error with the lighting from your plugin the plugin i added before the error was WeightGainSystem.js. I tried moving the plugin I added around to like 10 different spots first but the same error every time. The first pic is the the error message with the line it happened on and the others are my current plugin order.
 

Attachments

belatucadrus

Veteran
Veteran
Joined
Mar 6, 2017
Messages
106
Reaction score
15
First Language
french
Primarily Uses
RMMV
I still can't use your plugin :(

I tried everything to show the lights during daytime, but it seems it isn't possible. Also it messes with my overlays and it looks like I can't make "dark lights" either (e.g : characters with a dark aura that darkens the space around him)
 

Ace of Spades

Veteran
Veteran
Joined
Jan 19, 2017
Messages
120
Reaction score
160
First Language
English
Primarily Uses
I still can't use your plugin :(

I tried everything to show the lights during daytime, but it seems it isn't possible. Also it messes with my overlays and it looks like I can't make "dark lights" either (e.g : characters with a dark aura that darkens the space around him)
Hey, sorry I didn't reply sooner. If it helps, for my DayBG Color in the Lighting Plugin, I'm using #F1F1F1FF
If you run that through the hex color selector, you'll see it's a very light gray, because I don't want the lighting to very strong when in daytime.
This is the color I used for my flames, which is a bright yellow: #FFF72C

Here's the final result in game:

Daylights.png

It was intentionally just a subtle glow while it's in the daytime, but you can adjust the colors accordingly using that website I linked you to if you want a darker daytime for example.
 

Beachsidey0

Villager
Member
Joined
Jun 3, 2020
Messages
8
Reaction score
1
First Language
English
Primarily Uses
RMMV
I still can't use your plugin :(

I tried everything to show the lights during daytime, but it seems it isn't possible. Also it messes with my overlays and it looks like I can't make "dark lights" either (e.g : characters with a dark aura that darkens the space around him)
For dark lights around certain characters I don't think you can but for followers you could just us the plugin command light_follower 1 1 400 #0E0B0A and pick the color and pick a follower 1-3.
 

OcRam

Servant of the Universe
Veteran
Joined
Aug 2, 2016
Messages
522
Reaction score
608
First Language
Finnish
Primarily Uses
RMMV
Sorry to bug but having a conflicting plugin error with the lighting from your plugin the plugin i added before the error was WeightGainSystem.js. I tried moving the plugin I added around to like 10 different spots first but the same error every time. The first pic is the the error message with the line it happened on and the others are my current plugin order.
Thank you for the message,

And sorry for late answer ( summer time ;p )

It seems this error comes from WeightGainSystem.js line 749. Page object is undefined which is not handled there.

I still can't use your plugin :(

I tried everything to show the lights during daytime, but it seems it isn't possible. Also it messes with my overlays and it looks like I can't make "dark lights" either (e.g : characters with a dark aura that darkens the space around him)
Thank you for the message,

This plugin will create overlay layer which can be set to any color with any opacity. After that plugin will make colored gradients (specified in light sources) with multiply blend mode to overlay layer.

Because of this technique "dark lights" in day time (while overlay is pure white) is not possible to do. As already stated by @Ace of Spades and @Beachsidey0
 

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

Latest Threads

Latest Posts

Latest Profile Posts

*sigh* I'm so sick of this heat! :kaosigh::kaoeh:

Between Rona and MZ, might as well buckle down and get serious in dev
I did it. I finish the test after 2 days 6 different subjects. Now I'm freeeeeeee
Got a nice little platform coming along backwards compatible with MV.

Forum statistics

Threads
100,659
Messages
978,202
Members
132,280
Latest member
ju9SW
Top