Page 1 of 1

[closed] simple and slow shadows [shadows]

PostPosted: Sat Feb 22, 2014 21:43
by Hybrid Dog
lag

PostPosted: Sun Feb 23, 2014 00:44
by Novacain
looks like the kilngon pain stick makes its return.

PostPosted: Sun Feb 23, 2014 01:17
by rubenwardy
You have an ABM on air there! :O

PostPosted: Sun Feb 23, 2014 01:24
by Inocudom
This is a very wonderful experiment here, Hybrid Dog. I am curious to see how this turns out.

How could this be achieved with artificial light sources and lava?

PostPosted: Sun Feb 23, 2014 11:20
by jin_xi
nice work

PostPosted: Wed Mar 05, 2014 20:06
by Hybrid Dog
I updated this mod.
— global_step is used → less lag
— sunlight propagates is used instead of a dark texture, so smooth lighting needs to be disabled
— shadows are only calculated at the chunk where the player stands in yet
— they are shown not only on the ground

PostPosted: Thu Mar 06, 2014 00:47
by Enke
Huh. Interesting.

PostPosted: Thu Mar 06, 2014 14:47
by paramat
Interesting.

Re: [closed] simple and slow shadows [shadows]

PostPosted: Mon Sep 28, 2015 08:01
by Cyberpangolin
I wanted to try it, but it didn't work. Here is the log...

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2015-09-28 09:57:10: ERROR[main]: ServerError: Runtime error from mod 'shadows' in callback environment_Step(): /home/moi/.minetest/mods/vector_extras/init.lua:619: table index is nil
2015-09-28 09:57:10: ERROR[main]: stack traceback:
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/vector_extras/init.lua:619: in function 'set_data_to_pos'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:72: in function 'is_hard'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:87: in function 'shadow_here'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:131: in function 'update_chunk'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:188: in function 'update_chunks'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:212: in function </home/moi/.minetest/mods/shadows/init.lua:198>
2015-09-28 09:57:10: ERROR[main]:    /usr/share/minetest/builtin/game/register.lua:355: in function </usr/share/minetest/builtin/game/register.lua:335>


Maybe it has something to do with the s in "chunk" but I'm not sure at all.

0.4.13

Re: [closed] simple and slow shadows [shadows]

PostPosted: Wed Sep 30, 2015 15:37
by Hybrid Dog
Cyberpangolin wrote:I wanted to try it, but it didn't work. Here is the log...

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
2015-09-28 09:57:10: ERROR[main]: ServerError: Runtime error from mod 'shadows' in callback environment_Step(): /home/moi/.minetest/mods/vector_extras/init.lua:619: table index is nil
2015-09-28 09:57:10: ERROR[main]: stack traceback:
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/vector_extras/init.lua:619: in function 'set_data_to_pos'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:72: in function 'is_hard'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:87: in function 'shadow_here'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:131: in function 'update_chunk'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:188: in function 'update_chunks'
2015-09-28 09:57:10: ERROR[main]:    /home/moi/.minetest/mods/shadows/init.lua:212: in function </home/moi/.minetest/mods/shadows/init.lua:198>
2015-09-28 09:57:10: ERROR[main]:    /usr/share/minetest/builtin/game/register.lua:355: in function </usr/share/minetest/builtin/game/register.lua:335>


Maybe it has something to do with the s in "chunk" but I'm not sure at all.

0.4.13

thanks for informing me, l fixed it.
https://github.com/HybridDog/shadows/co ... 2843f643fe