Comments (6)
Hi,
off the top of my head, something like this should work:
visualize(positions, primitive=GLNormalMesh(your_custom_mesh),
particle_color=rgba(1,0,1,1))
You can look at the results of GLVisualize.visualize_default(positions, Style{}())
(I need to give this a nicer interface and export it), to see
what defaults it uses ( to then give it customized attributes).
You might want to create something like call{M <: Mesh}(::Type{M}, Sphere) = M(sphere_vertex, sphere_faces)
I'll hope to finish my bachelor thesis in the next days... After that I'll
use 100% of my time to develop the edit widgets ;)
Best,
Simon
2015-05-27 15:18 GMT+02:00 AlainLich [email protected]:
Hi Simon,
I am wondering how I can have different specified colors and/or shapes for
the planets in example
nbody.jl.In the variant that I use (subscreen6.xml) of Romeo/test, the code says
const positions = lift(send_frame, time_i, Input(world.planets)) const robj = visualize(positions, model=scalematrix(Vec3(0.1f0)), screen=sc, camera=cam)
Best
AlainPS: please let me know when I can try the edit object.
—
Reply to this email directly or view it on GitHub
#3.
from glvisualize.jl.
Hi
I understand you are busy, so I will not bug you for a fortnight.
I'll try to use your suggestions. The problem is that in this example there are 4 planets, so I suppose I need to separate them and issue separate visualize for each (with proper color and style), in the same spirit as what is done to display the trajectories.
Best
Alain
from glvisualize.jl.
aaah okay wait let me look into it ;)
2015-05-27 17:00 GMT+02:00 AlainLich [email protected]:
Hi
I understand you are busy, so I will not bug you for a fortnight.
I'll try to use your suggestions. The problem is that in this example
there are 4 planets, so I suppose I need to separate them and issue
separate visualize for each (with proper color and style), in the same
spirit as what is done to display the trajectories.Best
Alain—
Reply to this email directly or view it on GitHub
#3 (comment)
.
from glvisualize.jl.
Okay, try it out... you need to update GLAbstraction and GLVisualize.
(Example in test_particles.jl)
Best,
Simon
from glvisualize.jl.
Thanks
from glvisualize.jl.
Hi Simon,
got it to run, also needed to update Reactive. I'll let you write your thesis from now on.
Best
Alain
PS: FYI, I made some progress with extending MetadataTools to display installed packages
https://github.com/AlainLich/MetadataTools.jl/tree/supportInstalled
. For Romeo (including GLAbstraction), this gives the following graph
(This needs several patches notably to Graphs, corresponding PRs not merged yet)
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.