Forum Discussion
JaggerWolf
11 years agoExpert Protege
Things moving in distance???
So I was playing around making a level in unity last night for the first time with the Rift - I noticed trees in the distance "Moving" along with my head movements?? Has anyone else noticed this? Is t...
kideternal
10 years agoProtege
It looks like the code that does this is in the file "Program Files (x86)\Unity x.x.x.x\Editor\Data\CGIncludes\SpeedTreeBillboardCommon.cginc"
Specifically, this block:
I'm not sure how you get Unity to pick-up changes to it, nor what precisely the change should be, but would love to see this fixed.
Specifically, this block:
#ifdef BILLBOARD_FACE_CAMERA_POS
float3 eyeVec = normalize(_WorldSpaceCameraPos - worldPos);
float3 billboardTangent = normalize(float3(-eyeVec.z, 0, eyeVec.x)); // cross(eyeVec, {0,1,0})
float3 billboardNormal = float3(billboardTangent.z, 0, -billboardTangent.x); // cross({0,1,0},billboardTangent)
float3 angle = atan2(billboardNormal.z, billboardNormal.x); // signed angle between billboardNormal to {0,0,1}
angle += angle < 0 ? 2 * UNITY_PI : 0;
#else
float3 billboardTangent = _BillboardTangent;
float3 billboardNormal = _BillboardNormal;
float angle = _CameraXZAngle;
#endif
I'm not sure how you get Unity to pick-up changes to it, nor what precisely the change should be, but would love to see this fixed.
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
- 11 months ago
- 2 years ago
- 2 months ago
- 2 years ago