Closed pcaillou closed 2 years ago
I think it has never been implemented in GAMA
And indeed there is a problem in opengl in DisplayedAgentMenu.java in widgetSelected()
I don't know how come but when calling surface.followAgent(a); a is null so it raises
an exception and make the follow feature fails...
Original issue reported on code.google.com by agrignard
on 2014-03-18 08:29:57
Sorry I wanted to say "I think it has never been implemented in Java2D"
Original issue reported on code.google.com by agrignard
on 2014-03-18 08:32:25
I've change the method to avoid the exception but it just focus on the agent once but
do not follow it...
commit 8924
Original issue reported on code.google.com by agrignard
on 2014-03-18 09:01:40
As far as I remember, "follow" has never worked in Java2D, and I don't remember seeing
it work in OpenGL (or is it the "first person" view ?).
Original issue reported on code.google.com by alexis.drogoul
on 2014-03-18 09:10:42
I am not sure to have implemented also..
the first(person cam is working by using camera_pos in the display but not using follow
item.
the problem to make work follow it means that it has to be called every timestep (it's
just a kind of focus on but that is called every iteration)
Original issue reported on code.google.com by agrignard
on 2014-03-18 09:26:41
If it is not working in Java2D/openGl, the best solution is maybe, for GAMA 1.6.1 to
remove the option for Opengl display and to implement it for GAMA 1.7 (as it can be
a very interesting feature).
Original issue reported on code.google.com by patrick.taillandier
on 2014-03-18 09:42:50
Ok so I remove it from the menu. Everything is here in opengl to set the camera position
on top of the agent I just don't know how to do call this method at each timestep...
Original issue reported on code.google.com by agrignard
on 2014-03-18 10:37:11
(No text was entered with this change)
Original issue reported on code.google.com by patrick.taillandier
on 2014-03-18 10:37:55
remove in revision 8926
I change it form defect to enhancement
Original issue reported on code.google.com by agrignard
on 2014-03-18 10:46:24
(No text was entered with this change)
Original issue reported on code.google.com by gama.platform
on 2014-04-06 09:50:04
See Issue 1226: the camera position can now be updated at every iteration of the display
in OpenGL, which makes it possible to implement follow without too many difficulties…
Please note, however, that the classes making up the display framework, i.e. IDisplayOutput,
IDisplaySurface and IGraphics have changed a lot (at least their implementations: for
instance, they now share a common object DisplayOutputData, which contains all the
parameters they have in common, etc. The agent followed, if it can be specified in
the model *and* changed by the user in the UI, has to be added to that class).
Original issue reported on code.google.com by alexis.drogoul
on 2015-05-24 17:09:40
(No text was entered with this change)
Original issue reported on code.google.com by agrignard
on 2015-05-26 18:36:46
(No text was entered with this change)
Original issue reported on code.google.com by agrignard
on 2015-05-26 18:47:35
Two things to do here:
Any update on this one?
I realive this very old issue but I think this feature would be great: Following an agent during the simulation
Can be done in OpenGL using the camera_xxx facets on the display, but maybe worth to reopening it to provide a simpler way to do it ? Reopening this issue for the next round of development on GAMA 2.0, at least for Java2D
It is actually doable now very easily using something like :
camera default target: my_agent dynamic: true;
You can of course play with the other facets, like location
(from where does the camera look at the agent ?), or distance
...
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Please note that it has been decided not to port this functionality to Java2D. I therefore close this issue as it is implemented for OpenGL
Original issue reported on code.google.com by
patrick.taillandier
on 2014-03-16 09:09:58