Minetest logo

IRC log for #minetest-dev, 2020-08-30

| Channels | #minetest-dev index | Today | | Google Search | Plaintext

All times shown according to UTC.

Time Nick Message
00:51 olliy joined #minetest-dev
01:27 v-rob joined #minetest-dev
05:09 YuGiOhJCJ joined #minetest-dev
07:49 pyrollo joined #minetest-dev
08:00 ShadowNinja joined #minetest-dev
08:51 calcul0n joined #minetest-dev
10:03 MTDiscord joined #minetest-dev
10:08 proller joined #minetest-dev
10:16 Kray joined #minetest-dev
10:29 Lunatrius joined #minetest-dev
10:32 Krock Feel free to test #9923. There should be a demo mod somewhere in the conversation to check whether all callbacks are run.
10:32 ShadowBot https://github.com/minetest/minetest/issues/9923 -- Fix inventory swapping not calling all callbacks by appgurueu
10:33 Krock I did not excessively test the callbacks  but whether swaps are performed in the right conditions and that script-returned values are respected.
10:33 Krock so indirectly also tested callbacks because without those it would not work properly
11:02 Fixer joined #minetest-dev
11:28 sfan5 I did not want to discourage merging it
11:28 Fixer joined #minetest-dev
11:41 Fixer joined #minetest-dev
11:50 Fixer joined #minetest-dev
12:00 Hijiri joined #minetest-dev
12:24 Fixer joined #minetest-dev
12:38 Vadtec joined #minetest-dev
12:38 Vadtec joined #minetest-dev
13:16 Fixer joined #minetest-dev
13:22 pyrollo joined #minetest-dev
13:22 pyrollo hi
13:23 pyrollo Will merge trivial bugfix #10351 in 10 mn
13:23 ShadowBot https://github.com/minetest/minetest/issues/10351 -- Fix game crashing if dropped an item with undefined light_source by pyrollo
13:29 Fixer joined #minetest-dev
13:35 pgimeno pyrollo: do you think it's convenient to have auto-rotation around an arbitrary axis?
13:36 pyrollo You mean for entities ?
13:36 pgimeno yes
13:36 pyrollo Yes, actually I had a use case.
13:37 pyrollo I wanted to throw many blocs in the air with random rotation.
13:37 pyrollo There is a way to do it on Lua side but it may saturate network exchanges with many packets
13:38 pyrollo Started to do something, but I have a periodic rotation pos reset I dont know where
13:38 pgimeno well it's doable but it's calculation intensive
13:38 pyrollo Precision: my use case was for Kidscode
13:39 pgimeno can't you do that with animations?
13:39 pyrollo Why should it be intensive ? It's like automatic rotation but along two other angles
13:39 pgimeno because automatic_rotate uses one of the built-in Euler angles in Irrlicht
13:40 pgimeno but you can't easily rotate around an arbitrary axis using Eulers, the easiest way is to convert to matrix form, then rotate, then convert to Eulers again
13:41 pgimeno you could make a bunch of animations that rotate the blocks around several axes, and pick one animation at random
13:42 Fixer joined #minetest-dev
13:44 pyrollo The direction I started to go was doing the same thing as here :
13:44 pyrollo https://github.com/minetest/minetest/blob/master/src/client/content_cao.cpp#L1144
13:44 pyrollo for X and Z
13:45 pyrollo These are also Euler angle, shouldn't this be ok on perf pov?
13:46 pgimeno yes but the result is not rotation around an arbitrary axis, it's rotation around three Euler angles
13:46 pyrollo Ok, sorry,my answer was not right :) I dont want to rotate around arbitrary axis, just being able to rotate around tree angles is ok
13:46 pgimeno https://media2.giphy.com/media/xThuWiCVeScDkPkEmY/giphy.gif
13:46 pyrollo Visual effect has been tested using Lua, it's ok :)
13:47 pgimeno it seems very usage-specific
13:47 pyrollo It's difficult to figure out the difference :D
13:52 pgimeno then maybe you could do with even fewer animations, if you do it with animations
13:52 pyrollo Because of you I'm getting headake watching video about 3D euler angles :)
13:52 pgimeno sorry :)
13:53 lisac joined #minetest-dev
13:53 pyrollo The use case is, for example, "visually" (not acurately) simulate an explosion throwing blocks in every direction
13:54 pyrollo Without rotation speed, they seem to be quite static
13:54 pgimeno hence, animations!
13:54 pyrollo Maybe Y rotation is suficent if Y axis can be oriented
13:54 pyrollo Yes but with animations, I may have to redefine a lot of things ?
13:55 pyrollo For that, I'm using simple entities with corresponding node textures.
13:56 pgimeno you can use set_rotation to place the cubes in an arbitrary rotation
13:57 pyrollo I did it, but it does not look natural to have cubes keeping their angle. I'll try with a single rotation
13:57 pgimeno that's how you could make the propeller of a plane, for example - you create the model so that the axis of the blade is vertical, and rotate it when it's attached to the plane so that it rotates in the direction of the plane
13:57 proller joined #minetest-dev
13:59 pyrollo If I understand coreclty Euler angles, I can rotate on arbitrary angle, if I rotate around the third angle, the two first angles defines my rotation angle
13:59 pyrollo The thing is, I guess Y is the first one. I have to test it
13:59 pyrollo *rotation axis, not angle
14:01 pgimeno applying several rotations on different axes continuously (as you can easily do with Euler angles) is not equivalent to rotating around a certain axis. The rotating axis keeps varying.
14:03 pyrollo Sorry, I gtg. Thanks for these geometric elements, I was not aware of that. I'll try some stuff tomorrow an try to show you if any interesting result comes from
14:04 Fixer joined #minetest-dev
14:48 Fixer joined #minetest-dev
15:31 pgimeno !tell pyrollo animated cube (untested): http://www.formauri.es/personal/pgimeno/temp/cuberot_anim.b3d - the animation has 49 frames but the first and last are equal, so use only the first 48 to loop properly
15:31 ShadowBot pgimeno: O.K.
15:59 Lone_Wolf joined #minetest-dev
16:08 Lone_Wolf Should I center the text with the middle of the screen or is that too likely to break something? https://i.imgur.com/FAchsPV.png
16:09 Krock breaks shooter
16:09 Krock well it would be distracting there
16:10 Lone_Wolf Should I just shove the infotext in the top-right then?
16:10 rubenwardy what's wrong where it is?
16:10 Krock why does this need to be changed?
16:11 Lone_Wolf Because it conflicts with the chat for me
16:11 rubenwardy I can see a new HUD API which has all the default elements as elements, and they can be changed
16:11 Lone_Wolf See https://cdn.discordapp.com/attachments/453772264542961666/748293921809104927/unknown.png
16:24 Lone_Wolf https://i.imgur.com/vZQ657b.png | https://i.imgur.com/GkZElMt.png
16:25 Lone_Wolf Hmmmm, might be able to center it between the center of the screen and the right side of the screen
16:56 Lone_Wolf Welp, got that working. Guess I'll do a few more tests and start the PR
17:17 GreenXenith joined #minetest-dev
18:57 rubenwardy #10085
18:57 rubenwardy #10075
18:57 ShadowBot https://github.com/minetest/minetest/issues/10085 -- Use JSON for favorites, move server list code to Lua by rubenwardy
18:57 ShadowBot https://github.com/minetest/minetest/issues/10075 -- Clean up server-side translations, remove global variable by rubenwardy
19:00 sfan5 #10185
19:00 ShadowBot https://github.com/minetest/minetest/issues/10185 -- Change default ambient occlusion gamma to 1.8 by sfan5
19:08 rubenwardy I'll TAL
20:02 fluxflux joined #minetest-dev
20:34 MTDiscord joined #minetest-dev
22:08 proller joined #minetest-dev
23:24 fluxflux joined #minetest-dev
23:35 jason621_ joined #minetest-dev

| Channels | #minetest-dev index | Today | | Google Search | Plaintext