Comments (11)
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.
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.
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)
from glabstraction.jl.
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.
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.
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.
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.
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.
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.
I'm away from my machine today, but I'll try this evening and reply with my results.
from glabstraction.jl.
@louisponet , your solution to add the master branch did the trick! Thanks!
from glabstraction.jl.
Related Issues (20)
- ERROR: UndefVarError: switch_context! not defined
- ERROR: MethodError: no method matching shadertype... HOT 1
- using pixel buffer objects
- TagBot trigger issue HOT 1
- Update tutorials and examples to work, now that `GLWindow.jl` has been archived. HOT 1
- src/shader/program.jl - early call to glUseProgram causes GL_INVALID_OPERATION
- Fails to precompile on Julia 0.6 HOT 6
- Batch flushing data to GLBuffer HOT 2
- Improve PerspectiveCamera rotation (upvector) HOT 3
- possible type instability in translate_cam HOT 6
- Loading shader from file results in LazyShader error
- FrameBuffer, GLFramebuffer, scattered functionality... OpenGL package? HOT 13
- segfault on finalizer HOT 3
- How to dynamically update a texture? HOT 2
- Cannot precompile with Julia v0.6.3 HOT 14
- LLVM.dll unknown line
- Static z-axis rotation HOT 5
- Info about upcoming removal of packages in the General registry
- Nothing exported? [Julia v1.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 glabstraction.jl.