-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
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
Use LocalPreferences.toml to use system level libEGL by default for linux systems #16
Comments
@VarLad came up with this option. Now we have to figure out how to ship this solution that works on all Linux-systems. |
|
Used |
Fixed here |
slack discussion is going on this approach. |
WGPUCanvas.jl is registered with this fix JuliaRegistries/General#95352 |
We can close this once anyone confirms that this is indeed fixed. |
@arhik Apologies, I'm running into the same issue again (it crashes with GLFW loaded) |
I was able to get the cube example running (using the hack I wrote). |
May be you are not placing |
By the way all examples in the GUI must be flipped vertically if you are using the master branch; I made few changes while working on gaussian splatting code. |
@arhik The LocalPreferences.jl file worked but I'm asking if instead of directly using GLFW.jl, does it make more sense to use WGPUCanvas instead? |
Yes totally. A little more abstraction with
with abstracted functions defined in |
I am not happy with too much clutter of duplicate includes too. I see your point. |
@arhik Is there any examples of WGPUCanvas.jl in action? |
I am not following. Can you rephrase or expand on it? |
All examples use |
If I misunderstood your question correct me please. |
It doesn't look like it but in Line 22 in f95dfd5
|
Platform dependent canvas will be loaded here. |
@arhik Ah, sorry, I thought WGPUCanvas acted as a replacement for directly using GLFW 😅 By the way, were you able to figure out why the libglvnd provided by BinaryBuilder gives issues here? |
No. But its a prevalent Symbol collision issue. |
@arhik I'm interested in helping to get the circle example working. Can you give me some directions towards this? |
UI circle example should help. Divide circle into triangle primitive. Within triangle primitive, you only need two sides as a template unit (i.e three vertices). You will have rotate these three vertices with 360/n degrees ( n - no of divisions) n times. All these already part of ui/circle.jl. https://github.com/JuliaWGPU/WGPUgfx.jl/blob/main/src/ui/circle.jl |
Basically you should return a Circle object with indexData, vertexData, colorData and normalData (optional) |
@arhik Is there any example that deals with 2D shapes? |
tri.jl and plane.jl is simplest. https://github.com/JuliaWGPU/WGPUgfx.jl/blob/main/examples/plane.jl These are actually 2D objects in 3D world. If you are asking for strictly 2D object restricted to image plane then look into ui/quad.jl. Its mostly copy paste of plane.jl except z-values are forced to zero and camera is not included in the generated in wgsl code. |
@arhik Thanks, that was really helpful. |
splat.jl should be listening to both mouse events and keypresses. No visual aid for key pressess. That would interesting project. For splat.jl to work you will have to download a file from here https://drive.google.com/drive/folders/1B8fBd3ivh1OuJBY_P28woJfmzvWc8WlO |
@arhik I looked at the specific example (splat.jl) but I can't seem to find the specific lines that seem to be listening to keypresses or mouse movements. |
key - 'a' for attaching event system and 'd' for detaching event system. You should see mouse pointer output and key events in the terminal window. |
Look into events.jl files in both |
No description provided.
The text was updated successfully, but these errors were encountered: