using focus_on in GAML

11 views
Skip to first unread message

Srirama Bhamidipati

unread,
Jun 1, 2017, 9:54:06 AM6/1/17
to GAMA
Hi,

I would like to fix the extent my display to focus on an agent. I first tried camera_pos and camera related display options, but this works only for OpenGL? I am trying to do it for java2D and GAMA pop-up suggests that I should use focus_on. But I do not know where should I use focus_on?

I used focus_on in the interactive console and it works. Can I somehow use focus_on in a display definition? 

thank you
Srirama

Arnaud Grignard

unread,
Jun 1, 2017, 1:56:20 PM6/1/17
to gama-platform
Mmm I don't think you can do that 

Just to be curious? why not doing it in Opengl? 

--
You received this message because you are subscribed to the Google Groups "GAMA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gama-platform+unsubscribe@googlegroups.com.
To post to this group, send email to gama-p...@googlegroups.com.
Visit this group at https://groups.google.com/group/gama-platform.
For more options, visit https://groups.google.com/d/optout.

Srirama Bhamidipati

unread,
Jun 1, 2017, 4:31:17 PM6/1/17
to GAMA
Hi Arnaud,

Opengl camera definition has just two many parameters to define. (position, up vector, look, etc etc) while focus on is just simple and almost does the equivalent
Secondly, I have a heavy simulation and opengl makes it more heavier
thirdly, I am just interested in top view of a few small regions of the whole world.

But my main question is that focus_on is a gaml operator that works in interactive console but not in GAML file. I wonder why or its use is just not documented yet?

Srirama
Reply all
Reply to author
Forward
0 new messages