Archived - How to get JavaScript up and running after the RealSense R3 release.

By Richard Blacker, Published: 05/20/2015, Last Updated: 05/20/2015

The Intel® RealSense™ SDK has been discontinued. No ongoing support or updates will be available.

What does this blog post cover? 
It covers how to get JavaScript support up and running with Intel RealSense RealSense R3 SDK and runtime.

Who is this for? 
This blog post is for people who have downloaded and installed the latest  F200 DCM, RealSense R3 SDK releases of RealSense and you wish to use JavaScript.  If do not wish to use JavaScript or you have not upgraded to R3, then this blog post is not relevant to you.

A very brief history
Intel needed to decouple JavaScript direct support out of the latest R3 update. This is only temporary and I assure you, Intel is fully committed to bringing it back. For more information, please read Eric Mantion’s blog post.

What do I need to download?
You will need to download the external JavaScript Zip file

What’s in the JavaScript zip file?
Inside you will find three folders and a couple of license type readme files.  

  • Doc.v4 ontains the standard documentation that gets distributed with the SDK. This documentation corresponds to the R2 release

  • Framework.v4 ontains sample applications and the supporting JavaScript files.

  • Hotfix ontains a hotfix. *PLEASE NOTE*This is an optional hotfix that is only included in this download as a convenience to special case situations.  The hotfix has no impact on the JavaScript source code. In most cases, users will not have any need to run this. 

Now that the zip file has been extracted, what do I do?
If you are upgrading from a previous version of the RealSense SDK, it’s highly probable you had to uninstall RealSense R2 and chances are the JavaScript files you had been referencing into your HTML files have been removed. This of course is if you didn’t manually move them in the first place.  The easiest method to getting around this would be to store these new JavaScript files in a convenient location on your hard drive, open up your existing HTML files, and re-reference in these files from their new location on your hard drive.

Next we are going to take a look at the sample HTML applications that have been provided. Navigate into the Framework.v4 folder and double click on one of the samples.  Chances are you will see a screen that looks like the following.   

Take note of the message above the start button.  It’s instructing you to download an SDK runtime component that is specific to (in this case) the blob viewer.  You will need to download the executable run the installer.  When the installation is complete, refresh the page.  The message and URL should now be gone and you can run the sample application.  

This URL will most likely appear on each of the four JavaScript samples.  *PLEASE NOTE* that when you attempt to download the runtime setup executable, it will be downloading the same file and Windows will want to increment the filename by using the familiar (x) naming convention.  Just allow this name to be created and download the file again.  There is magic going on and you have to have faith that it works.  

Possible issues
When I was trying this yesterday, I had R3 of everything installed.  While running the R2 runtime installation, I was prompted with the dialog box that allows you to either re-install, modify or remove the existing app.  There didn’t seem to be a way around this, so I canceled the install.  I then uninstalled R3 and found any and all traces of it left behind on my computer. Cleaned out registry settings that were left behind.  At this point I was fairly confident I had a clean system.  I then re-ran the R2 install, then I re-installed R2.  Once I did this, my JavaScript samples started working.


Good luck!

Product and Performance Information


Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804