Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 17 21:26
    Build #1596 passed
  • Jan 17 18:25
    mosra edited #306
  • Jan 17 18:24
    mosra edited #306
  • Jan 17 18:04

    mosra on next

    MeshOptimizerSceneConverter: mi… MeshOptimizerSceneConverter: ad… [wip] package/ci: use magnum ne… (compare)

  • Jan 17 17:55

    mosra on next

    MeshTools: make interleave() pr… Trade: further clean up MeshDat… Trade: move MeshData impl-speci… and 4 more (compare)

  • Jan 17 17:04
    sirlordt starred mosra/magnum
  • Jan 17 17:02

    mosra on next

    Trade: support zero and negativ… MeshTools: fix isInterleaved()/… MeshTools: assert in compile() … and 15 more (compare)

  • Jan 17 16:44
    sirlordt starred mosra/corrade
  • Jan 17 13:29
    Tectu starred mosra/magnum
  • Jan 17 10:57
    kitoki starred mosra/magnum
  • Jan 17 09:51

    mosra on master

    package/ci: we don't need the n… package/ci: drop Gitter webhook… BasisImporter: doc++ The new D… and 2 more (compare)

  • Jan 17 09:46
    mosra edited #453
  • Jan 17 09:40

    mosra on next

    KtxImporter: Doxygen's parser i… BasisImageConverter: mention th… KtxImageConverter: mention how … and 5 more (compare)

  • Jan 17 08:44

    mosra on next

    doc: ew, a std::vector! Funny … Trade: support strided index bu… sceneconverter: display also me… and 3 more (compare)

  • Jan 16 18:02

    mosra on next

    Trade: fix SceneData field cont… Trade: the comma in this assert… Trade: doc++ and 7 more (compare)

  • Jan 16 09:18

    mosra on next

    package/ci: drop Gitter webhook… package/ci: reduce parallelism … GL: hook up EXT_texture_sRGB_RG… and 19 more (compare)

  • Jan 16 08:51
    codecov[bot] commented #547
  • Jan 16 08:51
    codecov[bot] commented #547
  • Jan 16 05:30
    yumesmile starred mosra/magnum
  • Jan 15 17:17
    Build #3655 passed
Jordan Peck
@Auburn
Preview 4 just came out, I was testing that
Vladimír Vondruš
@mosra
appveyor/ci#3712 subscribed to this issue, i'll look at it once i can test on AppVeyor
and i guess i'll drop MSVC 2015 then, nobody hopefully uses that anymore :D
Guillaume Jacquemin
@williamjcm

Dunno if it's a Corrade or C++ issue (leaning towards the latter), but I got something weird today.

I have a growable Array containing Pointer<Base>s to take advantage of polymorphism.

I tried doing arrayAppend(array, pointer<Derived>(args)), but the compiler rejected it.

However, Pointer<Base> p = pointer<Derived>(args) followed by arrayAppend(array, p) is fine.

Vladimír Vondruš
@mosra
and i suppose arrayAppend with InPlaceInit works, right?
Guillaume Jacquemin
@williamjcm
It's a possibility, but I forgot to try it.
Vladimír Vondruš
@mosra
i hit this a few times myself as well, it boils down to a conflict in template type
the signature should be arrayAppend(Array<T>&, const std::common_type<T>::type&) instead of arrayAppend(Array<T>&, const T&) and then it would work i think
Guillaume Jacquemin
@williamjcm

and i suppose arrayAppend with InPlaceInit works, right?

Yup.

Vladimír Vondruš
@mosra
i am useless today anyway, so i could as well just go and fix that
Guillaume Jacquemin
@williamjcm
Ah, I just saw you finally implemented your own Pair type. :)
Been a while since I last took a glance at the sidebar in Gitter.
Vladimír Vondruš
@mosra
and a Triple :D
Pair is there for quite a while, Triple since now
i hope i'll never need a Quadruple
mosra/corrade@34a53fa should be the fix
once the CI gods approve
Guillaume Jacquemin
@williamjcm
It'll give me an excuse to upgrade my current project's dependencies.
Vladimír Vondruš
@mosra
i guess i could do also arrayInsert() and arrayRemove() while at it
Guillaume Jacquemin
@williamjcm
I haven't updated Corrade or Magnum since I added them as submodules in early June.
At the same time, I haven't really needed any of the new stuff.
Guillaume Jacquemin
@williamjcm

