Quasi Simple Shadows

Ah.. can't wait until the pixi upgrade! Real shadow casting is going to be simply amazing.
Simple Shadows 1.051


https://github.com/quasixi/Quasi-MV-Master-Demo/blob/master/js/plugins/QuasiSimpleShadows.js

  • Added a flicker option to shadows

Flicker strength is the value of how far it can stretch ( in pixels ) I found values to be good between 2-10.


Flicker delay is a random wait between 0 - delay value. Play around with values to find a good one, lower values for faster flickers, higher value for slower flicker.


New setup info can be found at:
http://quasixi.com/quasi-simple-shadows/


Sample of flicker:
does this work with parallax maps? Nothing is showing up unless its underneath all of the layers
@lonewolph You can try editing the js file. Look for the line:
 


QuasiSimpleShadows._shadowLayer.z = 1;


and change that 1 to a 2. That will change the shadow layer from the ground layer, to the below character layer. I thought I had changed that in the last update but I guess I didn't.
Two problems, one when loading the game(solved, idk why, but it solved itself) and the other, in general
In general problem:
Game_2016-07-01_18-17-58.pngandGame_2016-07-02_01-22-18.png
For the 1st problem. I'm guessing that the shadow isn't positioned correct when loading?


And for the 2nd problem, this is just a simple solution. So it doesn't offer proper shadow solutions as appearing under cliffs / houses when they should. Though that can be done easily with some proper sprite layering. Which I've only seen done once in MV.
Look for the line:
 



QuasiSimpleShadows._shadowLayer.z = 1;


and change that 1 to a 2. That will change the shadow layer from the ground layer, to the below character layer.

Since all of the maps in my game are going to be parallax maps, I made that change to the plugin, and I tried to set up a flickering shadow. However, no shadows appear. Shadows also don't appear if I use the <shadowSource> or <lightSource> notetags. The plugin command "quasi addShadowSource CHARAID SHADOWRADIUS FLICKERSTR FLICKERDELAY" also doesn't add a shadow.


Is there a step that I'm missing?
Hmm, I'm not sure. Have you tried it on a map that doesn't use an parallaxing stuff? So it's just using the default map tiles and see if shadows works there?
They all work on a non-parallaxed map, yes. I just tested <shadowSource>, <lightSource>, <shadowSource:RADIUS,FLICKERSTR,FLICKERDELAY>, and  quasi addShadowSource CHARAID SHADOWRADIUS FLICKERSTR FLICKERDELAY, and they all work, but only on a non-parallaxed map.
Are you using some parallax mapping plugin? Sounds like it's an incompatibility with it. I just took a look, and there is another line that sets the Z value.
In my js it was on line 124. But might be different for you, so just search for:


QuasiSimpleShadows._shadowLayer.z = 0;


and try changing it to 2 or 1
I am using TDDP_BindPicturesToMap. However, that is placed beneath all of your plugins, so I didn't think it'd be an issue.


Changing it to 1 worked. Thank you Quasi!
Here's a fix for MV 1.4 crash:


https://github.com/quasixi/Quasi-MV-Master-Demo/blob/master/js/plugins/QuasiSimpleShadows.js


( don't update if you are using 1.3 or lower for MV )
I really love the plugin, so I created a little add-on for Simple Shadows which performs a few tweaks and applies a few hack-ish patches :





FEATURES
​

Spoiler

simple-shadows-default-a.gif
 
simple-shadows-default-b.gif


Without add-on plugin
​


 
​


simple-shadows-plugin-a.gif
 
simple-shadows-plugin-b.gif
 
simple-shadows-plugin-c.gif


With add-on plugin
​


 
​


- Configure light intensity (shadow opacity)
​


- Enable the usage of a generic shadow instead of a dynamic shadow
​


- Ignore shadow creation for followers / vehicles
​


 
​


- Several fixes and patches to correct potential memory leaks
​
Finally completed the re-write of Quasi Simple Shadows today. 
Can't get this to work at all, does it need a core plugin to work? Want to use Exhydras re-write but can't get anything to work.


This is the notetag should be producing results?

Code:
<shadowSource>
For Quasi's plugin, yes. <shadowSource> placed into the note or a comment in an event will work. For my re-write, you will need to use <bsShadowSource>. There is a list of tags and commands available if you click the Help button for Basic Shadows.
Still not woking and this is what comes up when I click help, why I am having issues, this is happening with all the version I download. Can someone make a demo, I had something similar happen with a sensor plugin I couldn't get help with but when I took the .js file from a working demo the problem stopped!


Downloaded a different version and it worked, thanks for help


Screen Shot 2016-08-29 at 01.56.52.png
Thank you Quxios it remind me the old shadow plugin in RMXP.

I found this in your code: shadowAnchorX, shadowAnchorY, shadowOX, shadowOY.

Is it possible to use it?
upload_2018-3-23_15-7-48.png
very nice plug-in ... just a question, is it free to use? Commercial and not? Do I have to say anything in the credits in a possible my future game?

Original thread: https://forums.rpgmakerweb.com/threads/quasi-simple-shadows.58685/