Echo wrote:Is it possible to detect the clouds in the sky? I never tried. If it is possible, then there should be rain only direct under the clouds.
Echo wrote:Nice effect!
Wouldn't it be enough if it would rain in a smaller cube around the player? Else you get strange moiree / repeating effects.
qwrwed wrote:It's good, but typing /rain a second time doesnt seem to stop it, and like Echo said, there are lots of repeating effects.
rubenwardy wrote:Is it sprites in 3d, or a image animation overlay?
image animation overlay is less laggy:
http://minetest.net/forum/viewtopic.php?pid=33583#p33583
VanessaE wrote:Very impressive! It looks like you're basically replacing all air nodes with an animated rain node. I might suggest adding a small random number to each raindrop's initial X/Z position to get rid of the moire pattern. Also, I would suggest a smoother animation - at least 4x as many frames (but with the same length of time for the loop).
PilzAdam wrote:rubenwardy wrote:Is it sprites in 3d, or a image animation overlay?
image animation overlay is less laggy:
http://minetest.net/forum/viewtopic.php?pid=33583#p33583
But how to do this in lua?
__ __ __
| | | |
|__|/\|__|
| /|PP|\ |
|_\|__|/_|
| |\/| |
|__|__|__|
I tried to draw 9 blocks, PP = player and the diagonal lines = 4 entities, placed in rhombus-like shape.
textures = {
{name="rainanim.png"},
{name="rainanim.png", animation={type="vertical_frames", aspect_w=48, aspect_h=48, length=3.0}},
},
4aiman wrote:Sorry for stupid question, but....
4aiman wrote:Do I need to change textures property in the on_step() event or I should use set_properties and pass textures table as a parameter? :blush:
timer = 0,
on_step = function(self, dtime)
self.timer = self.timer + dtime
if self.timer < 0.25 then
return
end
self.timer = 0
end,
local animation_frames = 8
[...]
timer = 0,
anim_step = 0,
on_step = function(self, dtime)
self.timer = self.timer + dtime
if self.timer < 0.25 then
return
end
self.timer = 0
self.anim_step = (self.anim_step+1)%animation_frames
self.object:set_properties({
textures = {
"rain_inside_animated.png^[verticalframe:"..16*animation_frames..":"..self.anim_step},
"rain_outside_animated.png^[verticalframe:"..16*animation_frames..":"..self.anim_step},
},
})
end,
PilzAdam wrote: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
textures = {
"rain_inside_animated.png^[verticalframe:"..16*animation_frames..":"..self.anim_step},
"rain_outside_animated.png^[verticalframe:"..16*animation_frames..":"..self.anim_step},
},
"rain_inside_animated.png^[verticalframe:"..animation_frames..":"..self.anim_step.."]"
chase programer wrote:i want lava rain for fun =0 [img]dog[/img]
qwrwed wrote:It's good, but typing /rain a second time doesnt seem to stop it, and like Echo said, there are lots of repeating effects.
Gael de Sailly wrote:How can I download this mod ? The link does not work.
Users browsing this forum: No registered users and 11 guests