We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
julia> include("docs\\src\\examples\\surfacelink.jl") WARNING: imported binding for range overwritten in module Main 1 : #version 330 2 : 3 : #extension GL_ARB_conservative_depth: enable 4 : 5 : struct Nothing{ //Nothing type, to encode if some variable doesn't contain any data 6 : bool _; //empty structs are not allowed 7 : }; 8 : struct Grid1D{ 9 : float ref; 10 : float offset; 11 : float _step; 12 : int dims; 13 : }; 14 : struct Grid2D{ 15 : vec2 ref; 16 : vec2 offset; 17 : vec2 _step; 18 : ivec2 dims; 19 : }; 20 : struct Grid3D{ 21 : vec3 ref; 22 : vec3 offset; 23 : vec3 _step; 24 : ivec3 dims; 25 : }; 26 : 27 : in vec4 uv_offset_width; 28 : // uv_width; 29 : in vec3 position; 30 : uniform Nothing position_x; 31 : uniform Nothing position_y; 32 : uniform Nothing position_z; 33 : //Assembling functions for creating the right position from the above inputs. They also indicate the type combinations allowed for the above inputs 34 : ivec2 ind2sub(ivec2 dim, int linearindex); 35 : ivec3 ind2sub(ivec3 dim, int linearindex); 36 : 37 : in vec2 scale; // so in the case of distinct x,y,z, there's no chance to unify them under one variable 38 : uniform Nothing scale_x; 39 : uniform Nothing scale_y; 40 : uniform Nothing scale_z; 41 : vec3 _scale(Nothing scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index); 42 : vec3 _scale(vec3 scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index); 43 : vec3 _scale(vec2 scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index); 44 : vec3 _scale(Nothing scale, float scale_x, float scale_y, float scale_z, int index); 45 : vec3 _scale(vec3 scale, float scale_x, float scale_y, float scale_z, int index); 46 : vec3 _scale(vec2 scale, float scale_x, float scale_y, float scale_z, int index); 47 : 48 : 49 : 50 : in vec2 offset; 51 : 52 : in vec4 rotation; 53 : vec3 _rotation(Nothing r){return vec3(0,0,1);} 54 : vec3 _rotation(vec2 r){return vec3(r, 3.1415926535897);} 55 : vec3 _rotation(vec3 r){return r;} 56 : 57 : float get_rotation_len(vec2 rotation){ 58 : return length(rotation); 59 : } 60 : float get_rotation_len(Nothing rotation){ 61 : return 1.0; 62 : } 63 : float get_rotation_len(vec3 rotation){ 64 : return length(rotation); 65 : } 66 : vec3 _scale(Nothing scale, float scale_x, float scale_y, Nothing scale_z, int index){ 67 : float len = get_rotation_len(rotation); 68 : return vec3(scale_x,scale_y, len); 69 : } 70 : vec3 _scale(vec3 scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index){ 71 : float len = get_rotation_len(rotation); 72 : return vec3(scale.xy, scale.z*len); 73 : } 74 : 75 : in vec4 color; 76 : uniform Nothing color_map; 77 : uniform Nothing intensity; 78 : uniform Nothing color_norm; 79 : 80 : float get_intensity(vec3 rotation, Nothing position_z, int index){return length(rotation);} 81 : float get_intensity(vec2 rotation, Nothing position_z, int index){return length(rotation);} 82 : float get_intensity(Nothing rotation, float position_z, int index){return position_z;} 83 : float get_intensity(vec3 rotation, float position_z, int index){return position_z;} 84 : vec4 color_lookup(float intensity, sampler1D color_ramp, vec2 norm); 85 : 86 : vec4 _color(vec3 color, Nothing intensity, Nothing color_map, Nothing color_norm, int index, int len); 87 : vec4 _color(vec4 color, Nothing intensity, Nothing color_map, Nothing color_norm, int index, int len); 88 : vec4 _color(Nothing color, float intensity, sampler1D color_map, vec2 color_norm, int index, int len); 89 : vec4 _color(Nothing color, sampler1D intensity, sampler1D color_map, vec2 color_norm, int index, int len); 90 : vec4 _color(Nothing color, Nothing intensity, sampler1D color_map, vec2 color_norm, int index, int len){ 91 : return color_lookup(get_intensity(rotation, position_z, index), color_map, color_norm); 92 : } 93 : 94 : uniform vec4 stroke_color; 95 : uniform vec4 glow_color; 96 : 97 : uniform uint objectid; 98 : uniform int len; 99 : 100 : out uvec2 g_id; 101 : out int g_primitive_index; 102 : out vec3 g_position; 103 : out vec4 g_offset_width; 104 : out vec4 g_uv_offset_width; 105 : out vec3 g_rotation; 106 : out vec4 g_color; 107 : out vec4 g_stroke_color; 108 : out vec4 g_glow_color; 109 : 110 : 111 : 112 : void main(){ 113 : int index = gl_VertexID; 114 : g_primitive_index = index; 115 : vec3 pos; 116 : pos = vec3(position ); 117 : g_position = pos; 118 : g_offset_width.xy = offset.xy; 119 : g_offset_width.zw = _scale(scale, scale_x, scale_y, scale_z, g_primitive_index).xy; 120 : g_color = _color(color, intensity, color_map, color_norm, g_primitive_index, len); 121 : g_rotation = _rotation(rotation); 122 : g_uv_offset_width = uv_offset_width; 123 : g_stroke_color = stroke_color; 124 : g_glow_color = glow_color; 125 : 126 : g_id = uvec2(objectid, index+1); 127 : } 128 : WARNING: shader C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\..\assets\shader\sprites.vert didn't compile. ERROR: 0:68: 'get_rotation_len' : no matching overloaded function found (using implicit conversion) ERROR: 0:68: 'get_rotation_len' : function is not known ERROR: 0:72: 'get_rotation_len' : no matching overloaded function found (using implicit conversion) ERROR: 0:72: 'get_rotation_len' : function is not known ERROR: 0:91: 'get_intensity' : no matching overloaded function found (using implicit conversion) ERROR: 0:91: 'get_intensity' : function is not known ERROR: 0:122: '_rotation' : no matching overloaded function found (using implicit conversion) ERROR: 0:122: '_rotation' : function is not known ERROR: 0:121: 'assign' : cannot convert from 'const highp float' to 'varying 3-component vector of highp float' 1 : #version 330 2 : 3 : #extension GL_ARB_conservative_depth: enable 4 : 5 : struct Nothing{ //Nothing type, to encode if some variable doesn't contain any data 6 : bool _; //empty structs are not allowed 7 : }; 8 : struct Grid1D{ 9 : float ref; 10 : float offset; 11 : float _step; 12 : int dims; 13 : }; 14 : struct Grid2D{ 15 : vec2 ref; 16 : vec2 offset; 17 : vec2 _step; 18 : ivec2 dims; 19 : }; 20 : struct Grid3D{ 21 : vec3 ref; 22 : vec3 offset; 23 : vec3 _step; 24 : ivec3 dims; 25 : }; 26 : 27 : in vec4 uv_offset_width; 28 : // uv_width; 29 : in vec3 position; 30 : uniform Nothing position_x; 31 : uniform Nothing position_y; 32 : uniform Nothing position_z; 33 : //Assembling functions for creating the right position from the above inputs. They also indicate the type combinations allowed for the above inputs 34 : ivec2 ind2sub(ivec2 dim, int linearindex); 35 : ivec3 ind2sub(ivec3 dim, int linearindex); 36 : 37 : in vec2 scale; // so in the case of distinct x,y,z, there's no chance to unify them under one variable 38 : uniform Nothing scale_x; 39 : uniform Nothing scale_y; 40 : uniform Nothing scale_z; 41 : vec3 _scale(Nothing scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index); 42 : vec3 _scale(vec3 scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index); 43 : vec3 _scale(vec2 scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index); 44 : vec3 _scale(Nothing scale, float scale_x, float scale_y, float scale_z, int index); 45 : vec3 _scale(vec3 scale, float scale_x, float scale_y, float scale_z, int index); 46 : vec3 _scale(vec2 scale, float scale_x, float scale_y, float scale_z, int index); 47 : 48 : 49 : 50 : in vec2 offset; 51 : 52 : in vec4 rotation; 53 : vec3 _rotation(Nothing r){return vec3(0,0,1);} 54 : vec3 _rotation(vec2 r){return vec3(r, 3.1415926535897);} 55 : vec3 _rotation(vec3 r){return r;} 56 : 57 : float get_rotation_len(vec2 rotation){ 58 : return length(rotation); 59 : } 60 : float get_rotation_len(Nothing rotation){ 61 : return 1.0; 62 : } 63 : float get_rotation_len(vec3 rotation){ 64 : return length(rotation); 65 : } 66 : vec3 _scale(Nothing scale, float scale_x, float scale_y, Nothing scale_z, int index){ 67 : float len = get_rotation_len(rotation); 68 : return vec3(scale_x,scale_y, len); 69 : } 70 : vec3 _scale(vec3 scale, Nothing scale_x, Nothing scale_y, Nothing scale_z, int index){ 71 : float len = get_rotation_len(rotation); 72 : return vec3(scale.xy, scale.z*len); 73 : } 74 : 75 : in vec4 color; 76 : uniform Nothing color_map; 77 : uniform Nothing intensity; 78 : uniform Nothing color_norm; 79 : 80 : float get_intensity(vec3 rotation, Nothing position_z, int index){return length(rotation);} 81 : float get_intensity(vec2 rotation, Nothing position_z, int index){return length(rotation);} 82 : float get_intensity(Nothing rotation, float position_z, int index){return position_z;} 83 : float get_intensity(vec3 rotation, float position_z, int index){return position_z;} 84 : vec4 color_lookup(float intensity, sampler1D color_ramp, vec2 norm); 85 : 86 : vec4 _color(vec3 color, Nothing intensity, Nothing color_map, Nothing color_norm, int index, int len); 87 : vec4 _color(vec4 color, Nothing intensity, Nothing color_map, Nothing color_norm, int index, int len); 88 : vec4 _color(Nothing color, float intensity, sampler1D color_map, vec2 color_norm, int index, int len); 89 : vec4 _color(Nothing color, sampler1D intensity, sampler1D color_map, vec2 color_norm, int index, int len); 90 : vec4 _color(Nothing color, Nothing intensity, sampler1D color_map, vec2 color_norm, int index, int len){ 91 : return color_lookup(get_intensity(rotation, position_z, index), color_map, color_norm); 92 : } 93 : 94 : uniform vec4 stroke_color; 95 : uniform vec4 glow_color; 96 : 97 : uniform uint objectid; 98 : uniform int len; 99 : 100 : out uvec2 g_id; 101 : out int g_primitive_index; 102 : out vec3 g_position; 103 : out vec4 g_offset_width; 104 : out vec4 g_uv_offset_width; 105 : out vec3 g_rotation; 106 : out vec4 g_color; 107 : out vec4 g_stroke_color; 108 : out vec4 g_glow_color; 109 : 110 : 111 : 112 : void main(){ 113 : int index = gl_VertexID; 114 : g_primitive_index = index; 115 : vec3 pos; 116 : pos = vec3(position ); 117 : g_position = pos; 118 : g_offset_width.xy = offset.xy; 119 : g_offset_width.zw = _scale(scale, scale_x, scale_y, scale_z, g_primitive_index).xy; 120 : g_color = _color(color, intensity, color_map, color_norm, g_primitive_index, len); 121 : g_rotation = _rotation(rotation); 122 : g_uv_offset_width = uv_offset_width; 123 : g_stroke_color = stroke_color; 124 : g_glow_color = glow_color; 125 : 126 : g_id = uvec2(objectid, index+1); 127 : } 128 : WARNING: shader C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\..\assets\shader\sprites.vert didn't compile. ERROR: 0:68: 'get_rotation_len' : no matching overloaded function found (using implicit conversion) ERROR: 0:68: 'get_rotation_len' : function is not known ERROR: 0:72: 'get_rotation_len' : no matching overloaded function found (using implicit conversion) ERROR: 0:72: 'get_rotation_len' : function is not known ERROR: 0:91: 'get_intensity' : no matching overloaded function found (using implicit conversion) ERROR: 0:91: 'get_intensity' : function is not known ERROR: 0:122: '_rotation' : no matching overloaded function found (using implicit conversion) ERROR: 0:122: '_rotation' : function is not known ERROR: 0:121: 'assign' : cannot convert from 'const highp float' to 'varying 3-component vector of highp float' ERROR: LoadError: program 34 not linked. Error in: C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\..\assets\shader\fragment_output.frag or C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\..\assets\shader\util.vert or C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\..\assets\shader\sprites.geom or C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\..\assets\shader\sprites.vert or C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\..\assets\shader\distance_shape.frag Attached vertex shader is not compiled. Stacktrace: [1] compile_program(::Array{GLAbstraction.Shader,1}, ::Array{Tuple{Int64,String},1}) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLAbstraction\src\GLShader.jl:205 [2] (::GLAbstraction.##78#84{Dict{Symbol,Any},NTuple{5,String}})() at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLAbstraction\src\GLShader.jl:270 [3] get!(::GLAbstraction.##78#84{Dict{Symbol,Any},NTuple{5,String}}, ::Dict{Any,GLAbstraction.GLProgram}, ::Tuple{NTuple{5,String},Array{Array{String,1},1}}) at .\dict.jl:449 [4] gl_convert(::GLVisualize.GLVisualizeShader, ::Dict{Symbol,Any}) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLAbstraction\src\GLShader.jl:262 [5] GLAbstraction.RenderObject(::Dict{Symbol,Any}, ::GLVisualize.GLVisualizeShader, ::GLAbstraction.StandardPrerender, ::Void, ::Reactive.Signal{GeometryTypes.HyperRectangle{3,Float32}}, ::Void) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLAbstraction\src\GLTypes.jl:308 [6] assemble_robj(::Dict{Symbol,Any}, ::GLVisualize.GLVisualizeShader, ::Reactive.Signal{GeometryTypes.HyperRectangle{3,Float32}}, ::UInt32, ::Void, ::Void) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\utils.jl:36 [7] assemble_shader(::Dict{Symbol,Any}) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\utils.jl:63 [8] visualize(::Any, ::GLAbstraction.Style{:default}, ::Dict{Symbol,Any}) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\GLVisualize\src\visualize_interface.jl:21 [9] (::GLVisualize.#kw##visualize)(::Array{Any,1}, ::GLVisualize.#visualize, ::Any, ::Symbol) at .\<missing>:0 [10] MakiE.TextBuffer(::GeometryTypes.Point{3,Float32}) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\MakiE\src\primitives\text.jl:25 [11] #axis#126(::Array{Any,1}, ::Function, ::MakiE.Node{Tuple{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},Base.#identity}) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\MakiE\src\axis.jl:92 [12] axis(::MakiE.Node{Tuple{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}},Base.#identity}) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\MakiE\src\axis.jl:92 [13] #axis#125(::Array{Any,1}, ::Function, ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::Vararg{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},N} where N) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\MakiE\src\axis.jl:88 [14] axis(::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::Vararg{StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}},N} where N) at C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\MakiE\src\axis.jl:88 [15] include_from_node1(::String) at .\loading.jl:569 [16] include(::String) at .\sysimg.jl:14 while loading C:\Users\PetrKrysl\AppData\Local\JuliaPro-0.6.0.1\pkgs-0.6.0.1\v0.6\MakiE\docs\src\examples\surfacelink.jl, in expression starting on line 23 julia>
The window that popped up did display a colored surface and a yellow wireframe grid.
The text was updated successfully, but these errors were encountered:
Looks like you haven't successfully checkout the sd/makie branch in GLAbstraction & GLVisualize!
Sorry, something went wrong.
Okay, now I get what you're saying. Sorry.
Merge pull request #3 from JuliaPlots/sd-pkgbounds
ef790ef
various fixes
Merge pull request #3 from JuliaPlots/sd-tag
2ee2289
changes for tagging
yscale=log10
No branches or pull requests
The window that popped up did display a colored surface and a yellow wireframe grid.
The text was updated successfully, but these errors were encountered: