Lance Larsen - .NET Architect Madison Wisconsin

Archive for October, 2017

imageIMG_6052This past weekend we had an awesome time at the Harry Potter Festival in Jefferson, Wisconsin!  Great event!

My company HOLOSOFT offered a free Mixed Reality / Virtual Reality experience for children of all ages :)

We setup and ran…
- 1 Microsoft Mixed Reality Headset (with just arrived controllers!)
- 4 Hololens
- 3 Oculus Rifts
- 1 HTC Vive

The event had in excess of 40,000 attendees!  Wow…  

We ran all of our systems for two days straight – and almost always had lines waiting for each station.

Was all worth it seeing the amazement and joy on so many faces that had never tried anything like these devices – especially love the Hololens “WOW” response from so many.

Best compliment of all – from more than one – was “…that was the most magical experience we’ve had… thank you!”

Wait until you see what we have next year!

22688394_10212325482231134_765790824387149877_nIMG_6039IMG_6048IMG_6091


image

MadisonVR_2017.10.25Very privileged to present again to an awesome VR community: Madison VR !

Went through current and future XR/AR/VR devices – with a focus on the Hololens and the brand new Microsoft Mixed Reality headsets! 

With my latest talk “Mixed Reality: Building the Age of Experiences with Lance Larsen (Microsoft MVP)” (now on LinkedIn SlideShare! – sans videos)

So many exciting releases of both hardware and software. :)

Looking to get the latest Microsoft Mixed Reality devices? check these out…


Needed to add MP4 video support to an ASP.NET website project. 

Found that adding the following made that work great when I deployed to Azure.

<!-- ====================================================================== -->
<!-- Required to have Videos show up when deployed to Azure  -->
<!-- ====================================================================== -->
<staticContent>
  <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
</staticContent>

Alas, when I refreshed the cache on my browser – all of my CSS and Javascript files would not load, with the dreaded 500 errors.

So apparently, as soon as you add any <staticContent> settings – you need to add all possible settings.  Counter intuitive, so wanted to share the a comprehensive non-trivial fix that worked for me.

If there’s a better way to do this – love to hear it…  Also may be a better way to do this in ASP.NET Core – but for now this is a pre-Core project.

Here’s the solution, hope it helps someone else.  Good coding :)

<!-- ====================================================================== -->
<!-- Required to have Videos show up when deployed to Azure  -->
<!-- ====================================================================== -->
<staticContent>
  <!-- Set expire headers to 30 days for static content-->
  <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="30.00:00:00"/>
  <!-- use utf-8 encoding for anything served text/plain or text/html -->
  <remove fileExtension=".css" />
  <mimeMap fileExtension=".css" mimeType="text/css; charset=UTF-8" />
  <remove fileExtension=".js" />
  <mimeMap fileExtension=".js" mimeType="text/javascript; charset=UTF-8" />
  <remove fileExtension=".json" />
  <mimeMap fileExtension=".json" mimeType="application/json; charset=UTF-8" />
  <remove fileExtension=".rss" />
  <mimeMap fileExtension=".rss" mimeType="application/rss+xml; charset=UTF-8" />
  <remove fileExtension=".html" />
  <mimeMap fileExtension=".html" mimeType="text/html; charset=UTF-8" />
  <remove fileExtension=".xml" />
  <mimeMap fileExtension=".xml" mimeType="application/xml; charset=UTF-8" />
  <!-- HTML5 Audio/Video mime types-->
  <remove fileExtension=".mp3" />
  <mimeMap fileExtension=".mp3" mimeType="audio/mpeg" />
  <remove fileExtension=".mp4" />
  <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
  <remove fileExtension=".ogg" />
  <mimeMap fileExtension=".ogg" mimeType="audio/ogg" />
  <remove fileExtension=".ogv" />
  <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
  <remove fileExtension=".webm" />
  <mimeMap fileExtension=".webm" mimeType="video/webm" />
  <!-- Proper svg serving. Required for svg webfonts on iPad -->
  <remove fileExtension=".svg" />
  <mimeMap fileExtension=".svg" mimeType="images/svg+xml" />
  <remove fileExtension=".svgz" />
  <mimeMap fileExtension=".svgz" mimeType="images/svg+xml" />
  <!-- HTML4 Web font mime types -->
  <!-- Remove default IIS mime type for .eot which is application/octet-stream -->
  <remove fileExtension=".eot" />
  <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
  <remove fileExtension=".otf" />
  <mimeMap fileExtension=".otf" mimeType="font/otf" />
  <remove fileExtension=".woff" />
  <mimeMap fileExtension=".woff" mimeType="font/x-woff" />
  <remove fileExtension=".crx" />
  <mimeMap fileExtension=".crx" mimeType="application/x-chrome-extension" />
  <remove fileExtension=".xpi" />
  <mimeMap fileExtension=".xpi" mimeType="application/x-xpinstall" />
  <remove fileExtension=".safariextz" />
  <mimeMap fileExtension=".safariextz" mimeType="application/octet-stream" />
  <!-- Flash Video mime types-->
  <remove fileExtension=".flv" />
  <mimeMap fileExtension=".flv" mimeType="video/x-flv" />
  <remove fileExtension=".f4v" />
  <mimeMap fileExtension=".f4v" mimeType="video/mp4" />
</staticContent>

imageWe live in AWESOME times… Hololens + new Mixed Reality Headsets, oh my!

To develop for each of those, you need to keep up with the latest and greatest Unity Betas – download them here…

Want to save my fellow Holonauts some time – if you come across the curious problem where when you go to build and run – you’ll now see that the “Unity C# Projects” checkbox is disabled?!?  That’s not right…

The solution to this is to…

1) Open “Player Settings”
2) Expand “Other Settings”
3) Find “Scripting Backend”
4) You’ll see that the default is now “IL2CPP”, change that to “.NET”

Now your “Unity C# Projects” is re-enabled!

Enjoy and go build some awesome Mixed Reality Apps!

image