Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Simon
    @SimonDanisch
    Hi
    Elburz Sorkhabi
    @elburz
    how are you doing?
    Simon
    @SimonDanisch
    Good how are you?!
    if you've more questions about julia and opengl + glfw feel free to ask ;)
    Simon
    @SimonDanisch
    here's a minimal example with GLFW+ React:
    using GLFW, Reactive
    
    GLFW.Init()
    
    window = GLFW.CreateWindow(100, 100, "name")
    GLFW.MakeContextCurrent(window)
    GLFW.ShowWindow(window)
    
    keys = Input('0')
    char_callback(window, c) = (push!(keys, Char(c)); nothing)
    
    
    GLFW.SetCharCallback(window, char_callback)
    
    lift(println, keys)
    
    while !GLFW.WindowShouldClose(window)
      yield()
      GLFW.SwapBuffers(window)
      GLFW.PollEvents()
    end
    
    GLFW.Terminate()
    sorry, anonymous callbacks might not work at the moment... -.- have to see whats going on there
    Elburz Sorkhabi
    @elburz
    no problem, that's very kind of you.
    Simon
    @SimonDanisch
    I'm not sure on which branch of glfw you are... it was actually broken on julia04 and i already fixed it
    Elburz Sorkhabi
    @elburz
    to give you a bit of context about where I'm at and what I'm trying to achieve, this is my company: http://nvoid.com and we create large scale high end media installations and interactive pieces. I've been watching Julia for a bit now but never had a reason to dive in until one of my side projects, http://spacejobs.us went live and I figured it'd be a nice experiment to do some data analysis of it's database using julia in an iPython notebook, was a ton of fun, really enjoyed it. so now i'm really interested in trying to make a creative coding framework/library for/with Julia seems it seems to be fast enough to achieve it (whereas I had always considered making something in Python but had been steered away because of performance concerns)
    Simon
    @SimonDanisch
    interesting... well GLVisualize is supposed to be exactly this I guess :D
    Elburz Sorkhabi
    @elburz
    :)
    i'll dig into it soon enough
    Simon
    @SimonDanisch
    and it beats mayavi and vispy in terms of animation speed
    Elburz Sorkhabi
    @elburz
    also an excuse for me to try and bump up my coding skills a level
    Simon
    @SimonDanisch
    it's sort of a rewrite of glplot
    and you might not get it to work that easily, if you check it out right now
    Elburz Sorkhabi
    @elburz
    our software that we dev ends up being very much just complex arrays of Python scripts instead of cohesive and structured things
    are you running 0.4?
    Simon
    @SimonDanisch
    yes
    it's actually not running on 0.3
    Elburz Sorkhabi
    @elburz
    i was contemplating moving up from .3.8 or .3.7
    ah
    Simon
    @SimonDanisch
    well I'm actually just about to clean some things up, so that you could add glvisualize with it actually working
    Elburz Sorkhabi
    @elburz
    also if you don't mind me asking, what kind of work do you do? your work is really great, just a pleasure to read through the code (also something I'm trying to get more in the habit of doing)
    Simon
    @SimonDanisch
    thanks, very glad to hear =)
    I'm working on my thesis right now :D and glvisualize is somewhat the result of it
    the goal is to create a 3d visualization library that is modular, concise, fast and good for animated data ;)
    Elburz Sorkhabi
    @elburz
    interesting, i'll have to add glvisualize to my "to check" list today
    do you know if Julia has hap video decoding, either in Image, or another library?
    Simon
    @SimonDanisch
    VideoIO
    it's quite easy to play videos and gifs with glvisualize
    Elburz Sorkhabi
    @elburz
    ah excellent
    so much to read!
    Simon
    @SimonDanisch
    well, i don't have much documentation yet, so easiest would be if you can just run all the examples in the test folder... I see if I can clean all the "dirty" dependencies up, so that you don't have to hack around to much to get it running
    Simon
    @SimonDanisch
    by the way, the scene graph is really marginal... That's "on purpose" as I want to make a really nice one at some point, utilizing all the modern stuff like opencl and vulkan, and probably even julias (llvm's) capability of compiling to the GPU... but that's something which will take quite a while
    but that would have been too much to tackle in one go
    Elburz Sorkhabi
    @elburz
    im excited about vulkan, have to look into it more
    Simon
    @SimonDanisch
    yeah, it will be quite interesting how it plays out... in the best case scenario, Julia could compile to vulkan directly;)
    that's what I'm hoping for... GLSL and OpenCL is nice... but in the end, I'm still writing a lot of redundant, not that nice looking code
    Elburz Sorkhabi
    @elburz
    compile directly? wow, that'd open up some possibilities
    I'm still scratching the surface of the intricacies of julia
    like metaprogramming/macros, and haven't even read about threading or parallel computer things yet
    Simon
    @SimonDanisch
    well julia translates to llvm ir, and llvm ir is supposed to be compilable to vulkan
    but as simple as this sounds, sadly it might take quite a while to get this going...
    Elburz Sorkhabi
    @elburz
    i know very little about llvm, I feel like i've read about it with mentions to the JIT compiling, and I feel like the llvm is why Java is still used heavily in enterprise applications?
    Simon
    @SimonDanisch
    you mean the java virtual machine?
    Elburz Sorkhabi
    @elburz
    ah maybe I'm getting them confused
    Simon
    @SimonDanisch
    yeah they're quite different, but they do comparable stuff
    Shtumf's place
    @shtumf
    Hi, I would like to start with Game development in Julia, building/programming the game engine in Julia. I know a little python and a little about c++, but Julia looks so interesting. I want to build a 3D game. So I guess Vulkan and Julia would be a good start. I am aware that my attempt to produce/make a good game might fail. The most frighting is the lack of books written for Julia, I dont mean the data science ones, but game development books. So I guess I ll just have to read this book http://www.gameenginebook.com/ , and maybe some book about Vulkan technology from Khronos. I stoped here to ask for help, any good advice is appriciated and directions from the experts are very welcome. Is there anyone that has already made a complete game in julia, 3D game. Found this https://github.com/svaksha/Julia.jl/blob/master/Computer-Graphics.md#games and was already reading the code. But I hoped for some tutorial/book/youtube. Do you know of any resources to learn "Making games in Julia and OpenGL or Vulkan" ? Was also thinking to read/buy this book https://www.amazon.com/Mathematics-Programming-Computer-Graphics-Third/dp/1435458869