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

[Q] 3D objects #12

Open
mahmoodhussam opened this issue Apr 7, 2024 · 5 comments
Open

[Q] 3D objects #12

mahmoodhussam opened this issue Apr 7, 2024 · 5 comments
Assignees

Comments

@mahmoodhussam
Copy link

mahmoodhussam commented Apr 7, 2024

Does the GAMA client support running 3D agents?

@mahmoodhussam mahmoodhussam changed the title 3D objects [Q] 3D objects Apr 7, 2024
@agrignard
Copy link
Member

agrignard commented Apr 8, 2024

@mahmoodhussam may i ask you what do you mean more precisely by 3D agents and which Gama client do you refer to?

Speaking about the JS client with mapbox currentlty agent are place in a 3D environment having x,y and z coordinates and they are so far represented by a simple 2D shape.

However it is possible to implement a 3D visualization though mapbox using this kind of approach:
https://docs.mapbox.com/mapbox-gl-js/example/3d-extrusion-floorplan/
https://docs.mapbox.com/mapbox-gl-js/example/add-3d-model/

@mahmoodhussam maybe that something you would be interested in exploring?

@hqnghi88 what about the reactjsclient? I think the 3D is handle better?

@hqnghi88
Copy link
Member

hqnghi88 commented Apr 8, 2024

Hi,
In theory, gama 's clientS support the 3D as GAMA compose the x y z information in agents, but it depends on which client side technology you willing to use, pure Javascript has the plugin as Arnaud suggestion, Reactjs also have it ported https://www.npmjs.com/package/threebox-plugin (unfortunatle it is a bit outdate and no more maintained). I have no idea on python side.
Cheers.

@lesquoyb
Copy link
Contributor

lesquoyb commented Apr 8, 2024

Hello,
As for the python client, it really is just a general library that you can use to interact with the gama-server api inside your python program. There's no display and it will be up to you to build it, but theoretically you can do whatever you want with it.

@mahmoodhussam
Copy link
Author

Thank you

@mahmoodhussam
Copy link
Author

I have another question Can I render IFC files in the ReactJS client project
I tried to launch it in the React but I received an empty white screen in the Simulation

Screenshot 2024-04-27 at 1 56 06 PM

I used this project https://groups.google.com/g/gama-platform/c/XlBlvEH0-_E/m/K1xLWSAIAgAJ
it rendered on GAMA with the IFC plugin but I am not sure if I can render it in ReactJS
Thanks

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

No branches or pull requests

4 participants