How to move OVRPlayerController and OVRCameraRig together? - oculus

I am working on one Oculus project in that I am getting the following issue:
The OVRPlayerController is not moving along with OVRCameraRig. I am using the Unity version(2019.4.15f1) and OVRPlugin version (1.66.0).
I have added the CharacterCameraConstraint script to my OVRPlayerController but still I am getting the same issue.
Can anyone tell me how I can move the OVRPlayerController and OVRCameraRig together?
Thanks in advance.

You can install latest unity version 2020 and import Oculus integration V34 in Unity asset store.
Create a empty scene and create plane and place OVRPlayerController over the plane.
OVRPlayerController : Allows the player to move around in the vitual environment.It includes components and child objects that are necessary for 3D control. It includes OVRCameraRig prefab to serve as the VR camera and is attached to a character controller.

Related

Can someone explain AIR Native Extensions FREGetContextActionScriptData() and FRESetContextActionScriptData() in more detail?

I have created an AIR Native Extension wherein, I have created a reusable Loader object on the AS3 side. I then pass this Loader object to the ANE to load whatever loadable file I want to load into the Loader. This works, as expected.
I would like to create the reusable Loader on the C side of the ANE. My understanding is that the FRESetContextActionScriptData() and FREGetContextActionScriptData() functions allows me to create and store AS3 FREObject variables on the C side.
I have been trying to implement these functions on the C side and and unable to wrap my head around how to do so. The Adobe help is insufficient and does not help in any way. I have tried to search for these two words with no success. Can someone throw some light on how these functions are used?
Thanks in advance.

How to add geometries from latest version of three.js in forge-viewer?

I am trying to add customized geometry in forge-viewer, I am facing following issue:
The forge viewer I am using is 4.2.* , which uses THREE-R71. (All versions of forge-viewer uses THREE-R71).
The Customized Geometry I am trying to add in forge viewer is from THREE-R94. It throws exception:
THREE.Object3D.add: object not an instance of THREE.Object3D
I tried to upgrade the scene as : viewer.impl.scene=new THREE.Scene()
(THREE-R94)
But the renderer is still from THREE-R71, so renderer cannot render the scene.
Is there any way to add geometries and objects from latest threejs in forge-viewer?
You can't. Threejs has made breaking changes in many of its version upgrades, making them incompatible.
We have some forge articles that say otherwise, like this:
https://forge.autodesk.com/blog/how-add-newest-threejs-features-forge-viewer
It's possible to use different versions, depending heavily on which version, but almost all changes break the code compatibility.
I was unable to use different versions with the methods and objects I wanted.
If you don't want any trouble, stuck with r71 and extend the methods you need yourself.

VRTK 3.3 Oculus controllers not tracking

VRTK: 3.3
Unity3D: 2018.1.0f2
Oculus: SDK Oculus Utilities 1.27
SteamVR: 1.2.3
I started a project using Vive which is all up and running. Then I wanted to start working on getting Oculus up and running. For some reason, the Oculus controllers are not tracking at all. They don't even show up.
To help track down the issue, I opened up the VRTK_SDKManager_Constructor scene as instructed, I then loaded up the StraightPointer scene.
Still no oculus controllers are visible nor are they tracking. Also, when I click on the joystick on the oculus controller, I get a laser projecting, but it's not coming from the controller. It's coming out from behind the headset.
I've tried this on two different computers, two different Oculus headsets. Was hoping someone might have some insight into why the Oculus controllers are not working.
From my understanding, I am using the correct Oculus SDK.
had a similar issue. here is what helped me:
go to any working oculus example with hands (without vrtk)
find LocalAvatar object
export its children: DefaultHandMaterialManager and DefaultBodyMaterialManager as prefabs
import them to your VRTK project
insert their instances as children of LocalAvatar object (child of OculusVR object under SDKSetups)
go to LocalAvatar's 'OVR Avatar' script
set 'Default Hand Material Manager' and 'Default Body Material Manager' references to the objects you just created
hope this helps anyone

How to do a simple drawing app in Flash?

I am trying to do a simple drawing app in Flash Professional CC. By simple, I just mean something that allows the user to click down and draw and mouseup- stop drawing.
I've been following this tutorial: https://www.youtube.com/watch?v=OXdphAAH1mQ
However, on the line:
... _root._xmouse, _root._ymouse
I get an error which says that it's undefined... I tried mouseX as well, which also didn't work.
I assume it's because I'm using Professional CC so it may be a different version of AS. Does anyone have any tips on how I can get a drawing app working on Prof CC?
_root._xmouse, _root._ymouse It's an AS2. As you could see in Tutorial, he also creates AS2 project. I'm not sure, that you can create AS2 project in Flach CC. As far as I can see, there is no option to create ActionScript 2. Here is AS3 Drawing App tutorial;

Unable to call save method of filerefence class in script tag of flex 3 application

I am trying to call method save of filerefence call in script of flex 3 application but application doesnot show the option of save method.
Please answer this.
Thanks in advance.
right click on Project and click on properties
then goto Flex Compiler
in HTML Wrapper
Change the required Flash Player version to 10.0.0
FileReference.save() is only available for Flash player 10 and above. If your flex sdk is running with Flash 9.0 you wouldn't be able to use it. Either move to latest SDK version or implement it using different way wiothout using the save() method.