Dynamic Shadows (+Fullscreen)
Download : https://www.dropbox.com/s/60u468gay94tz ... s-1_2.love
Old(1.1) : https://www.dropbox.com/s/z7p0y2ue7xz6j ... s-1_1.love
Older(1.0) : https://www.dropbox.com/s/9md8u8l1qd65z ... s-1_0.love
Scenario: Both the Mushroom kingdom and Aperture Science has been put into darkness by Bowser.
It's up to Mario to kill Bowser, using the light emmited from his portal gun to know where he walk to.
So, this is a mod that add Dynamic Shadows.(It require canvas support)
In other "words", it look like this:
http://i.imgur.com/zyfW0Zv.png
http://i.imgur.com/DdltBsx.png
How can you set the quality of the shadows? Well,there is a settings in the misc. tab of the options.
And also, there is a "True" fullscreen mode.
Old(1.1) : https://www.dropbox.com/s/z7p0y2ue7xz6j ... s-1_1.love
Older(1.0) : https://www.dropbox.com/s/9md8u8l1qd65z ... s-1_0.love
Scenario: Both the Mushroom kingdom and Aperture Science has been put into darkness by Bowser.
It's up to Mario to kill Bowser, using the light emmited from his portal gun to know where he walk to.
So, this is a mod that add Dynamic Shadows.(It require canvas support)
In other "words", it look like this:
http://i.imgur.com/zyfW0Zv.png
http://i.imgur.com/DdltBsx.png
How can you set the quality of the shadows? Well,there is a settings in the misc. tab of the options.
And also, there is a "True" fullscreen mode.
Last edited by Automatik on 20 May 2013, 12:08, edited 3 times in total.
No GLSL, but I'm using a canvas and blend modes.
You mean, in vanilla?I'd like to add that
Mhh... I don't want to remove it because knowing how much time you've left, In which level you're in, or how many coins you have is useful. Maybe I should simply draw the HUD at the end, so that it's actually an Head Up Display.My only suggestion would be to completely remove the HUD as it's pretty useless as it is and having it appear when you go to the top of the screen breaks the illusion slightly.
- Mr.Q.Marx?
- Posts: 849
- Joined: 15 May 2012, 18:35
In fullscreen, I found the line of sight to be a few blocks off Mario, it still fired the same.
The darkness however is wonderful. I tried playing 'Into the Abyss' and was disappointed with the effect on it but every other mappaack I tried since was great.
The darkness however is wonderful. I tried playing 'Into the Abyss' and was disappointed with the effect on it but every other mappaack I tried since was great.
New version:https://www.dropbox.com/s/z7p0y2ue7xz6j ... s-1_1.love
-Fixed line of sight being offset
-Lasers now don't light as much when blocked.
-HUD is now drawn on top on gameplay
-Fixed line of sight being offset
-Lasers now don't light as much when blocked.
-HUD is now drawn on top on gameplay
Oh my, this is... BEAUTIFUL!
It's really awesome.. With this mod great stuff can be done in mappacks. Should try and add a tile that has a light effect, like a Minecraft glowstone or something.
Also, if it can be done, it would be awesome if you manage to make tiles have a 7th property( properties like breakable/portable/etc) that makes the tile produce light.
You've done a great job. Here, have a star:
It's really awesome.. With this mod great stuff can be done in mappacks. Should try and add a tile that has a light effect, like a Minecraft glowstone or something.
Also, if it can be done, it would be awesome if you manage to make tiles have a 7th property( properties like breakable/portable/etc) that makes the tile produce light.
You've done a great job. Here, have a star:
A 7th propriety? That's a great idea. I've though about adding a light entity, but with this method, mappacks could stay compatible with vanilla.
- Superjustinbros
- Posts: 2119
- Joined: 29 Mar 2012, 20:39
- Contact:
This looks badass.
...
Last edited by Qcode on 21 Oct 2021, 17:43, edited 1 time in total.
- LightningFire
- Posts: 1828
- Joined: 10 Mar 2012, 17:24
- Contact:
This is just absolutely amazing, Auto. You have just outdone yourself.
-
- Posts: 524
- Joined: 02 Jun 2012, 03:40
Amazing. Just amazing.
Do you think, that instead of just a circular dispersal of light, you can make conic directional lights? Like spotlights and such?
Do you think, that instead of just a circular dispersal of light, you can make conic directional lights? Like spotlights and such?
That's technically possible, but I don't see how it would be implemented. An entity will make mappacks incompatibles with vanilla mari0, and there is no vanilla entity that is supposed to do that.
--
Also,I've finished the 1.2 version!
-Tons of small fixes on disposition of lights.
-Tiles can now also emit light, with a 7th property! The color of the light is taken from the color of the pixel. The property will be activated if the pixel's alpha value is over 127.
-Shaders now works.
-Dyn shadows are disabled if it don't work.
https://www.dropbox.com/s/60u468gay94tz ... s-1_2.love
--
Also,I've finished the 1.2 version!
-Tons of small fixes on disposition of lights.
-Tiles can now also emit light, with a 7th property! The color of the light is taken from the color of the pixel. The property will be activated if the pixel's alpha value is over 127.
-Shaders now works.
-Dyn shadows are disabled if it don't work.
https://www.dropbox.com/s/60u468gay94tz ... s-1_2.love
How about a tile property that blocks light? Alternatively the 7th property, if completely black, might work.Automatik wrote:That's technically possible, but I don't see how it would be implemented. An entity will make mappacks incompatibles with vanilla mari0, and there is no vanilla entity that is supposed to do that.
- sonicthehaxghog
- Posts: 38
- Joined: 17 May 2013, 04:49
yey now i can make it work in meh mod!Automatik wrote:That's technically possible, but I don't see how it would be implemented. An entity will make mappacks incompatibles with vanilla mari0, and there is no vanilla entity that is supposed to do that.
--
Also,I've finished the 1.2 version!
-Tons of small fixes on disposition of lights.
-Tiles can now also emit light, with a 7th property! The color of the light is taken from the color of the pixel. The property will be activated if the pixel's alpha value is over 127.
-Shaders now works.
-Dyn shadows are disabled if it don't work.
https://www.dropbox.com/s/60u468gay94tz ... s-1_2.love
You might as well make your tile 100% black, since it has the same effect.ucenna wrote:How about a tile property that blocks light? Alternatively the 7th property, if completely black, might work.
I was just about to ask if it worked with shaders!
An awesome mod I must say. It makes the game a lot more dynamic, especially in the castle levels.
However, it's not really dynamic shadows... It's more dynamic lighting. Details, details.
Random thought that popped up:
If you could be able to make the light cast real shadows, by things blocking light (blocks, enemies, etc) you would create a whole new way of gameplay.
Think of Monaco's topdown perspective engine, except it would be the casting of the lights.
Amnesia: Mario's Dark Descent. Anyone? Give Mario a lantern and some tinderboxes and you'd be ready to go! Heck, if this would be done I'd make a mappack to go with it.
However, it's not really dynamic shadows... It's more dynamic lighting. Details, details.
Random thought that popped up:
If you could be able to make the light cast real shadows, by things blocking light (blocks, enemies, etc) you would create a whole new way of gameplay.
Think of Monaco's topdown perspective engine, except it would be the casting of the lights.
Amnesia: Mario's Dark Descent. Anyone? Give Mario a lantern and some tinderboxes and you'd be ready to go! Heck, if this would be done I'd make a mappack to go with it.
Would it be hard to mod the portal gun to toggle the seventh property of a tile if it has it?
For example, if it has the seventh property and shot to toggle the light?
<--- example of possible toggling light tile. If shot toggles on/off property. Not sure if it is possible, I don't know how to code for now, but pretty sure it's easy to be done.
That would make a great beginning to what Jorichi suggested with Amnesia.
Also, probably it would be a good idea to have even an eight property that allows turning on/off the seventh property.
Actually you can just make an eight property that allows that by just pressing "e" near the tile.. Would that be possible, or do you need an entity for that?
For example, if it has the seventh property and shot to toggle the light?
<--- example of possible toggling light tile. If shot toggles on/off property. Not sure if it is possible, I don't know how to code for now, but pretty sure it's easy to be done.
That would make a great beginning to what Jorichi suggested with Amnesia.
Also, probably it would be a good idea to have even an eight property that allows turning on/off the seventh property.
Actually you can just make an eight property that allows that by just pressing "e" near the tile.. Would that be possible, or do you need an entity for that?
Blocks are squares, so they would just need to draw a polygon for every on-screen block. Ennemies howered would need a shader, and I don't know the needed algorithm.If you could be able to make the light cast real shadows, by things blocking light (blocks, enemies, etc) you would create a whole new way of gameplay.
Possible.Also, probably it would be a good idea to have even an eight property that allows turning on/off the seventh property.
Actually you can just make an eight property that allows that by just pressing "e" near the tile.. Would that be possible, or do you need an entity for that?
I'm no good at making mappacks, but I'd like to make one dedicated to this mod. Auto, please add a light entity or/and shadows in 1.3 for all the enjoyments. Thank you.
- Superjustinbros
- Posts: 2119
- Joined: 29 Mar 2012, 20:39
- Contact:
Seconded.ucenna wrote:I'd skip adding the entity. Although maybe one of the entities could be given a light function. Adding entities tends to break mappacks.
- sonicthehaxghog
- Posts: 38
- Joined: 17 May 2013, 04:49
dangit. i modified the file for the player and then the shaders no longer worked. :( . guess ill change it bak
-
- Posts: 15
- Joined: 07 Jan 2014, 22:45
Can you make a changelog of the original Mari0, so it would be easier to merge it with other mods?
Luckily, most of the code is in canvaslight.lua .
Here's the diff:http://hastebin.com/wudalecuru.diff
Here's the diff:http://hastebin.com/wudalecuru.diff
-
- Posts: 15
- Joined: 07 Jan 2014, 22:45
Well, thanks.. it is still sorta complicated though
EDIT: and as a suggestion, let the shadow be disabled or enabled with an option.. Yeah that would be great!
EDIT: and as a suggestion, let the shadow be disabled or enabled with an option.. Yeah that would be great!
Well, sorry, but I'm not working on this mod anymore.