Monday, 19 January 2015

Google maps to StreetView Grabber





Extracting the 360 panoramic image/map from Google street view 

More often than Not, I find myself working on 3d photomontages, or Verified views with set views/images chosen and taken by different Photographers.
Needless to say that, in all accounts, I've always wished I had a panoramic image/photo of the locations extracted, to use as reflections for my 3d environment.

For tips and scripts for Verified views, please visit this new post HERE 

Also, check my New Book: 3D Photorealistic Rendering: Interiors & Exteriors with V-Ray and 3ds Max

If you ever find yourself in a similar situation and can not retake the photo/s with specialised high definition cameras such as the ones from Kolor.com; then Google maps are your best quick fix.


In conjunction with the StreetView Grabber software, you can find the location (using Google street view) where the original background image was taken from, and automatically grab/extract a 360 view of the site.

To download the StreetView Grabber software, for Free, simply go to the following website:


Next, scroll down the page and click on the following link to download the software.





Once downloaded, unzip (extract) the software, and double click on its Icon to open the dialog.




How to use Google maps street view:

To start, go to Google maps and type in the address/location where the photography was taken from.
Once the address/ is found( i.e. a red pin floating above the location map) in the Google maps, simply zoom in with the mouse wheel as close as you can, followed by clicking on the Google earth map thumbnail, on the bottom left corner. 




Once the earth map appears ( photo of the location on a plan view), simply grab the yellow silhouette man from the bottom right hand corner of the Google earth map, and drop it on the desired location, to get the Google street view.


It’s worth noting that, you can only drop the yellow silhouette man on areas where there’s a black dot blinking.
These markers indicate spots where the user can take a street view from. 




Once the street view is up on the screen; you can pick from any of the available views displayed in the thumbnails below, if desired. 
Otherwise simply click on the Hide imagery, to minimize the thumbnails on the screen.

As you move the mouse on the Google street view, note the transparent planes that follow it.
They indicate the perspective of the structure/object on the screen. 




While the StreetView Grabber dialog is still open, select the URL of the Google street view and press Ctrl+C to copy it.

Select the StreetView Grabber dialog and click on the Add Pano button.

The Use clipboard dialog should automatically appear. Click Yes to add the copied URL, and close the dialog. 




Before grabbing the 360 street view, you can choose the location to save the final Output image and the file format (i.e. Output JPEG or Output PNG.

In addition, always set the Quality to maximum, by simply moving the slider to the far right.
Also,enable the Weld Tiles and the Crop Panorama option.  

Once satisfied with the settings/parameters, simply click on the Grab button, to capture the panoramic street view. 




Once the grabbing process is finished, a dialog should notify you that the process is Done; click OK to close it. 

Also, open the grabbed panoramic image in Photoshop. 




The chances are that you’ll be required to flip the grabbed panoramic view horizontally before using it as a reflection in 3ds max.

To flip the image horizontally, simply click on the Image main toolbar and choose the Rotate Canvas option, followed by clicking on the Flip Canvas Horizontally.

You can also save the new flipped image under a different name (i.e. …flipped). 




It’s worth noting that, if the Photomontage/verified view happens to be  a Night shot; depending on your personal Photoshop skills, you might be able to turn the panoramic day map into a night one (with a considerable amount of effort, one may add).

Alternatively, you can try some of the Kolor cameras, on location. 

For more information about these High definition 360 cameras, please visit:  







To apply the newly saved panoramic bitmap in 3ds max, simply do the following:


In mental ray: Please refer to this article posted earlier:



In Vray:

Start by opening the Render Setup dialog (F10). 

Under V-Ray tab, expand the V-Ray: Environment rollout parameters.

To plug the previously saved panoramic bitmap from Google street view, simply click on the Reflection/refraction environment override toggle.

The Material/Map browser dialog should pop up. Click on the Bitmap procedural map to locate and load the previously saved Google street view bitmap.




Once the bitmap is loaded; you may be required to edit some of its bitmap parameters in order to make it fit correctly in the viewport.

To do so, open the Material Editor dialog (M) and drag the bitmap from the Reflection/refraction environment override toggle, onto any available material slot.

The instance copy (Map) slot dialog should appear. Choose the “Instance” method and OK to close it.
As instances, whatever changes take place in the Bitmap parameters, will also affect the Reflection/refraction environment override toggle. 




In order to control the position of the reflection map in the 3d environment; the reflection bitmap needs to be visible in the viewport, through the Environment Map toggle.

So the next step will be to open the Environment and effects dialog (8), followed by dragging and dropping the reflection bitmap from the Material Editor, onto the Environment Map toggle. 
Choose the instance option again. 



Next, we are going to select the camera viewport and open the Viewport Background parameters (Alt+B).

In the Viewport Background Parameters, first enable the Match Rendering Output function, followed by turning on the Display Background option, and the Use Environment Background.
Click OK to close the dialog and see the reflection bitmap in the Viewport. 




Back in the Material Editor, under the, Coordinates parameters, enable the Environ function and set the Mapping type to Spherical Environment.

You may also choose to offset its U and V coordinates, if desired. 





In addition, in order to increase the amount of reflectivity seen on the glass/reflective surfaces, simply scroll down to the Output rollout coordinates and increase its RGB Level values.





Once Satisfied with the reflection settings and its coordinates, go back to the Environment and Effects dialog clear it from the Environment Map toggle. 

To do so, simply right click on the toggle and choose to Clear, from the pop up menu list.  




It’s worth noting that, clearing the Environment Map toggle will only affect the Environment display image, Not the reflections from the Reflection/Refraction environment override toggle.

At this stage you can now load back in your original background image being used for the verified view/s or Photomontage/s, in the Environment Map toggle. 




Note: In Vray, when using photographed image/s from verified views or Photomontages as back plate renders, it’s important that the background photography renders with its original colour and gamma; especially when matching lights and colours directly in 3ds max.

To ensure consistency, one might need to change the image Gamma settings to, Override 1.0. 

     



Furthermore, you’ll be required to set your V-Ray: Color mapping NOT to Affect background. 



Finally, once satisfied with the reflections, the environment map colours, the lighting and with the cameras; you may choose to save the render presets for each camera (i.e. cam 1, cam2, etc).

To save render presets, simply click on the Save Preset option. 

When the Select Preset Categories dialog pops up, I often choose all of them, because it saves the render output size, the render elements, the reflections, the environment, etc.

However, some users prefer only few specific categories. 









To save different light settings and positions, choose the Manage Scene states in addition to render presets. 




Unlike render presets, scene states are NOT saved outside 3ds Max; instead, they are only stored in the 3d scene they have originated from.

So if you choose to merge your 3d scene (with presaved scene states) into a new one Max file; the chances are, you will automatically lose all your pre-saved scene states. 

The Save button allows users to save their parts/categories.

Note: After saving a scene state, ensure that NO new objects or lights are added into the scene; otherwise you might be required to resave all the scene states again.

The Restore button allows users to restore their presaved scene state/s.

Note: You need to select your saved scene state first, before restoring it.

When selecting the Parts/categories of the scene to save, make sure you don’t save the environment settings again (override), if already saved from the render preset. 
Only save light related parts/categories and layers.

Some users may prefer to make things less complicated (No render presets), by opting to use the Scene states only, when saving the light properties, layers and the environment settings.

However, they should take into consideration that, when using numerous cameras and environments; different reflections will also be required. 
And currently, the Environment Part/category from the Scene States doesn't have the option save the V-Ray Environment settings.   


I hope you have found this article somehow interesting!


Ta

Please also check:    

No comments:

Post a Comment