Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 10:55

    mosra on next

    Containers: MSVC 2015, f' off a… Containers: MSVC 2019, sounds l… Containers: fix a badly copypas… and 1 more (compare)

  • 10:44
    amodiopescefaro commented #520
  • 10:37
    mosra commented #520
  • 09:50
    katepangLiu starred mosra/magnum-examples
  • 09:49
    mosra milestoned #520
  • 09:40
    amodiopescefaro opened #520
  • Jun 15 19:21

    mosra on next

    Containers: C++ is stupid, comp… Containers: MSVC 2015, f' off a… Containers: fix a badly copypas… and 1 more (compare)

  • Jun 15 19:13

    mosra on next

    Containers: C++ is stupid, comp… Containers: fix a badly copypas… Containers: do I need std::pair… (compare)

  • Jun 15 19:06

    mosra on next

    Containers,Utility: use our for… Containers: why these don't hav… Containers: improve the StaticA… and 9 more (compare)

  • Jun 15 18:50

    mosra on next

    TestSuite: accept -X and -S for… Utility: add forward() and move… Containers: use our forward() a… and 11 more (compare)

  • Jun 15 18:38

    mosra on next

    Containers: use our forward() a… Containers: why these don't hav… Containers: improve the StaticA… and 9 more (compare)

  • Jun 15 18:34

    mosra on next

    Containers: use our forward() a… Containers: why these don't hav… Containers: improve the StaticA… and 9 more (compare)

  • Jun 15 18:31

    mosra on next

    Forgot to update the year here. TestSuite: accept -X and -S for… Utility: add forward() and move… and 12 more (compare)

  • Jun 15 16:25

    mosra on master

    python: don't carelessly copy p… (compare)

  • Jun 15 13:33
    lxlyh starred mosra/corrade
  • Jun 15 10:12
    Alan-love starred mosra/magnum
  • Jun 15 10:03

    mosra on master

    GL: remove an unneeded std::mov… Animation: explicitly mark Trac… Platform: mark Windowless*Conte… and 2 more (compare)

  • Jun 15 08:22

    mosra on master

    build-status: adapt to lastest … build-status: disable Travis jo… blog: A Decade Of Magnum. and 1 more (compare)

  • Jun 15 07:26

    mosra on next

    GL: remove an unneeded std::mov… Animation: explicitly mark Trac… Platform: mark Windowless*Conte… and 1 more (compare)

Tracy Ma
@linuxaged
depthAt()always return 0
And a warning: WebGL warning: readPixels: Unexpected format or type.
Vladim√≠r VondruŇ°
@mosra
browser?
Tracy Ma
@linuxaged
the warning from javascript:
GLctx.readPixels(x,y,width,height,format,type,pixels)
Firefox 70
Vladim√≠r VondruŇ°
@mosra
yeah, FF, that's the problematic one :/
let me dig up the messy code i had to use
Tracy Ma
@linuxaged
sorry, Firefox 76
Tracy Ma
@linuxaged
ŚõĺÁČá.png
tried in chrome too, the same warning
Vladim√≠r VondruŇ°
@mosra
huh!
okay wait
if you use UnsignedInt instead of Float, does that work?
Tracy Ma
@linuxaged
not work, both Chrome and Firefox : (
Vladim√≠r VondruŇ°
@mosra
then i guess your only option is to do what i did on that link above :/
Guillaume Jacquemin
@williamjcm
Just reading the comment in the link is making my head spin.
:dizzy_face:
Vladim√≠r VondruŇ°
@mosra
@linuxaged as a last attempt, can you try UnsignedShort?
Tracy Ma
@linuxaged
So why the https://magnum.graphics/showcase/mouseinteraction/ example works? i copied code directly from there
Vladim√≠r VondruŇ°
@mosra
there's two branches, master with what you copied, which is the sane and understandable implementation
and then ports, from where is the above link, with the insane crazy implementation that has to use a shader to read the depth
and that's what is used in this web demo
Tracy Ma
@linuxaged
much more complicated ūüėď
Vladim√≠r VondruŇ°
@mosra
yeah, it's terrible :/
Tracy Ma
@linuxaged
UnsignedShort still not work~
Vladim√≠r VondruŇ°
@mosra
it's just unbelievably stupid, see:
image.png
image.png
you just can't
at all
and as far as i can see, there's no (webgl) extension to allow this either
Tracy Ma
@linuxaged
‚ēģ(‚ēĮ-‚ēį)‚ē≠
Vladim√≠r VondruŇ°
@mosra
the mouseinteraction example is slightly more complicated because of the multisampling, which you could skip if you don't need that, but the main complexity with the shader reading is still there
Janos95
@Janos95
or use an AABB tree and do ray casting. But that's not really simpler :laughing:
Vladim√≠r VondruŇ°
@mosra
yeah no :D
what if there's more than just one channel 255?
ugh
i wonder how the phone in my pocket isn't just spontaneously catching fire every ten minutes
DaeMon87
@DaeMon87
@mosra I added that pluginList call and it returns an empty list
Vladim√≠r VondruŇ°
@mosra
are you using current master?
(asking because there's a particular behavior in older versions that could have this effect, so want to rule that out before we continue investigating further)
DaeMon87
@DaeMon87
im a few commits behind
ill update to latest
Vladim√≠r VondruŇ°
@mosra
if you have at least mosra/corrade@e6f6538 then all is fine
now, when it fails to load the plugin, it prints a message to the standard output, can i see what it prints?
DaeMon87
@DaeMon87
I dont see the standard output in my application ill see what I can do to to get that output