Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gama & Unity #14

Open
agrignard opened this issue Aug 21, 2018 · 4 comments
Open

Gama & Unity #14

agrignard opened this issue Aug 21, 2018 · 4 comments

Comments

@agrignard
Copy link
Member

It would be great (and would open many new opportunities) to display a Gama Simulation in a high level 3D renderer like Unity. I am not saying that the current java2D or Opengl are useless they are a must have but they show some known limit in term of realistic and performant rendering.

By having a look in the experimental repo of GAMA I see that @ysklab seems to work on a Unity project link to GAMA:
ysklab/Scene-GamaUnity

Maybe this can answer to some of the question raised in this issue?

I copy/paste Youcef answer in this issue:

Hi,
I have started working on this idea since a couple of weeks. The right repository is:
ysklab/UnitySceneWithGama, which consists of a Cube-Collector game, where a Gama agent moves a ball in a Unity scene in an attempt to collect cubes. After having the total collected cubes reached the needed number (the latter is indicated by the Gama agent at the beginning by mean of notification subscribe message), a notification message from unity to Gama agent is sent, thus, ending the game. Other functionalities are available. I will describe how the whole things work soon.

@YoucefSklab
Copy link
Member

Hi,
having worked on the Unity environment, it seems to me that it is possible to do a lot of things with Gama on a Unity scene. However, I think we need to set and fix the border between what will be done with Gama and what will be done whit Unity. I think it is possible to develop a kind of generic Unity scene, on which a Gaml model can create and manage objects as needed, without touching Unity.

So far, I have investigated several aspects and I would like to have your feedback on this subject, by mean of this discussion, to fix the points to achieve. To have a preview of what I have done, you can run the model TwoPlayersWithSceneBuilding.gaml and the scene (EmptyScene) in the repo: YoucefSklab/UnitySceneWithGama

Basically, possible actions on a scene are:

  • Create/manage objects.
  • Assign a value to a given field in a Unity object.
  • Request the value of a field of a Unity object
  • Call any method, with one parameter (or more) of a Unity object. Methods with several parameters should be written following a specific scheme.
  • Assign a value to a property of an object (Color, position, rotation,... ).
  • Manage the movements of a Unity object;

Best,

@benoitgaudou
Copy link
Contributor

benoitgaudou commented Aug 24, 2018 via email

@YoucefSklab
Copy link
Member

Hi Benoit,
Strangely, after a few attempts, I got the same message. I just reinstalled Homebrew and it works fine again.

Please try with:

Hope this will fix it!

best,
Youcef

@benoitgaudou
Copy link
Contributor

benoitgaudou commented Aug 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants