Where communities thrive


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

    mosra on next

    modules: Glslang, you're the re… (compare)

  • 22:24

    mosra on next

    modules: Glslang, you're the re… (compare)

  • 22:14

    mosra on next

    SpirvToolsShaderConverter: drop… SpirvToolsShaderConverter: adap… modules: Glslang, you're the re… (compare)

  • 21:42
    Build #1368 passed
  • 21:09

    mosra on next

    OpenExr{Importer,ImageConverter… (compare)

  • 21:07
    mosra commented #522
  • 20:47
    mosra milestoned #522
  • 20:26
    mosra edited #91
  • 20:25
    mosra edited #91
  • 19:59
    mosra milestoned #97
  • 19:22
    mosra milestoned #91
  • 19:22
    mosra edited #91
  • 15:39
    diwant commented #522
  • 15:39
    diwant edited #522
  • 15:19
    diwant commented #522
  • 15:16
    diwant opened #522
  • Jun 18 22:21
    pezcode commented #97
  • Jun 18 22:12
    pezcode opened #97
  • Jun 18 21:54

    mosra on next

    OpenExr{Importer,ImageConverter… (compare)

  • Jun 18 21:19

    mosra on next

    OpenExr{Importer,ImageConverter… (compare)

Vladimír Vondruš
@mosra
if it doesn't find the plugin, it prints a message to the standard output, can you post it here? what does fontManager.pluginList() print?
@AndySomogyi about the Screen conflict, is it possible that you have using namespace Magnum::Platform somewhere? that could cause this ... otherwise this shouldn't happen, as Screen is always unambiguous
Vladimír Vondruš
@mosra
@linuxaged what's exactly not working when reading depth? do you get a GL error? which browser is this? i remember i had to do a very nasty workaround to make this work on firefox
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