小编All*_*rum的帖子

Three.js - VRControls集成 - 如何在场景中移动?

我使用Three.js渲染和移动(我的orbitControl更改camera.position)在一个小场景中.
现在我有一个眼裂谷.所以我添加了VRControls和VREffect.
移动头部没有问题.
但我不能再在场景中移动,因为VRControls会覆盖相机参数:

object.quaternion.copy( state.orientation ); // object is the camera
Run Code Online (Sandbox Code Playgroud)

我认为这很容易纠正:我只需要更新相机而不是覆盖它:

object.quaternion.copy(stateOrientationQuat.multiply(currentCameraQuat));
Run Code Online (Sandbox Code Playgroud)

但它不起作用:它呈现移动的轻弹场景.VRControls和orbitControl好像在战斗......

你能告诉我如何将VRControls集成到现有项目中吗?如果您有更新代码(我真的不知道四元数......),那将非常有帮助.

谢谢

three.js oculus virtual-reality webvr

2
推荐指数
1
解决办法
4613
查看次数

git 工作正常,但 tortoisegit 因“无法生成 sh”+“无法分叉”而中止

我无法使用 tortoisegit 进行克隆或获取。输出窗口给出了这些错误:

error: cannot spawn sh: No such file or directory
fatal: unable to fork
git did not exit cleanly (exit code 128)
Run Code Online (Sandbox Code Playgroud)

但是如果我运行输出窗口中显示的 git 命令行它运行良好
那么问题似乎出在乌龟的配置上?

一些信息:

  • 我使用 git 1.9.5 和 tortoisegit 1.8.15.0 没有问题。我升级到 git-2.5.1,问题出现了。我回到 git-1.9.5 但问题仍然存在。
  • 存储库是本地网络上机器上的目录。我不使用 ssh。
  • 我从互联网上的存储库中获取没有问题
  • 我重新安装了 tortoisegit 没有更多的成功......

你知道问题出在哪里吗?或者你知道如何清理 tortoisegit 的存储配置?

谢谢你的帮助。

[编辑]
我刚刚更改了 tortoise 设置中的 git.exe 路径(settings/general/git.exe 路径)。它设置为C:\Program Files\Git\bin\libexec\git-core。我将其更改为C:\Program Files\Git\bin
它再次起作用。git.exe 有 4 个目录:

  • C:\Program Files\Git\bin
  • C:\Program Files\Git\cmd
  • C:\Program Files\Git\mingw64\bin
  • C:\Program Files\Git\mingw64\libexec\git-core …

tortoisegit

2
推荐指数
1
解决办法
3932
查看次数

标签 统计

oculus ×1

three.js ×1

tortoisegit ×1

virtual-reality ×1

webvr ×1