| Time |
Nick |
Message |
| 01:47 |
MTDiscord |
<wsor4035> with https://github.com/luanti-org/luanti/issues/15635 being solved, is there anything blocking opengl3 driver from being default now? and if so should that be switched on now/sooner rather than later to catch any bugs in the -dev cycle? |
| 02:05 |
|
Eragon joined #luanti-dev |
| 02:33 |
|
SFENCE joined #luanti-dev |
| 02:43 |
SFENCE |
wsor4035: on macOS, opengl3 is not avaliable at the moment. |
| 02:44 |
MTDiscord |
<wsor4035> hmm, so similar to the sdl2 rollout, could enable it on windows/linux to start with |
| 02:46 |
|
sfence_ joined #luanti-dev |
| 02:55 |
|
SFENCE joined #luanti-dev |
| 03:12 |
SFENCE |
wsor4035: OpenGL is deprecated on macOS. So we are with every new release riski that something like happen now with openAL and sound. |
| 03:13 |
SFENCE |
Maybe, the best way is to move to ANGLE on MacOS and use OpenGLES. |
| 03:13 |
MTDiscord |
<wsor4035> im aware, but that is an issue irregardless of opengl version |
| 03:13 |
MTDiscord |
<wsor4035> unless im missing something |
| 03:14 |
SFENCE |
it means OpeGLES 4 on apple devices with metal graphic driver. |
| 03:15 |
SFENCE |
If I understand it well, it will allows us to switch to opengl3 driver on macos as default also. |
| 03:15 |
MTDiscord |
<wsor4035> macos supports 4.1 opengl as far as i understand |
| 03:17 |
SFENCE |
On intel silicon. On apple silicon there is opengl 2.1 just for same backward compatibility. |
| 03:18 |
SFENCE |
Nad macos 26, is the last macos with Intel silicon support, what I read. |
| 03:18 |
SFENCE |
Switch to ANGLE probably require only to finish #15830 |
| 03:18 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/15830 -- [no sq] Fix OpenGL/OPENGL ES functions loading by sfence |
| 03:19 |
SFENCE |
and link Luanti with it. |
| 03:19 |
SFENCE |
So, some cmake files changes. |
| 03:22 |
MTDiscord |
<wsor4035> https://www.carette.xyz/posts/opengl_and_cpp_on_m1_mac/ from blogs and reddit threads (nowhere official unfortunately), seems like 4.1 is supported at least on m1/m2. granted that said long term something like angle is probably better |
| 03:22 |
MTDiscord |
<nathan4220776> Depreecated doesn't mean unusable (yet). |
| 03:24 |
SFENCE |
I have M2 apple silicon macbook. Yes, 4.1 is technicly supported, but you need some non apple wrapper to translate opengl 4.1 to Metal at runtime. |
| 03:26 |
SFENCE |
nathan4220776: It is correct. But also, nobody can expect any actions from Apple if something breaks. As for OpenAL now. |
| 03:39 |
SFENCE |
Btw, I also found that it should be enought to change required opengl version when inicializing... and test it on my macOS in Luanti.. and it simply does nt inicialized it I forced it to use opengl 4.1 |
| 03:39 |
SFENCE |
For opengl 3 driver enabled, it fall back to opengl 2.1. |
| 04:00 |
|
MTDiscord joined #luanti-dev |
| 05:53 |
|
SFENCE joined #luanti-dev |
| 06:14 |
|
SFENCE joined #luanti-dev |
| 06:32 |
SFENCE |
It looks like the problem is that we require SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY); which does not works on macOS. macOS require SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE); But if I do it, our driver get off with message ERROR[Main]: OpenGL 3 driver requires Compatibility context |
| 06:34 |
SFENCE |
for openGL 3. |
| 06:38 |
SFENCE |
It looks like we need Compatibility profile because of shaders... so it will required as to refactor shaders probably to enable depracated opengl 3 on macOs. |
| 06:39 |
SFENCE |
ANGLE which provide opengles 4, which is similar to opengl 4, sound like i better solution for me, in this case, for time investing. |
| 08:22 |
|
Warr1024 joined #luanti-dev |
| 08:43 |
sfan5 |
sfen |
| 08:43 |
sfan5 |
oops |
| 08:44 |
sfan5 |
~tell SFENCE we need to refactor shaders and there's also a few more changes necessary: https://github.com/minetest/irrlicht/pull/234 | for now ANGLE is probably the better idea | it would be nice if you have time to finish #15830 |
| 08:44 |
ShadowBot |
sfan5: OK. |
| 08:47 |
|
Warr1024 joined #luanti-dev |
| 08:47 |
sfan5 |
@wsor4035: there's still https://github.com/luanti-org/luanti/issues/15524 |
| 08:52 |
sfan5 |
merging #16611, #16610 soon |
| 08:52 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/16611 -- Corrected info about ObjectRef:set_attach() bone's `""` default value by corpserot |
| 08:52 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/16610 -- Guard new objects from being added at shutdown by sfan5 |
| 09:43 |
|
YuGiOhJCJ joined #luanti-dev |
| 11:00 |
|
jstein joined #luanti-dev |
| 12:22 |
|
cx384 joined #luanti-dev |
| 12:29 |
cx384 |
Anyone wants to look at #16538 or can I give it my self approval and merge it? |
| 12:29 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/16538 -- Inventory image animation API second try by cx384 |
| 12:50 |
MTDiscord |
<wsor4035> Sfan5, thanks |
| 13:32 |
[MatrxMT] |
<grorp> cx384: I don't have time for a proper review, but the new API design looks good 👍 (and delaying support for meta overrides is fine, I see you even already opened a follow-up PR :o) |
| 15:57 |
|
book` joined #luanti-dev |
| 16:46 |
|
SFENCE joined #luanti-dev |
| 16:55 |
SFENCE |
sfan5: Hmmm... so use of core profile is in WIP for long time. |
| 16:55 |
sfan5 |
well nobody is actively working on it |
| 16:56 |
SFENCE |
I see. |
| 16:57 |
SFENCE |
I am sure, it will be nice to have it done. If I find time, I will look at it. It can make more easier to link Luanti with some OpenGL to Vulcan backend, for example. |
| 16:57 |
sfan5 |
like ANGLE? |
| 16:59 |
SFENCE |
Yes, for example Zink -> https://docs.mesa3d.org/drivers/zink.html |
| 17:00 |
SFENCE |
But there is what I know nothing like it for OpenGL on macOS now. |
| 17:00 |
sfan5 |
huh but what does ANGLE translate to? |
| 17:00 |
SFENCE |
Somebody tries to do it, but I was not able to compile it on apple silicon. |
| 17:01 |
SFENCE |
ANGLE transla OpenGL ES to Metal/Vulcan/Direct X |
| 17:05 |
SFENCE |
What is difference between our OpenGL ES and OpenGl 3 driver? Does it make sense to link against deprecated openGL 4.1 on macOS? |
| 17:07 |
sfan5 |
i'm not sure what to answer |
| 17:07 |
sfan5 |
they target different opengl standards, obviously |
| 17:12 |
sfan5 |
feature wise it's currently better to use opengl 2 than gles |
| 17:13 |
sfan5 |
but that will change soon |
| 17:14 |
SFENCE |
there is something like gles 4 driver in plan? |
| 17:14 |
sfan5 |
gles 4 does not exist |
| 17:16 |
SFENCE |
och yes, it is gles 3 which is similar to gl 4. |
| 17:16 |
SFENCE |
so gles 3 driver in plan? |
| 17:16 |
sfan5 |
our GLES driver supports features from GLES3 |
| 17:16 |
sfan5 |
it is not GLES2-only |
| 17:17 |
sfan5 |
just like the opengl3 driver could use features from opengl4 |
| 17:21 |
SFENCE |
Nice. |
| 17:25 |
SFENCE |
I will try to contact author of https://github.com/openglonmetal/MGL, to make it work on Apple Silicon. |
| 17:29 |
cx384 |
Planing to merge #16538 and #16238 in 15 min |
| 17:29 |
ShadowBot |
cx384: Error: That URL raised <Connection timed out.> |
| 17:29 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/16238 -- Add `default_mapgen` game setting by Xeno333 |
| 17:30 |
cx384 |
#16538 |
| 17:30 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/16538 -- Inventory image animation API second try by cx384 |
| 17:51 |
cx384 |
Merged. Now #16608 needs reviews :) |
| 17:51 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/16608 -- Add meta item image override functions by cx384 |
| 18:57 |
cheapie |
collectMaterialsForLeavesAndMaybeOtherKindsOfFoliageTooToWhateverExtentThatIsEvenDifferent() |
| 18:57 |
cheapie |
(re: #16574 discussion) |
| 18:57 |
ShadowBot |
https://github.com/luanti-org/luanti/issues/16574 -- [manual squash] Introduce array textures for node rendering by sfan5 |
| 19:05 |
Krock |
HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor |
| 19:56 |
|
SFENCE joined #luanti-dev |
| 20:01 |
|
SFENCE joined #luanti-dev |
| 20:02 |
|
sfence_ joined #luanti-dev |
| 20:17 |
|
SFENCE joined #luanti-dev |
| 20:49 |
|
SFENCE joined #luanti-dev |
| 21:08 |
|
SFENCE joined #luanti-dev |
| 21:36 |
|
SFENCE joined #luanti-dev |
| 21:54 |
|
SFENCE joined #luanti-dev |
| 23:02 |
|
SFENCE joined #luanti-dev |
| 23:34 |
|
SFENCE joined #luanti-dev |
| 23:41 |
|
panwolfram joined #luanti-dev |