Comments (3)
Hi @LaCuneta,
Thanks for your detailed thoughts on how to proceed and for your welcome to the netlogo community.
I had just assumed that netlogo 3d was overkill for my problem and then got sucked into view2.5d for visualisation. Thanks for pointing this out. I'll look into netlogo 3d first!
from view2.5d.
Link visualization has been added!
Links can be visualized going from turtle to turtle
view2.5d 1.1.5
Links can be visualized either in the xy plane, or from turtle to turtle
view2.5d 1.1.6
from view2.5d.
Hey Rob,
Thanks for the suggestion, I think it's a good one.
If you've got a model that you want to display in a 3D view with links between turtles, the full NetLogo 3D app will do that already. You'd need to add code to the model to se the "height" of your turtles that the 2.5D does automatically, but that's usually pretty simple. Just wanted to point that out so you don't dive in to a load of extra work when there was an alternative.
What you're proposing should be possible, but from glancing at the code it will be a good bit of work. If you're interested in working on it yourself, you'll need sbt installed, it's the build tool for the project. While it's mostly associated with the Scala language, it compiles and packages Java just fine, too. You can use compile
to compile the project and package
to package the jar. Note while working you'll probably want to add isSnapshot := true
to the build.sbt
file to make sure sbt will package
your code even with uncommitted changes.
Once you've got things compiling and packaging, you can get down to development. The general NetLogo extensions API wiki page might be a good starting reference for how extensions work. For this project, the prims are published in the View25DExtension.java
file, and the interesting ones for turtle links would be MakeTurtleView.java
and UpdateOneTurtleView.java
which are the entry points for creating and updating the turtle views. That's where you'd want to add the link drawing, I suspect.
The first thing you'd need to look into is simply getting a collection of all the links for the turtles in the agentset for a view, possibly from the world
object. Once you've got those links, then you'd need to draw them out somehow. The drawing code is in the gl
folder, and I'll admit it's mostly a mystery to me. Hopefully the turtle and patch drawing code there would be good enough examples to try to add link drawing, as well.
Like I said, that's a good bit of work. If you do run into trouble with it you can visit us in our Gitter chat room or post to the NetLogo devel mailing list and I or someone else will try to help you out.
from view2.5d.
Related Issues (8)
- Error after running slime for a while
- Zoom on mouse scroll no matter what mode you're in
- `view2.5d:patch-view` generates null pointer exception in headless mode
- `set-observer-angles` works only after view is open
- view2.5d:turtle-view raises NullPointerExceptation error HOT 2
- The view2.5D extension does not handle shape changes HOT 1
- NullPointerException when deleting a shape and closing/opening a turtle view
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 view2.5d.