How to get Oculus Rift DK2 working in Unity 5.4 on windows 10 - unity3d

I upgraded to Windows 10, downloaded the newest drivers for the graphics card, and installed the latest SDK I also installed the oculus utilities for unity 5 and the ovr plugin. I tried following this tutorial but I cant seem to find the OculusConfigTool referenced. Also I've been trying to use the VRSamples from unity but I keep getting [VRDevice] initialization of device oculus not found.
I had this working before i upgraded to windows 10, so what am I doing wrong?

Ok finally got this to work ... in the instructions I followed it said to place the ovr plugin files in a folder called "unity". I found thisthis thread http://forum.unity3d.com/threads/unity-5-3-vrdevice-initialization-of-device-oculus-failed.372663/ and placed it in a folder called "oculus" and replaced the file in there, now it works

Related

Weaver failure: unable to locate assemblies (no matching project) for: Temp/Assembly-CSharp.dll

I opened Unity for the first time in a while today and I'm unable to create new scripts of any type. Both the normal and right click menus are missing the option:
Adding a script through the inspector creates a file, but yields these errors:
Although the file is created, it does not appear in either the project browser, or inspector panels.
Googling various parts of these errors actually gets a lot of posts, but almost all of them come down to "restart Unity", which isn't doing anything.
All of this is reproducible for me on a fresh project file. I've tried restarting Unity and my computer, as well as reinstalling Unity from scratch. I've also double checked that I have .NET installed properly (reinstalled, and dotnet command works in terminal).
Unity: 5.4.5p5
Mac OS 10.13.3
This is a bug present in versions between Unity 5.1 and 5.4. It has been fixed in Unity 5.5.0 and an update to 5.5.0 and above should fix it.
If updating to Unity 5.5.0 which has the fix did not fix it then it's better to upgrade Unity to the latest version which is currently Unity 2017.4 at the time of posting this answer. This version should be able to get ride of that error.

Can't Build a PC StandAlone Unity3D

