MZ - [MZ & MV v1.9.7] Shora Lighting & Shadow System

● ARCHIVED · READ-ONLY
Started by Shora 656 posts Page 28 of 33 View original ↗
  1. ShadowDragon said:
    @Visya999 can you show a gif or screenshot between those and possible
    item/actor setup for those lights?

    as it doesn't happen on my end though.
    I would also like to ask how to make the map light (day), otherwise I couldn’t find anything about it, sorry, but my English is not perfect, and the translator is crooked
  2. @Visya999 I dont own MZ, but checking the plugin alone, it is a bit outdated,
    as the latest version 1.9.4 is 100kb+ and yours only 77-78kb.

    download the latest and retry again and or demo which explain how to add light
    and how to turn it off if needed.
  3. Hello all!

    I am wondering if anyone else has had this issue that I am getting when using the lighting plugin.

    When I test start my project from the beginning, the lights will look like this:

    fromnewgame.png

    However, when I load this project from a save that happened right after the screenshot above, it looks like this:

    ongameload.png


    I am just wondering how I can fix the inconsistencies in lighting. I am a big fan of this plugin! It's entirely possible that I'm using it wrong, though..

    Any help would be appreciated :)
  4. @Draemorin depends if your light was on or off (also based on map notetag).
    if its off and turns it on an loaded saved file, than I have no clue.

    you can try to set a switch or double check the demo if it also happens there,
    otherwise, set the plugin lower or higher in the plugin list.

    you can try a clean project to see if it happens there with only this plugin,
    if it persist, than report back so @Shora can take a look at this if its a bug
    somewhere in the plugin.

    but it's hard to tell currently how it happens.
  5. This light system is not fully compatible with PIXI 5.3.3, for those interested in implementing it.
  6. Hi! I'm trying out this plugin with MZ
    .
    1. How do I make a light that follows the player?

    I tried creating a custom light playerLight and assigning that to the character using a note tag: [light playerLight]

    That worked at first but when I call "Change items" to give the player an item, the light disappears! Why?

    2. How do I set ambient light for a map (daylight, night)?

    3. The Terrain Tag doesn't seem to work. If I use regions, then I see dynamic shadows.
  7. light1.png
    I'm also noticing this issue that using Region 3 leaks light in certain areas. What am I doing wrong?
    light2.png
  8. @tarmonster1 I think you need to check the demo, as 2 height tall wall
    require region 2 and not 3 which the light goes through, check the demo
    how it's done as I dont have the issue you are having.
  9. ShadowDragon said:
    @tarmonster1 I think you need to check the demo, as 2 height tall wall
    require region 2 and not 3 which the light goes through, check the demo
    how it's done as I dont have the issue you are having.

    The screenshots are from the demo. That is what I am using. That room has 2 and 3 height walls.
  10. than it's weird, it might be the latest version as I use 1.9.4 still or 1.9.2 and no
    issues on those version, so it's hard to tell why it does that.
  11. @Shora any news on next update?
  12. @Shora :
    Your plugin is totally amazing! Thanks so much for your hard work!

    @everyone
    Is there a way to create an "infinite distance" light source (e.g. sun or moon) that casts parallel shadows? I'd like to use this to create a nice difference in direction of shadows cast from e.g. buildings in the same map between morning/noon/evening to show the passage of time. And placing several light sources in the map wouldn't work because the shadows are relative to those sources. Setting map ambient would light the whole map but wouldn't create the desired effect either because it lacks shadow casting. Anybody have any idea?
  13. Hello, I have an issue when the ambient lighting. I have my default lighting set in the plug in, but when I use the plugin command to change it in Game, it always turns the ambient lighting to pitch black. I'm typing the plugin command as "ambient <#******> <60>. I'm using MV.
  14. Curious if there's a way to have an event be able to 'detect' when it's in a light source. I think it'd be really interesting to have a creature that started moving once it was illuminated by the player's torch, but I don't know if there's a way to do this. Any suggestions?
  15. Okay, I must sound like mentally diminished, but I've added the plugin, literally copy/pasted everything from the demo, yet I have no lights appearing? What did I do wrong? I have copied the light folders etc too?
  16. Ryuukun said:
    Okay, I must sound like mentally diminished, but I've added the plugin, literally copy/pasted everything from the demo, yet I have no lights appearing? What did I do wrong? I have copied the light folders etc too?
    Not to be condescending, but the plugin is ON and everything, right? Do you have a comment in the events you want to light up? Are you relying on custom lights that haven't been defined in the plugin information?
  17. IPTdragon said:
    Not to be condescending, but the plugin is ON and everything, right? Do you have a comment in the events you want to light up? Are you relying on custom lights that haven't been defined in the plugin information?
    Plugin is on yes. I did put the comment [light] exactly as indicated. I even copied the event straight from the demo...

    Be it light, or other custom ones... (I copied over the custom light list from the demo as well) I just have no lights poppin' at all ._.


    EDIT: I found out what the problem was. In the demo files, there are two versions of the plugin. One called -ShoraLighting- and one called Shoralighting. I took the wrong one... (I got the one from Itch.io aswell, but thought I might need em both since both are in the demo). So basically I was working with the ShoraLighting one, and not the -ShoraLighting- one.

    Sorry for my smoll brain!


    EDIT 2: So, now my map's kinda... in the dark when I don't want it to be? I've seen in the demo that there is a possiblity to deactivate lighting in maps (in the "No Lighting" room). Now all my map where there's no light event at all are darkened... (not pitch black, but just really dark...)

    EDIT 3: Alright, so I had to change de default ambient. I set it to #ffffff as per recommendation in the tutorial, except now everything looks cooked in light, as if the sun itself was trying to bake me off the surface of the earth...

    EDIT 4: Yes, I must sound like a madman. But in the end, may this post serve people! Some perserverance, and you can always do it yourself! I fixed this but turning the intensity light filter to 1. It was set to 1.5 ...


    Problem solved!
  18. Ryuukun said:
    Plugin is on yes. I did put the comment [light] exactly as indicated. I even copied the event straight from the demo...

    Be it light, or other custom ones... (I copied over the custom light list from the demo as well) I just have no lights poppin' at all ._.


    EDIT: I found out what the problem was. In the demo files, there are two versions of the plugin. One called -ShoraLighting- and one called Shoralighting. I took the wrong one... (I got the one from Itch.io aswell, but thought I might need em both since both are in the demo). So basically I was working with the ShoraLighting one, and not the -ShoraLighting- one.

    Sorry for my smoll brain!


    EDIT 2: So, now my map's kinda... in the dark when I don't want it to be? I've seen in the demo that there is a possiblity to deactivate lighting in maps (in the "No Lighting" room). Now all my map where there's no light event at all are darkened... (not pitch black, but just really dark...)

    EDIT 3: Alright, so I had to change de default ambient. I set it to #ffffff as per recommendation in the tutorial, except now everything looks cooked in light, as if the sun itself was trying to bake me off the surface of the earth...

    EDIT 4: Yes, I must sound like a madman. But in the end, may this post serve people! Some perserverance, and you can always do it yourself! I fixed this but turning the intensity light filter to 1. It was set to 1.5 ...


    Problem solved!
    Your post helped me with this exact problem! Thank you!
  19. MegaKamaTron said:
    Your post helped me with this exact problem! Thank you!

    Glad my monologue helped!

    Also, on another subject, question to Shora: are we able to use the plugin in the same way you do in your gif? (with sliders, directly In-game) or is this a dev thing only?
  20. IPTdragon said:
    Curious if there's a way to have an event be able to 'detect' when it's in a light source. I think it'd be really interesting to have a creature that started moving once it was illuminated by the player's torch, but I don't know if there's a way to do this. Any suggestions?
    That a nice idea, still there I haven't implemented a nice way of doing this yet. If you know about scripting, you can try retrieve the light bound by `
    $shoraLayer.lighting.lights[id].sourceBound` and then check if the event position are contained in the bound or not (you need to experimenting with it, and it mostly will not work in the next big update.