The image below is an example of the workflow:
- 3D documentation of an archaeological record (in this case a grave)
- 3D modeling of all the elements (artifacts and ecofacts) of the archaeological record (in this experiment just the skeleton)
- visualization inside the GIS of the 3D components of the archaeological record, connected with a DB
Actually we are following two different ways:
- build the model inside Blender, import the model in PostgreSQL/Postgis, connect GRASS and Postgres, visualize and interrogate the model in NVIZ
- build the model inside Blender, simply export it in a dxf file (without DB), import the DXF in GRASS, connect the 3D DXF to a DB in GRASS and visualize it
Then we started GRASS, we set the connection with the database (Postgres) and this is what we get:
Inside NVIZ we were able to visualize our data (connected with the info inside the db) just as 3D points. Our hypothesis is that the script stores the geometrical/topological informations of the 3D models in a way that works for Blender, but is not recognized by GRASS. In other words we think that the script assign the same (numerical?) code to each point of the same triangular face (of course a single point can have more than one of these codes), so that Blender can read the data in Postgis and redraw the 3D model, but this is not valid for GRASS. Anyway this is just our idea and can be wrong. Maybe someone can help us to understand better the script (we are not good enough with Python). Actually we are stuck at this point of the test...
We simply exported a dxf from Blender and import it in GRASS. Our intention is to connect it with the db in a second time with an external key. We did not yet tried it, because we are still favoring the first option, which looks like more direct and promising, so we plan to spend a little bit more time playing with the python scripts written by Andrea Scianna. In the picture below is shown the result we get using directly a dxf file. The problem by now is that in this way we are not able to preserve a direct connection with a db.
If someone wants to help us in this kind of experiment we will be very happy. Do not hesitate to contact us, any kind of clue or information is welcome!
LAST UPDATED 2016-01-29