I'm new to Unity 3D Game Development and I've learned the very first game Roll a Ball by watching tutorials but in the end stuck in a problem that I am not able to Build my Project from the Build Settings PC Standalone Module, Error occurs:
No PC/MAC standalone Module loaded.
I don't understand where would be the problem, I have also attached the screenshot of my question.
As Droppy mentioned, it looks as though you are missing the Windows Build Support module.
However, you don't have to reinstall Unity, you can just run the Download Assistant and just select the Windows Build Module from there. That will install the module, without reinstalling Unity.
Close and reopen Unity, and it should work fine.
As described in the documentation, you can decide what modules to install when you install Unity. It looks like you didn't install the Windows Build Support module.
To rectify, I would recommend re-installing Unity (it's probably been patched since, anyway).

Unity 5.2 sudden VR crash

All of a sudden, I am getting a full blown crash whenever I run/play my project with the native VR support in Unity 5.2.0f3 and Oculus version 1.7 (SDK 0.6.0.1) which has never happened before, until today out of the blue. No change made to anything to do with VR or Oculus that might have triggered it, hence my confusion...
This is what I get on the log:
Unity Editor [version: Unity 5.2.0f3_e7947df39b5c]
OVRPlugin.dll caused an Access Violation (0xc0000005)
in module OVRPlugin.dll at 0033:eb9a3b9a.
My PC and GC:
- Windows 7
- Nvidia GTX980 Ti
Thanks in advance for your help,
I believe 5.2 requires SDK 0.7.0 for native VR support. Have you tried upgrading?
Got same error with Unity 5.3.3f1. Fixed it by changing Oculus Config Util settings as following:
Open Oculus Config Util App on windows.
Go to Tools->Service->Configure options.
Set the Debug HMD type to DK2.
might be help for new users.

Unity3D error Fix [duplicate]

I want to use c++ dll on unity android application. To use native dll on a android device, I learn that I should use Unity 5. I download unity5 from here. My application requires vuforia. So I download vuforia package from here.
Unity 5 is 64 bit.
On unity editor, I delete MainCamera and add ARCamera. There is an error message on unity console. The message is below :
Failed to load 'Assets/Plugins/QCARWrapper.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was IMAGE_FILE_MACHINE_I386.
Vuforia.WebCamAbstractBehaviour:CheckNativePluginSupport()
There is a solution for this problem on vuforia forum. But I don't find unity editor(32 bit)
To use Vuforia with Unity 64 bit, just move the QCARWrapper DLLs from /Plugins to /Plugins/x86. These are the DLLs:
QCARWrapper.exp
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
This should solve the problem!
Go to https://unity3d.com/get-unity/update Under there, you will see ADDITIONAL DOWNLOADS Under that you will see FOR WINDOWS. Click it and choose Unity Editor (32-bit).
EDIT:
I see lots of dowvotes. This was the ONLY solution when this question was asked. Unity 5 64bit just got released when this question WAS asked and this was the ONLY solution back then. This answer was changed to the current answer that was provided 5 months later when Vuforia released 64bit version of their plugin.
Vuforia 5.0 supports the 32bit version of the Unity Editor on Windows, and the 64bit version on Mac.
So, There are two possible solutions:
you just need to install and use the Unity 5 32bit Editor, on Windows.
OR
Create a new folder "x86" inside
Assets>>Plugins
inside your unity project structure
Then move the following files from "Plugins" to newely created "x86" folder.
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
QCARWrapper.exp
After that check log message, If you see the log like:
Setting platform to 'Editor' for plugin: Assets/Plugins/x86/VuforiaWrapper.dll
UnityEngine.Debug:Log(Object)
Vuforia.EditorClasses.ExtensionImport:UpdatePluginSettings() (at Assets/Vuforia/Editor/Scripts/ExtensionImport.cs:43)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Then , Congrats !! You are ready to Go!
I had the same problem /Failed to load 'Assets/Plugins/QCARWrapper.dll'/ with vuforia plugin and latest version of Unity ( currently 5.1.2f 64bits ) and also couldn't get my laptop camera to work.
Everything is fixed with the 32 bit release of Unity, even if my os is 64 bits (Windows 7).
If you are using Unity 5.1, make sure to set the right Graphics API settings in the Player Settings for Android and iOS:
disable the "Automatic Graphics API" checkbox
in the Graphics APIs list, make sure that only OpenGL ES 2.0 is included:
Android: remove OpenGL ES 3.0
iOS: remove OpenGL ES 3.0 and METAL
Important :
1. In your Unity project:
Select the QCARWrapper.bundle in the Unity Project view (located under Assets > Plugins ), so that its settings are shown in the Unity Inspector
Change the settings of QCARWrapper.bundle in the Unity inspector from "Any Platform" to "Standalone + Editor".
Rebuild
​OR:
In the Xcode project generated by Unity:
Go to Build Phases > Copy Bundle Resources
Remove the QCARWrapper.bundle file from the list
Rebuild
My unity3d version is 5 and 64bit
,Os is Windows7 64 bit.
my Problems solved .
Edit :
Unity editor couldn't show laptop camera ,But Rebuild Project , camera work .
for example rebuild Android platform , and install .apk on device => application Ok .
Go to Name_Vuforia_Unity_Project\Assets\Plugins and you will find QCARWrapper.dll.
Delete it and try again (could be necessary to restart unity).
Unity 64 bit

Unity3d - Failed to load 'Assets/Plugins/QCARWrapper.dll'

I want to use c++ dll on unity android application. To use native dll on a android device, I learn that I should use Unity 5. I download unity5 from here. My application requires vuforia. So I download vuforia package from here.
Unity 5 is 64 bit.
On unity editor, I delete MainCamera and add ARCamera. There is an error message on unity console. The message is below :
Failed to load 'Assets/Plugins/QCARWrapper.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was IMAGE_FILE_MACHINE_I386.
Vuforia.WebCamAbstractBehaviour:CheckNativePluginSupport()
There is a solution for this problem on vuforia forum. But I don't find unity editor(32 bit)
To use Vuforia with Unity 64 bit, just move the QCARWrapper DLLs from /Plugins to /Plugins/x86. These are the DLLs:
QCARWrapper.exp
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
This should solve the problem!
Go to https://unity3d.com/get-unity/update Under there, you will see ADDITIONAL DOWNLOADS Under that you will see FOR WINDOWS. Click it and choose Unity Editor (32-bit).
EDIT:
I see lots of dowvotes. This was the ONLY solution when this question was asked. Unity 5 64bit just got released when this question WAS asked and this was the ONLY solution back then. This answer was changed to the current answer that was provided 5 months later when Vuforia released 64bit version of their plugin.
Vuforia 5.0 supports the 32bit version of the Unity Editor on Windows, and the 64bit version on Mac.
So, There are two possible solutions:
you just need to install and use the Unity 5 32bit Editor, on Windows.
OR
Create a new folder "x86" inside
Assets>>Plugins
inside your unity project structure
Then move the following files from "Plugins" to newely created "x86" folder.
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
QCARWrapper.exp
After that check log message, If you see the log like:
Setting platform to 'Editor' for plugin: Assets/Plugins/x86/VuforiaWrapper.dll
UnityEngine.Debug:Log(Object)
Vuforia.EditorClasses.ExtensionImport:UpdatePluginSettings() (at Assets/Vuforia/Editor/Scripts/ExtensionImport.cs:43)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Then , Congrats !! You are ready to Go!
I had the same problem /Failed to load 'Assets/Plugins/QCARWrapper.dll'/ with vuforia plugin and latest version of Unity ( currently 5.1.2f 64bits ) and also couldn't get my laptop camera to work.
Everything is fixed with the 32 bit release of Unity, even if my os is 64 bits (Windows 7).
If you are using Unity 5.1, make sure to set the right Graphics API settings in the Player Settings for Android and iOS:
disable the "Automatic Graphics API" checkbox
in the Graphics APIs list, make sure that only OpenGL ES 2.0 is included:
Android: remove OpenGL ES 3.0
iOS: remove OpenGL ES 3.0 and METAL
Important :
1. In your Unity project:
Select the QCARWrapper.bundle in the Unity Project view (located under Assets > Plugins ), so that its settings are shown in the Unity Inspector
Change the settings of QCARWrapper.bundle in the Unity inspector from "Any Platform" to "Standalone + Editor".
Rebuild
​OR:
In the Xcode project generated by Unity:
Go to Build Phases > Copy Bundle Resources
Remove the QCARWrapper.bundle file from the list
Rebuild
My unity3d version is 5 and 64bit
,Os is Windows7 64 bit.
my Problems solved .
Edit :
Unity editor couldn't show laptop camera ,But Rebuild Project , camera work .
for example rebuild Android platform , and install .apk on device => application Ok .
Go to Name_Vuforia_Unity_Project\Assets\Plugins and you will find QCARWrapper.dll.
Delete it and try again (could be necessary to restart unity).
Unity 64 bit