Comments (15)
Is N very big? Because then the points would be outside the window area...
from glvisualize.jl.
It is small, N=10
Defining this function
function plot(m)
srand(17)
w, r = glscreen()
@async r()
s = Vec2f0(50)
N = 10
v_pos = Point2f0[Point2f0((N*s[1]*rand(2))...) for i=1:N]
v_img = HyperSphere(Point2f0(0), 30f0)
vis_nodes = visualize((v_img, v_pos), :lines, scale=s)
view(vis_nodes, method=:orthographic_pixel)
# m used here
v = visualize(v_pos[1:m], :lines, scale=s)
view(v, method=:orthographic_pixel)
end
I obtain
from glvisualize.jl.
I guess your problem is that the primitives are not centered?
I should have fixed this in a newer commit, if you dare to checkout.
Also, when given a primitive with dimensions, you don't need to supply the scale!
In the newer commit, you can define the centering yourself. With the circle, it's centered at the middle point.
from glvisualize.jl.
Oh yes, that was a problem, but the real problem is that with plot(3) I was expecting to see two segments
from glvisualize.jl.
Ah yeah... That's actually what I wanted to work on today. That's a peculiarity of OpenGL and I want to make a proper work around and fix another issue while at it (being able to add a list of indexes and specifying which points are connected). The only work around you can use right away is, to never have less than 4 points...
There is this annoying temporary fix:
a,b = points
ab = b-a
points = vcat(a-(ab*0.00001f0),a,b,b+(ab*0.00001f0)) #start and end have to be slightly different
from glvisualize.jl.
ok thanks.
As an alternative, there is a way to visualize types from GeometryTypes.jl, like LineSegment?
from glvisualize.jl.
(being able to add a list of indexes and specifying which points are connected).
that's exactly what I need to visualize a graph
from glvisualize.jl.
Well, that's basically what I will be implementing.
from glvisualize.jl.
Great! I can't promise anything, but I'm working on it ;)
from glvisualize.jl.
Okay I fixed the line endings and made a step forward towards the segments ;) I just need to integrate a few changes into the rest of the infrastructure to make it work for the generic case.
from glvisualize.jl.
nice!
still some sprites' offset after last patches
from glvisualize.jl.
uh...have you removed scale=s
?
from glvisualize.jl.
ouch, right, sorry, it works perfectly!
from glvisualize.jl.
@SimonDanisch
Any idea why I keep getting this?
julia julia> Pkg.checkout("GeometryTypes", "sd/typealias") INFO: Checking out GeometryTypes sd/typealias... WARNING: Cannot perform fast-forward merge. INFO: Pulling GeometryTypes latest sd/typealias... WARNING: Cannot perform fast-forward merge. INFO: No packages to install, update or remove
from glvisualize.jl.
that's a julia/github issue. Sometimes it helped to first do Pkg.checkout("GeometryTypes", "master")
.
You can also try doing it manually. Just go into the GeometryTypes
folder with your terminal and type:
git checkout sd/typealias
You might need to throw in a:
git reset --hard HEAD
If there have been changes in the sources.
from glvisualize.jl.
Related Issues (20)
- How to use rotations?
- Make deleting an object easier by returning the output of extract_renderable from _view HOT 3
- 1) Orthographic camera example, 2) Default camera too close, and 3) Custom camera disrupts zooming and rotation HOT 7
- Scoping error with `filter` function in camera.jl when running GLPlot HOT 7
- cubecamera error HOT 8
- line_segment.vert will not link HOT 8
- Google Summer of Code 2018
- The glvisualize.com web site is gone (domain expired) HOT 4
- Color of an object changing in time HOT 3
- FFmpeg-converted video not showing properly in some of the standard players HOT 2
- Test failed on volume.jl, warnings in build HOT 4
- Doc examples out of date?
- Dynamically adjust the number of rendered objects HOT 6
- test errors on MacOS HOT 5
- ERROR: GLVisualize test HOT 2
- Julia 0.7 / 1.0 HOT 9
- ERROR: Unsatisfiable requirements detected for package GLVisualiz HOT 1
- Info about upcoming removal of packages in the General registry
- Unsatisfiable requirements with julia 1.2.0 on Ubuntu 18.04 HOT 1
- More volume rendering algorithms HOT 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 glvisualize.jl.