Comments (22)
same problem here, "ARB_conservative_depth" is a feature of OpenGL 4.2, but Mac still get stuck in 4.1 for now. ref: https://www.opengl.org/registry/specs/ARB/conservative_depth.txt
from glvisualize.jl.
Can you comment out this line and try again?
https://github.com/JuliaGL/GLVisualize.jl/blob/master/src/types.jl#L238
Since this even work on Ubuntu with a HD 4400, it's more likely that it's just complaining about the extension!
from glvisualize.jl.
yes this solves the issue. Could you test for the OGL version and make this conditional?
from glvisualize.jl.
Great :) Yeah something like that... I'll create a fix tomorrow ;)
from glvisualize.jl.
Another idea... Can you report the output of these:
using GLWindow, ModernGL
GLWindow.create_glcontext()
i = glGetIntegerv(GL_NUM_EXTENSIONS)
exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i-1)]
filter(exts) do e
contains(e, "depth")
end
and in a new session:
using GLWindow, ModernGL
GLWindow.create_glcontext(major=4, minor=1)
i = glGetIntegerv(GL_NUM_EXTENSIONS)
exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i-1)]
filter(exts) do e
contains(e, "depth")
end
from glvisualize.jl.
julia> using GLWindow, ModernGL
julia> GLWindow.create_glcontext()
GLFW.Window(Ptr{Void} @0x00007fe2dbbe2b30,[#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef])
julia> i = glGetIntegerv(GL_NUM_EXTENSIONS)
45
julia> exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i-1)]
45-element Array{ByteString,1}:
"GL_ARB_blend_func_extended"
"GL_ARB_draw_buffers_blend"
"GL_ARB_draw_indirect"
"GL_ARB_ES2_compatibility"
"GL_ARB_explicit_attrib_location"
"GL_ARB_gpu_shader_fp64"
"GL_ARB_gpu_shader5"
"GL_ARB_instanced_arrays"
"GL_ARB_internalformat_query"
"GL_ARB_occlusion_query2"
"GL_ARB_sample_shading"
"GL_ARB_sampler_objects"
"GL_ARB_separate_shader_objects"
"GL_ARB_shader_bit_encoding"
"GL_ARB_shader_subroutine"
"GL_ARB_shading_language_include"
"GL_ARB_tessellation_shader"
"GL_ARB_texture_buffer_object_rgb32"
"GL_ARB_texture_cube_map_array"
"GL_ARB_texture_gather"
"GL_ARB_texture_query_lod"
"GL_ARB_texture_rgb10_a2ui"
"GL_ARB_texture_storage"
"GL_ARB_texture_swizzle"
"GL_ARB_timer_query"
"GL_ARB_transform_feedback2"
"GL_ARB_transform_feedback3"
"GL_ARB_vertex_attrib_64bit"
"GL_ARB_vertex_type_2_10_10_10_rev"
"GL_ARB_viewport_array"
"GL_EXT_debug_label"
"GL_EXT_debug_marker"
"GL_EXT_framebuffer_multisample_blit_scaled"
"GL_EXT_texture_compression_s3tc"
"GL_EXT_texture_filter_anisotropic"
"GL_EXT_texture_sRGB_decode"
"GL_APPLE_client_storage"
"GL_APPLE_container_object_shareable"
"GL_APPLE_flush_render"
"GL_APPLE_object_purgeable"
"GL_APPLE_rgb_422"
"GL_APPLE_row_bytes"
"GL_APPLE_texture_range"
"GL_ATI_texture_mirror_once"
"GL_NV_texture_barrier"
julia> filter(exts) do e
contains(e, "depth")
end
0-element Array{ByteString,1}
julia>
from glvisualize.jl.
julia> using GLWindow, ModernGL
julia> GLWindow.create_glcontext(major=4, minor=1)
ERROR: NSGL: The targeted version of OS X only supports core profile contexts for OpenGL 3.2 and above
in error at /Applications/Julia-0.4.2.app/Contents/Resources/julia/lib/julia/sys.dylib
in anonymous at /Users/knopp/.julia/v0.4/GLFW/src/GLFW.jl:26
in ##ErrorCallbackWrapper#7018 at /Users/knopp/.julia/v0.4/GLFW/src/callback.jl:50
in CreateWindow at /Users/knopp/.julia/v0.4/GLFW/src/glfw3.jl:342
in create_glcontext at /Users/knopp/.julia/v0.4/GLWindow/src/screen.jl:206
in create_glcontext at /Users/knopp/.julia/v0.4/GLWindow/src/screen.jl:191
julia> i = glGetIntegerv(GL_NUM_EXTENSIONS)
signal (11): Segmentation fault: 11
glGetIntegerv at /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib (unknown line)
glGetIntegerv at /Users/knopp/.julia/v0.4/ModernGL/src/functionloading.jl:39
glGetIntegerv at /Users/knopp/.julia/v0.4/GLAbstraction/src/GLExtendedFunctions.jl:98
jlcall_glGetIntegerv_21524 at (unknown line)
jl_apply at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/gf.c:1691
jl_apply at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/interpreter.c:55
eval at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/interpreter.c:213
eval at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/interpreter.c:219
eval_body at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/interpreter.c:592
jl_toplevel_eval_body at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/interpreter.c:527
jl_toplevel_eval_flex at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/toplevel.c:521
jl_toplevel_eval_in at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/builtins.c:579
eval_user_input at REPL.jl:62
jlcall_eval_user_input_21202 at (unknown line)
jl_apply at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia.h:1325
anonymous at REPL.jl:92
jl_apply at /Users/osx/buildbot/slave/package_osx10_9-x64/build/src/./julia.h:1325
Segmentation fault: 11
from glvisualize.jl.
What?! :D
can you try:
using GLWindow, ModernGL
GLWindow.create_glcontext(major=4, minor=1)
i = Ref{GLint}(0)
glGetIntegerv(GL_NUM_EXTENSIONS, i)
exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i[]-1)]
filter(exts) do e
contains(e, "depth")
end
from glvisualize.jl.
Sorry, I didn't read the error entirely...That's sort of to be expected...Let me fix this first!
from glvisualize.jl.
Okay, now:
Pkg.checkout("GLWindow")
using GLWindow, ModernGL
GLWindow.create_glcontext(major=4, minor=1)
bytestring(glGetString(GL_VERSION))
i = glGetIntegerv(GL_NUM_EXTENSIONS)
exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i-1)];
filter(exts) do e
contains(e, "depth")
end
from glvisualize.jl.
julia> Pkg.checkout("GLWindow")
INFO: Checking out GLWindow master...
INFO: Pulling GLWindow latest master...
INFO: No packages to install, update or remove
julia> using GLWindow, ModernGL
INFO: Recompiling stale cache file /Users/knopp/.julia/lib/v0.4/GLWindow.ji for module GLWindow.
julia> GLWindow.create_glcontext(major=4, minor=1)
GLFW.Window(Ptr{Void} @0x00007f994bb8c710,[#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef,#undef])
julia> bytestring(glGetString(GL_VERSION))
"4.1 INTEL-10.2.46"
julia> i = glGetIntegerv(GL_NUM_EXTENSIONS)
45
julia> exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i-1)];
julia> filter(exts) do e
contains(e, "depth")
end
0-element Array{ByteString,1}
julia>
from glvisualize.jl.
Thanks! Sorry that I need to use you for this annoying kind of debugging!
But can you try one last thing before I take this away from OSX:
Go to this line https://github.com/JuliaGL/GLVisualize.jl/blob/master/src/renderloop.jl#L9
and turn it into:
screen = Screen(name, resolution=resolution, debugging=debugging, major=4, minor=1)
# I don't know what your maximum supported minor is, so you could also try
# minor = 2 or, 3, or 4
from glvisualize.jl.
This must go together with the first fix, since it doesn't have the extension. But with some luck, it could just offer it without extension. I just can't believe, that the infamous linux drivers for an older graphic card support this and OSX with a relatively good OpenGL support doesn't ;)
from glvisualize.jl.
no does not seem to work. If I change minor to 2 I get an issue
julia> window = glscreen()
ERROR: The requested client API version is unavailable
Note that Apple is ditching OpenGL in favor for Metal. So unfortunately support will not be improved.
from glvisualize.jl.
Yeah I know... It's such an incredibly annoying move by Apple...
from glvisualize.jl.
Can you see if #64 fixes it?
Thanks! :)
from glvisualize.jl.
Nope. I did
Pkg.checkout("GLVisualize","sd/fixosx")
and still get
WARNING: shader /Users/knopp/.julia/v0.4/GLVisualize/src/../assets/shader/volume.frag didn't compile.
ERROR: 0:182: Unknown identifier 'depth_greater' in layout
from glvisualize.jl.
Sorry I should have tested it better :( Now it should work!
from glvisualize.jl.
OK, it's now working!! Thanks a lot. For reference, here is what I see. Is it correct?
from glvisualize.jl.
(That's the contents of the window that pops up.)
from glvisualize.jl.
yea works now. Thanks Simon
from glvisualize.jl.
Thanks! :)
from glvisualize.jl.
Related Issues (20)
- How to use rotations?
- Make deleting an object easier by returning the output of extract_renderable from _view HOT 3
- 1) Orthographic camera example, 2) Default camera too close, and 3) Custom camera disrupts zooming and rotation HOT 7
- Scoping error with `filter` function in camera.jl when running GLPlot HOT 7
- cubecamera error HOT 8
- line_segment.vert will not link HOT 8
- Google Summer of Code 2018
- The glvisualize.com web site is gone (domain expired) HOT 4
- Color of an object changing in time HOT 3
- FFmpeg-converted video not showing properly in some of the standard players HOT 2
- Test failed on volume.jl, warnings in build HOT 4
- Doc examples out of date?
- Dynamically adjust the number of rendered objects HOT 6
- test errors on MacOS HOT 5
- ERROR: GLVisualize test HOT 2
- Julia 0.7 / 1.0 HOT 9
- ERROR: Unsatisfiable requirements detected for package GLVisualiz HOT 1
- Info about upcoming removal of packages in the General registry
- Unsatisfiable requirements with julia 1.2.0 on Ubuntu 18.04 HOT 1
- More volume rendering algorithms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glvisualize.jl.