Forum Discussion
Cheshyr
13 years agoHonored Guest
v0.2.4 overrides custom Far Clip Plane settings?
I've been using some rather large FarClipPlane settings, and the recent 0.2.4 release ignores these settings, unless I hardcode them into the default values of the OVRCameraController.cs script.
Bug in the new UpdateCamerasDirtyFlag system, or am I doing something wrong? I used to edit FarClipPlane in OVRCameraController.
Bug in the new UpdateCamerasDirtyFlag system, or am I doing something wrong? I used to edit FarClipPlane in OVRCameraController.
5 Replies
Replies have been turned off for this discussion
- drashHeroic ExplorerI think the problem is that in the new Unity integration, private member variables are getting set to an initial value. This will override anything you put into those fields in the inspector as a result.
- DevilInsideProtegeYeah. A new bug.
You can add "[SerializeField]" right before the private fields to force unity to serialize the private field.
Hope this gets fixed.
I also hope they'll optimize the scripts. Hate to see the likes of:gameObject.camera.transform.rotation.eulerAngles;
when you can simply call:transform.rotation.eulerAngles;
Or even cache the transform. - cyberealityGrand ChampionYou need to edit OVRCameraController.cs around line 106 and add:
[SerializeField]
On the line immediately above the private declarations of the near and far clip planes.
This will be fixed in the next version of the SDK. - cruncher3019Honored GuestI am having a similar problem where I use a game object called "Pilot" and attach the OVRCameraController to it. Inside the object I attach a left and right camera.
When I run the game, I have a blue culling square directly in front of me because of how big the area is. If the game is running and I change the far plan value to make it larger it fixes the problem. however, if I change the default value to be, say, 3000 instead of the default 1000, when i run the game there is no change and I still see a blue square.
However, in the scene view, if I select the object holding the pilot and cameras, it's clear that the view should cover the skybox I'm using and no square should be seen.
Weirder still, if I select the pilot, which is holding the OVRcameraController script, it fixes my issue.
What seems to be happening is that the farplane is defaulting to 1000.0f until i actually select the object in the hierarchy, which fixes the issue.
Obviously this is a problem because if I build an executable, I have no way of accessing the hierarchy. - cruncher3019Honored Guest
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 8 months ago
- 6 months ago
- 2 years ago