i guess i could do also arrayInsert() and arrayRemove() while at it

Now that I think about it, while I won't need arrayInsert(), arrayRemove() will be useful.

While I could do std::remove_if() combined with arrayRemoveSuffix(), it's a bit too long just to remove single elements.

Jamil Halabi
@jay3d
Installing magnum on linux with vcpkg is failing
CMake Error at scripts/cmake/vcpkg_from_github.cmake:164 (message):
  Failed to parse API response from '':



  {

    "ref": "refs/heads/master",
    "node_id": "MDM6UmVmMjg2MzkwOTpyZWZzL2hlYWRzL21hc3Rlcg==",
    "url": "https://api.github.com/repos/mosra/corrade/git/refs/heads/master",
    "object": {
      "sha": "34a53fab11928765f5fb2704b5653769a20b63a5",
      "type": "commit",
      "url": "https://api.github.com/repos/mosra/corrade/git/commits/34a53fab11928765f5fb2704b5653769a20b63a5"
    }

  }



Call Stack (most recent call first):
  ports/corrade/portfile.cmake:1 (vcpkg_from_github)
  scripts/ports.cmake:140 (include)
Vladimír Vondruš
@mosra
errrrr
doesn't sound like my problem, tho
Jamil Halabi
@jay3d
Yes I think it's a problem getting head packages from vcpkg on linux
Vladimír Vondruš
@mosra
from 19th August, lol
microsoft/vcpkg#19657 seems to be a candidate for a fix and/or introducing other bugs
Vladimír Vondruš
@mosra
where is the dumpster fire emoji
Jamil Halabi
@jay3d
How to download this as a patch again :P
Ah just add .patch
Jamil Halabi
@jay3d
Nice! works
Fo Nz
@FoNz99089892_twitter

image0 (1).png

I think I encountered this same exact problem. I had a mesh, where Phong shader didn't work correctly. PART OF MESH appeared all white, but only on ES, not on Desktop. This was strange. The culprit was the model, whose local coordinates didn't match transformations in global coordinates (as I saw in Blender).

Vladimír Vondruš
@mosra
but how would that manifest only on ES?
Fo Nz
@FoNz99089892_twitter

image.png

This is how I was seeing my mesh in ES. After I fixed my mesh in Blender, it rendered correctly with Phong shader.

This mesh was downloaded from internet. Then I changed it a bit, but basically it was made by someone else.

but how would that manifest only on ES?

I really don't know...

When I say ES, I mean OpenGL ES!!! NOT EcmaScript!!!!
Vladimír Vondruš
@mosra
yeah i get you ;)
no idea, the only possibility is something related to floating point, a NaN that propagates differently on mobile drivers, or an (ES-specific) shader precision causing normals to explode?
if you have the original model and can share it, i'll investigate, this is interesting
Fo Nz
@FoNz99089892_twitter

no idea, the only possibility is something related to floating point, a NaN that propagates differently on mobile drivers, or an (ES-specific) shader precision causing normals to explode?

That's the first thing that comes in mind, indeed.

if you have the original model and can share it, i'll investigate, this is interesting

This above is the indicted model

Guillaume Jacquemin
@williamjcm
Might be more of a general C++ question, but what would be the best way to add a variable's byte representation to an Array<char> ? Appending an ArrayView that wraps over a pointer to that variable ?
Vladimír Vondruš
@mosra
sideways question: what do you want to achieve, exactly?
Guillaume Jacquemin
@williamjcm
Basically, serialise data to an array before writing it to a file.
Vladimír Vondruš
@mosra
if you need to preserve alignment of the type for reading it later, then ArrayTuple might be the answer, but you can't grow that one