Quasi Simple Shadows

andai

Veteran
Veteran
Joined
Oct 19, 2014
Messages
54
Reaction score
25
First Language
English
Primarily Uses
Ah.. can't wait until the pixi upgrade! Real shadow casting is going to be simply amazing.
 

Quxios

Veteran
Veteran
Joined
Jan 8, 2014
Messages
1,055
Reaction score
783
First Language
English
Primarily Uses
RMMV
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:
 

lonewolph

Veteran
Veteran
Joined
Oct 25, 2015
Messages
194
Reaction score
14
First Language
English
does this work with parallax maps? Nothing is showing up unless its underneath all of the layers
 

Quxios

Veteran
Veteran
Joined
Jan 8, 2014
Messages
1,055
Reaction score
783
First Language
English
Primarily Uses
RMMV
@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.
 

takashi1kun

spaghetti god code
Veteran
Joined
Jul 27, 2014
Messages
104
Reaction score
39
First Language
Spain Spanish
Primarily Uses
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
 
Last edited by a moderator:

Quxios

Veteran
Veteran
Joined
Jan 8, 2014
Messages
1,055
Reaction score
783
First Language
English
Primarily Uses
RMMV
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.
 
Joined
Feb 18, 2015
Messages
476
Reaction score
205
First Language
English
Primarily Uses
RMMV
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?
 

Quxios

Veteran
Veteran
Joined
Jan 8, 2014
Messages
1,055
Reaction score
783
First Language
English
Primarily Uses
RMMV
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?
 
Joined
Feb 18, 2015
Messages
476
Reaction score
205
First Language
English
Primarily Uses
RMMV
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.
 

Quxios

Veteran
Veteran
Joined
Jan 8, 2014
Messages
1,055
Reaction score
783
First Language
English
Primarily Uses
RMMV
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
 
Joined
Feb 18, 2015
Messages
476
Reaction score
205
First Language
English
Primarily Uses
RMMV
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!
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
965
Reaction score
709
First Language
English
Primarily Uses
RMMV
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


 


Without add-on plugin


 


 
 


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
 
Last edited by a moderator:

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
965
Reaction score
709
First Language
English
Primarily Uses
RMMV
Finally completed the re-write of Quasi Simple Shadows today. 
 

Indsh

Veteran
Veteran
Joined
Oct 11, 2015
Messages
221
Reaction score
67
First Language
English
Primarily Uses
N/A
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>
 

Ossra

Formerly Exhydra
Veteran
Joined
Aug 21, 2013
Messages
965
Reaction score
709
First Language
English
Primarily Uses
RMMV
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.
 

Indsh

Veteran
Veteran
Joined
Oct 11, 2015
Messages
221
Reaction score
67
First Language
English
Primarily Uses
N/A
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
 
Last edited by a moderator:

Dusttt

Villager
Member
Joined
Nov 12, 2017
Messages
19
Reaction score
76
First Language
French
Primarily Uses
RMMV
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?
 

Veltra

That Guy
Veteran
Joined
Mar 20, 2018
Messages
49
Reaction score
22
First Language
English/French
Primarily Uses
RMMV

Stefano

Warper
Member
Joined
Oct 27, 2017
Messages
2
Reaction score
0
First Language
Italian
Primarily Uses
RMMV
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?
 

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

Latest Threads

Latest Posts

Latest Profile Posts

There's another Humble Bundle available now for RPG developer assets, this time focused somewhat more towards pixel art style games.
Ive got a long lost half uncle. Thats real cool.
I forget what is bumping rule in this forum. Is anyone know? Thank you.
BCj
Ew, why does my blogpost on the rpgmaker.net site look like a garbled mess? Are html codes disabled or something?
I feel that I should cut down on my order queue so I can get some more time for my projects, its been quite a longggg while since I worked on them LOL

Forum statistics

Threads
97,900
Messages
947,717
Members
129,132
Latest member
Narvzilla
Top