Skip to content

A small demo to showcase the use of stencil masks in Unity to render only specific parts of a map provided by the WRLD Unity SDK.

Notifications You must be signed in to change notification settings

isenmann/WrldUnityMaskingDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WRLD Unity SDK Masking Demo

This is a small demo of using the WRLD Unity SDK to place the map on any surface you want. The SDK just provides rendering the whole map according to the camera's view. So you can't limit that to a specific size.

This demo renders the map only inside the cube which acts like a stencil mask. The demo is heavily based on the excellent blog post from the WRLD guys which used this method for AR. Read part 1 and part 2 to understand what is done exactly.

If you move the map, it will automatically downloads the new map tiles and displays it. For using this demo you will need a valid API SDK key from WRLD, to get one just register at their website.

alt-text

This demo includes the official WRLD Unity SDK from the asset store, have a look there for a newer version. The SDK was modified according to the changes mentioned in their blog posts.

About

A small demo to showcase the use of stencil masks in Unity to render only specific parts of a map provided by the WRLD Unity SDK.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published