Git Product home page Git Product logo

Comments (11)

SimonDanisch avatar SimonDanisch commented on September 26, 2024

Sorry, I haven't updated GLAbstraction for 1.0 yet - do you need GLAbstraction directly, or does E.g. Makie work for you? Makie includes a copy of GLAbstraction with 1.0 compat!

from glabstraction.jl.

kiranshila avatar kiranshila commented on September 26, 2024

I looked at Makie, I'm just getting lost in where a lot of the GL low level stuff is. All I need to do is create a GL context and a few easy shaders. My project requires me to render a ton of cubes and it seems as though the way Makie sends data through is as a 1D texture. For example, if I try this in Makie

lottaCubes = [(HyperRectangle(Vec3f0(rand(1:100),rand(1:100),rand(1:100)),Vec3f0(1)),
                RGBAf0(rand(Float32),rand(Float32),rand(Float32),1)) for i = 1:16385]

meshes = map(GLNormalMesh, lottaCubes)
mesh(merge(meshes))

I get a glTexImage 1D width error as the maximum size for a 1D texture is 16384.

It would seem then that I need to write some basic shaders and add some occlusion culling or something to be able to render more.

from glabstraction.jl.

SimonDanisch avatar SimonDanisch commented on September 26, 2024

This works for me:

using Makie
N = 16385
positions = [rand(Vec3f0) .* 100 .+ 1 for i = 1:16385]
colors = [RGBAf0(rand(Float32), rand(Float32), rand(Float32), 1) for i = 1:16385]
meshscatter(positions, color = colors, marker = FRect3D(Vec3f0(0), Vec3f0(2)), show_axis = false)

image

from glabstraction.jl.

kiranshila avatar kiranshila commented on September 26, 2024

Interesting, I will investigate further. I am still very new to Julia, I am coming from doing GL work in Common Lisp. Thank you for your help.

from glabstraction.jl.

JMurph2015 avatar JMurph2015 commented on September 26, 2024

Hi, this is a tough issue for me as well. Except, I use the vertex and fragment shader macros which aren't accommodated in Makie as far as I know...

from glabstraction.jl.

SimonDanisch avatar SimonDanisch commented on September 26, 2024

They are ;) GLMakie contains a full copy of GLAbstraction:
https://github.com/JuliaPlots/GLMakie.jl/blob/master/src/GLAbstraction/GLShader.jl#L2

from glabstraction.jl.

nfehrenbach avatar nfehrenbach commented on September 26, 2024

Since GLMakie contains a functional 1.0 version of GLAbstraction, are there plans to update GLAbstraction or has all development moved over to GLMakie?

from glabstraction.jl.

SimonDanisch avatar SimonDanisch commented on September 26, 2024

I kind of gave GLAbstraction to @louisponet who updated things... I'm currently work on ShaderAbstractions.jl, which might become the new GLAbstraction from my perspective ;)

from glabstraction.jl.

louisponet avatar louisponet commented on September 26, 2024

I have been using the master version of this repo in projects of mine, that should work perfectly on Julia 1.x. Could you try ] add GLAbstraction#master? I guess I should make a release.

On the development side of things, I work on OpenGL projects off and on, and I use this for all lowish-level OpenGL functionality. I add/update things as I use them since to me it doesn't make a lot of sense to create/develop an API type package without actually using it. Therefore, I'm fully open to any help, issues and suggestions on where to take this package.

from glabstraction.jl.

nfehrenbach avatar nfehrenbach commented on September 26, 2024

I'm away from my machine today, but I'll try this evening and reply with my results.

from glabstraction.jl.

nfehrenbach avatar nfehrenbach commented on September 26, 2024

@louisponet , your solution to add the master branch did the trick! Thanks!

from glabstraction.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.