Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 00:09
    mathias7777 starred mosra/magnum-bootstrap
  • 00:09
    wsw0108 starred mosra/magnum-bootstrap
  • 00:07
    mathias7777 starred mosra/magnum-plugins
  • 00:07
    wsw0108 starred mosra/magnum-plugins
  • Jun 13 23:49
    mathias7777 starred mosra/magnum
  • Jun 13 23:48
    wsw0108 starred mosra/magnum
  • Jun 13 20:33
    mosra locked #118
  • Jun 13 20:32
    mosra closed #118
  • Jun 13 20:32
    mosra commented #118
  • Jun 13 20:32
    mosra commented #79
  • Jun 13 20:32
    mosra commented #453
  • Jun 13 20:32
    mosra locked #519
  • Jun 13 20:32
    mosra closed #519
  • Jun 13 20:32
    mosra commented #519
  • Jun 13 20:31
    mosra locked #518
  • Jun 13 20:31
    mosra closed #518
  • Jun 13 20:31
    mosra commented #518
  • Jun 13 20:31
    mosra locked #517
  • Jun 13 20:31
    mosra commented #517
  • Jun 13 20:31
    mosra closed #517
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
Guillaume Jacquemin
@williamjcm
You could create a file stream and redirect Utility::Debug to it, for example.
Vladimír Vondruš
@mosra
or if you're using CMake and use add_executable(... WIN32 ...), temporarily remove that WIN32 to have a console window open (or the output shown in VS)