Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:19
    LeekingWeng starred mosra/magnum
  • 10:11
    mosra milestoned #106
  • 09:24
  • Sep 27 23:50
    codecov[bot] commented #106
  • Sep 27 23:49
    codecov[bot] commented #106
  • Sep 27 23:38
    codecov[bot] commented #106
  • Sep 27 23:34
    codecov[bot] commented #106
  • Sep 27 23:32
    codecov[bot] commented #106
  • Sep 27 23:30
    codecov[bot] commented #106
  • Sep 27 23:01
    pezcode commented #106
  • Sep 27 22:54
    codecov[bot] commented #106
  • Sep 27 22:54
    pezcode synchronize #106
  • Sep 27 22:50
    pezcode synchronize #106
  • Sep 27 08:35

    mosra on next

    Containers: explicitly test tha… Containers: allow ArrayTuple to… Containers: allow ArrayTuple to… (compare)

  • Sep 27 07:00

    mosra on master

    Containers: minor. (compare)

  • Sep 27 06:58
    remiburtin starred mosra/magnum
  • Sep 27 06:56

    mosra on next

    package/ci: CIRCLECI WHAT ARE Y… (compare)

  • Sep 27 06:50

    mosra on next

    Containers: allow ArrayTuple to… (compare)

  • Sep 27 06:42

    mosra on next

    Containers: explicitly test tha… Containers: minor. Containers: allow ArrayTuple to… (compare)

  • Sep 26 23:40
    codecov[bot] commented #106
Bhavyansh Mishra
@BhavyanshM
Quick question: For displaying an OpenGL Texture on an ImGui window, is a frame buffer necessarily required? Or is there some other way to think about it?
Guillaume Jacquemin
@williamjcm
yunkernel ( owned by Dingtao :b )
@yunkernel
Could anyone can tell me how to update texture coordinate that has added to a Mesh ?
yunkernel ( owned by Dingtao :b )
@yunkernel
I guess i should use the transform matrix :p
Jamil Halabi
@jay3d
Can there be a dummy SceneGraph::MatrixTransformation3D which can return the transformation of the parent and pass it to children, aka. no composition of matrices
Or SceneGraph::ProxyMatrixTransformation3D
Like it will always return the local/world transformation of the parent. Just a transform-less object in the hierarchy
Vladimír Vondruš
@mosra
you could hack it together by having an object that has a transform that's inverse of the parent to cancel those out, i suppose
Fo Nz
@FoNz99089892_twitter
@mosra I would suggest to split the matrix multiplication in FlatGL shader. If you let the shader do it for you, should it be faster? Like the PhongGL one.
Vladimír Vondruš
@mosra
you mean the transformation / projection matrix? the shader has to do that for every vertex of the mesh, while if you do it on the CPU you do it just once
if you want to try this behavior out, you can use PhongGL with zero lights, that's basically the same as Flat except that it uses separate transformation and projection matrices :)
Mathew
@lectroMathew
Hello there, a bit abstract question, but what is more flexible to use with magnum, the ImGui Integration or Magnum::Ui?
Guillaume Jacquemin
@williamjcm
I personally recommend the ImGui integration, as Magnum::Ui has been neglected these past few years.
Vladimír Vondruš
@mosra
yep, as William says :)
Vladimír Vondruš
@mosra
https://www.phoronix.com/scan.php?page=news_item&px=Mesa-RADV-RT-For-Older-GPUs oh, does this mean i could get raytracing on my fancy 2018 laptop with a frankenstein Intel Radeon Vega card? :O
Vladimír Vondruš
@mosra
good thing i didn't even think yet about buying a NV RTX card for 8000€ or how much are the prices nowadays
Guillaume Jacquemin
@williamjcm
AMD's RX 6000 series supports raytracing, but like with Nvidia, good luck getting one at a decent price.
Vladimír Vondruš
@mosra
i have no intention of upgrading, this machine is still more than enough for my needs
the only potential reason to upgrade was to have a HW capable of raytracing so i could test for it, but if Mesa can emulate that, why bother ¯\_(ツ)_/¯
Fo Nz
@FoNz99089892_twitter

you mean the transformation / projection matrix? the shader has to do that for every vertex of the mesh, while if you do it on the CPU you do it just once

You are right, excuse me.

