MakieOrg / Makie.jl

Interactive data visualizations and plotting in Julia
https://docs.makie.org/stable
MIT License
2.38k stars 302 forks source link

regression: FastPixel() doesn't work anymore #4263

Open aplavin opened 2 weeks ago

aplavin commented 2 weeks ago
julia> using GLMakie
julia> scatter(rand(10^5), marker=FastPixel())

gives an empty plot: image While it certainly worked before.

SimonDanisch commented 2 weeks ago

Sigh, this must be Apple doing something weird - since we actually fixed FastPixel in the new version. Is there any error or anything in the terminal? This works on windows, linux CI, nvidia and AMD...

SimonDanisch commented 2 weeks ago

You can also try: ENV["MODERNGL_DEBUGGING"] = "true"; Pkg.build("ModernGL")

aplavin commented 2 weeks ago

No error, neither from the plot nor from ModernGL rebuild.

SimonDanisch commented 2 weeks ago

nor from ModernGL rebuild.

Did you run the example after rebuilding and reloading ModernGL & GLMakie?

SimonDanisch commented 2 weeks ago

I dont have a mac, so I cant debug it, but if you have a second you could play around with the shader and maybe narrow down the problem: https://github.com/MakieOrg/Makie.jl/blob/master/GLMakie/assets/shader/dots.vert#L58-L77 I'd start by removing the if (markerspace ==0) and setting gl_PointSize = 10 instead to get an idea what's broken. You need GLMakie.closeall() after each shader change.

asinghvi17 commented 2 weeks ago

The plot looks the same if I set gl_PointSize=10 in the shader.

Screenshot 2024-08-27 at 1 46 38 PM

Setting it to any other number (1, 30, 100) also doesn't change anything.

The example scatter(rand(10^5), rand(10^5); marker = FastPixel()) is also just a blank Axis.

Even scatter(rand(10), rand(10); marker = FastPixel()) does not display anything.

SimonDanisch commented 2 weeks ago

Jeez, than gl_PointSize must simply be broken on OSX, I'd say... No idea what else should be the take away here. It's a pretty old feature, maybe they simply dont test it 🤷

asinghvi17 commented 2 weeks ago

Potentially related - https://github.com/bkaradzic/bgfx/issues/2822