Closed agrignard closed 4 years ago
@LeticiaIG @gamalielpalomo any update on this part?
I have updated the model with terrain and 3D buildings sent by @LeticiaIG . Now working on integrating to simulation, but I am having problem as OBJ and STL files are not georeferenced.
@agrignard We are having trouble trying to include both terrain and buildings. Firstly, we used .obj files (which manually adjusted the scale and geolocation, based on where the previous 2d shapefile was placed). Since this is not ideal, and we would like to have access to each building to give them different characteristics afterward, we tried with 3d shapefile (models/gis/fivecorners/27M_buildings), but it raises an error when executing: Unsupported shape type. We are following this: https://github.com/gama-platform/gama/wiki/Data-Importation-3D-shapefile-Loading
Why can't you use a classic GIS map (I mean a buildings.shp) of the building and then add a Depth attribute? Like in this model for instance https://gama-platform.github.io/wiki/IncrementalModel_step5 ?
Simple depth attribute works well in the current state of the model, the problem comes when we try to incorporate 3D terrain DEM. I used for terrain an obj (converted from stl 3D file sent by Leti). As it is composed by many triangles, the texture does not adjust well.
OK I see the Building 3D is not only the depth of the building but also the position of it (However this could still be embedded in a GIS with attribute altitude
for the base of the building and depth
for the height of the building)
For the DEM I would suggest to use an .asc file (this is an ESRI standard for Digital Elevation Model https://library.carleton.ca/help/dem-formats), for that you should have a look the GAMA model library in this model.
Data Importation/models/Grid Dem.gaml
I don't undersatnd when you say "As it is composed by many triangles, the texture does not adjust well." why the fact that there is many triangles would impact on the adjustment? I don't know how is the stl generated but it might not be well georeferenced? @LeticiaIG can you tell us a bit more how this stl is generated?
BTW this discussion should be in this issue #16 as this one is about the texturing of the building
@LeticiaIG and @gamalielpalomo is this issue closed?
@LeticiaIG has the idea to add some facade
You can take some inspiration from the GAMA model library in Visualization and User Interaction/Visualization/3D Visualization/models/Procedural City.gaml
to have something like this