Glm #121
Replies: 15 comments 28 replies
-
Diligent graphics API is agnostic to a math library. A vec4 is always just four floats when it comes to graphics. You can use glm as well as any other mathematical library. |
Beta Was this translation helpful? Give feedback.
-
Ok, so none of the functions in Diligent depends on complex internal matrix/vector types? Only on low-level structures like float arrays etc. that glm is compatible to? |
Beta Was this translation helpful? Give feedback.
-
That's right. All API functions take pointers to raw data (
This page is a bit out-of-date. Vulkan is supported on Linux |
Beta Was this translation helpful? Give feedback.
-
No, SVG is not currently supported |
Beta Was this translation helpful? Give feedback.
-
Very well. Ok, now for licensing: As far as I can tell, Diligent allows free use even for commercial settings, right? Is there any 3rd party library in the git repos https://github.com/DiligentGraphics that has a more restrictive license that would prevent this? Regards |
Beta Was this translation helpful? Give feedback.
-
Greetings, for integration in my build system it would be beneficial if the resulting libraries are not build into .//buildtype but into ./ . Can you tell me if there is an easy way to achieve this? Regards |
Beta Was this translation helpful? Give feedback.
-
Mostly Linux, but in theory it should be compilable for Windows. Btw., I think there is a bug in ./DiligentEngine/DiligentTools/NativeApp/src/Linux/LinuxMain.cpp:506 It defines the key for the -mode flag to be "-mode " (with a trailing blank space). However, argv[1] will usually be "-mode" (without trailing blank space) so strstr will always fail make a mode chang impossible. |
Beta Was this translation helpful? Give feedback.
-
Is it intended that the parameters are in quotation marks? Like ./example "-mode GL" ? |
Beta Was this translation helpful? Give feedback.
-
Ah, I see. Now another thing: That linux sample framework only has the modes GL and Vulkan, right? Is there an example that shows Linux and OpenGLES initialization (via EGL for example?). It's for an embedded Linux. |
Beta Was this translation helpful? Give feedback.
-
It has come to my attention that there is a way to initialize the engine from an existing OpenGL/ES context via AttachToActiveGLContext. Is there a comparable mechanism for Vulkan? Edit: Is EngineFactoryVk::AttachToVulkanDevice what I want? Is there an example app for that? |
Beta Was this translation helpful? Give feedback.
-
Another thing: Is it possible to initialize Diligent with an external window handle (like a winid from QtWidget) ? |
Beta Was this translation helpful? Give feedback.
-
Greetings, I had a look at the Tutorial01_HelloTriangle example running un Vulkan mode. Is it possible, that the VkDescriptorSets and their associated VkDescriptorPool are deleted and recreated every frame for every command buffer? If yes, Is this efficient from your view? Regards |
Beta Was this translation helpful? Give feedback.
-
I have another question about the difference betwen static and dynamic resources. Does static mean that the descriptor set is allocated/written once during program runtime? Or does it describe the ability ot Vulkan to use dynamic descriptor sets as part of vkCmdBindDescriptorSets? |
Beta Was this translation helpful? Give feedback.
-
When writing glm matrices to the shader constant buffer, you need to transpose your matrices, because glm has column major ordering by default, while HLSL has row major ordering (or vice versa, idk). |
Beta Was this translation helpful? Give feedback.
-
In GLM, column-major matrices are post-multiplied by the vector (M * v), while row-major matrices are pre-multiplied (v * M), which gives the same results. Even though the matrices are conceptually row- or column- major, in memory their layout is identical. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
We have a codebase that is heavily based on glm mathematics library. Does Diligent bring its own vector/matrix library? How compatible is this library to glm?
Regards
Beta Was this translation helpful? Give feedback.
All reactions