Hans Loeblich
@thehans
is there something equivalent to gluErrorString for magnum?
Vladimír Vondruš
@mosra
@thehans as in, converting the error code to a string? you have the following options:
  • Use the Debug utility, Debug{} << GL::Renderer::error(); will convert the enum to its string representation and print it to the standard output. Most magnum enums can be printed like this.
  • Or enable GL debug output (unless you're on Mac), and let the driver print detailed info about the error. Easiest if you use the builtin Application classes is to pass --magnum-gpu-validation on on the command line. Docs.
2 replies
Guillaume Jacquemin
@williamjcm
../../../third-party/corrade/src/Corrade/Containers/StaticArray.h:172:58: error: converting to 'Corrade::Containers::StaticArray<4, int>' from initializer list would use explicit constructor 'Corrade::Containers::StaticArray<<anonymous>, <template-parameter-1-2> >::StaticArray() [with long long unsigned int size_ = 4; T = int]'
  172 |         explicit StaticArray(Corrade::ValueInitT): _data{} {}
      |                                                          ^
I get that error for pretty much every StaticArray in the header file they're in. Maybe it's because they're in an anonymous struct in a class ?
Guillaume Jacquemin
@williamjcm
I moved them out, and the same error happens.
:thinking:
Oh, well, I should sleep, it's already 00:41 here.
Guillaume Jacquemin
@williamjcm
Okay, got it fixed.
For some reason, I had to switch to the DefaultInit constructor for those arrays that contained structures.
Guillaume Jacquemin
@williamjcm
After more testing, looks like it was a compiler bug or similar.
Now I'm back to normal argument-less constructors, and it works.
I'm stumped.
Fo Nz
@FoNz99089892_twitter
I think docs for iOS should node that it's better for CMAKE_OSX_DEPLOYMENT_TARGET to be set, along with 64-bit-only architectures (arm64) for iOS 11 and beyond.
Fo Nz
@FoNz99089892_twitter
I cannot get corrade-rc to be compiled on MacOS. Why? The same arguments work for Windows and Android, but not for iOS!
1 reply
Vladimír Vondruš
@mosra
what error do you get?
Mathew
@lectroMathew
If I extract some of the magnum classes to my project and change them in one way or another, should leave the license text there or not?
pezcode
@pezcode

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

I'm not a lawyer, but modifying code probably still qualifies as a 'substantial portion'

Vladimír Vondruš
@mosra
all examples are in public domain, so you can do whatever you want with them, but for magnum code itself you have to keep the license, yes
curious -- what do you need to change there?
Vladimír Vondruš
@mosra
image.png
apparently CircleCI deployed a broken update on Sunday evening US time and they didn't wake up yet to discover the breakage :D
Vladimír Vondruš
@mosra
Mathew
@lectroMathew

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

I'm not a lawyer, but modifying code probably still qualifies as a 'substantial portion'

Yes that's what I thought as well, but then again having non-original software saying that it is an original software seemed iffy to me, so had to make sure :) I'm also not a lawyer ykno

curious -- what do you need to change there?

Just some changes here and there, renaming and general refactoring to better suit the project

Vladimír Vondruš
@mosra
renaming :eyes:
from my experience it was usually easier to try to upstream the changes instead of maintaining a modified copy, upgrades are less painful that way
Mathew
@lectroMathew

from my experience it was usually easier to try to upstream the changes instead of maintaining a modified copy, upgrades are less painful that way

Oh I ceratainly do believe it's less painful, but magnum's Application class is a bit too monolithic for my needs, so I wanted to take it apart into smaller pieces

Vladimír Vondruš
@mosra
ah, haha, yeah that's true .. though i don't really see a way to break it apart while keeping it easy to switch between SDL/GLFW/... on different platforms
Mathew
@lectroMathew
true, I didn't either so decided to just stick with SDL
Vladimír Vondruš
@mosra

FYI recent Magnum update tightened assertions on Quaternion::fromMatrix(), which requires the matrix to be a proper rotation (before it allowed reflections, but resulted in broken output): mosra/magnum@3697125

if your code starts failing on this new assert and you think it shouldn't, please let me know :)

Fo Nz
@FoNz99089892_twitter

what error do you get?

My bad. I was expecting corrade-rc while compiling for iOS. Excuse me.