Select to view content in your preferred language

3D Scene - Drape image over 3D layers?

6942
14
06-23-2021 03:33 AM
Labels (1)
Daniel_Hardwick
Regular Contributor

Hi,

I am creating a 3D scene and wondered if it is possible to drape an image over a 3D layer, such as Mastermap. 

I am relatively new to 3D, but I have a scene setup which is using Mastermap data (joined with Mastermap heights csv data), so the Town Centre has 3D buildings. I can drape over a basemap or aerial imagery onto the elevation surfaces, but obviously the buildings extrude above this. Is there a way that I can make the aerial imagery drape over the 3D mastermap polygons? 

I have achieved something similar using a Digital Surface Model, as I can use this as an elevation surface, and then the aerial imagery drapes over this. It doesn't drape over the DSM that well though, which was expected, and I feel draping over the Mastermap polygons would look much better with the heights being generalised (obviously far from perfect though). 

I also wanted to be able to do this to make a new building in the Town Centre look as realistic as possible. I was hoping I could extract out just that particular building and then add in some images for each angle. Not sure if it is possible though or if there is any workarounds? 

0 Kudos
14 Replies
JayantaPoddar
MVP Esteemed Contributor

I hope the coordinate system of all the involved datasets (Raster/ Vector) are same.

How do the Min/Max value range of both the DSM and revised DSM compare to each other? Could you click on other parts of the revised DSM (where there is no building), to check if it gives same value(s) as the original DSM?

While executing Polygon to Raster, define the DSM as the Snap Raster (Tool Environments > Raster Analysis > Snap Raster).



Think Location
0 Kudos
Daniel_Hardwick
Regular Contributor

Thanks Jayanta. 

The Coordinate system is all the same (British National Grid). 

I have brought the original DSM and revised DSM into a new 2D Project, and the revised one only seems to cover the area where the stadium is. Even though it was created using the stadium raster + DSM tile. So I don't know why that is. I have checked the range of values of the two on the stadium itself (since that's the only area which is covered in both), and they differ considerably. The pop for the DSM shows values around 22-27, but the revised DSM shows stretch pixel value of around 42-46. Could it be that the revised DSM is adding up the DSM height, and also the rasterized polygon? 

I don't seem to have the snap raster tool, so I don't think I can do that. 

0 Kudos
JayantaPoddar
MVP Esteemed Contributor

What does the expression look in Raster Calculator?

Try a similar expression to this

Con(IsNull("StadiumRas"), "DSM", ("DSM"+"StadiumRas"))

 



Think Location
0 Kudos
Daniel_Hardwick
Regular Contributor

The expression was very simple: 

"Riverside_raster" + "[ELEVATION_SURFACE]\CopyRaster_OutRasterdataset_nz5020_DSM_50CM"

Using your expression it looks like:

Con(IsNull("Riverside_raster"), "[ELEVATION_SURFACE]\CopyRaster_OutRasterdataset_nz5020_DSM_50CM", ("[ELEVATION_SURFACE]\CopyRaster_OutRasterdataset_nz5020_DSM_50CM"+"Riverside_raster"))

This ran fine, but the output I think is still the same. The pixel value is still showing around 46 and the extent once again seems to be only the stadium raster and not the coverage of the whole DSM. 

Looking at this newly created DSM, it does look like the rasters have been combined and the height doubled. Screenshot shows left image of newly created combined DSM, and just the original DSM on right (same scale used). 

Is my best option to create a DTM and then try doing this? With the buildings not being included in the DTM then the added stadium raster might work?

0 Kudos
Daniel_Hardwick
Regular Contributor

Just to add to this. 

I have now downloaded a DTM (asc format), converted into raster and used that as an elevation surface.

I then also added in the Stadium raster which I create a few posts ago, as another elevation surface, and that works well, image attached. 

Out of interest I wanted to try the raster calculator again, as it ran successfully before but didn't give the expected result. I ran the Raster Calculator tool to combine the DTM and the stadium raster and used the output as the elevation surface. The newly created raster still doesn't seem to include the rest of the DTM surface, it only covers the stadium, so not sure if this is any difference from just using the stadium raster as a surface, as the output doesn't seem to include anything from the DTM. 

With the raster calculator not working as expected, it looks like I could just use the built in ground elevation surface and just add in any rasterized polygons. I don't need to use my own DTM. Obviously if the raster calculator worked as expected then having the DTM and the mastermap rasters in a single file would have been nice, but it should still work adding them in as two separate surfaces.

This is probably as close as I am going to get. If I wanted to create a fuller scene with more buildings it looks like I will have to rasterize the building polygons that I am interested in to allow me to drape aerial imagery over them. 

0 Kudos