当前位置: 首页 > news >正文

鞍山网站建设/宁波网络推广方式

鞍山网站建设,宁波网络推广方式,dw使用模板做网站教程,微信公众号自定义菜单wordpressLibOVR集成 Oculus SDK被设计成尽可能易于集成。本指南概述了C/C游戏引擎或应用的基本Oculus集成。 我们将讨论LibOVR的初始化、HMD(头戴式设备)枚举、头部跟踪、帧同步,以及Rift渲染。 以下的许多代码示例是直接取自OculusRoomTiny演示源…

LibOVR集成

Oculus SDK被设计成尽可能易于集成。本指南概述了C/C++游戏引擎或应用的基本Oculus集成。

我们将讨论LibOVR的初始化、HMD(头戴式设备)枚举、头部跟踪、帧同步,以及Rift渲染。

以下的许多代码示例是直接取自OculusRoomTiny演示源码的(Oculus/LibOVR/Samples/OculusRoomTiny均有)。当对某个特定系统或特性有所怀疑时,OculusRoomTiny和OculusWorldDemo是查看示例集成代码的好地方。

SDK概述

使用该SDK有三个主要的阶段:启动、游戏循环、关闭。

为一个新的应用增加Oculus支持,需要按以下步骤操作:

  1. 通过ovr_Initialize初始化LibOVR。
  2. 调用ovr_Create并确认返回值,以检查是否调用成功。你可以使用ovr_GetHmdDesc(nullptr)定期轮询HMD的存在。
  3. 集成头部跟踪到你的应用视图和运动代码。这包括:
    a. 通过结合调用GetPredictedDisplayTime和ovr_GetTrackingState,获得帧中预期的头戴设备定位。
    b. 当将Rift结合到其他应用的控制器时,应用它的定位和位置到摄像机视图中。
    c. 修改运动和游戏玩法,以考虑头部定位。
  4. 初始化HMD的渲染。
    a. 基于HMD能力选择渲染参数,如分辨率、视野区域。
    • 参考:ovr_GetFovTextureSize和ovr_GetRenderDesc。
    b. 通过创建D3D/OpenGL来配置渲染—明确切换当前数据的结构集给头戴设备。
    • 参考:ovr_CreateSwapTextureSetD3D11和ovr_CreateSwapTextureSetGL。
  5. 修改应用帧渲染以集成HMD的支持和适当的帧同步:
    a. 确认你的引擎支持渲染立体视图。
    b. 添加帧同步逻辑到渲染循环,以获得正确预测的眼睛渲染动作。
    c. 渲染每个眼睛的视图,中和为渲染目标。
    d. 调用ovr_SubmitFrame,提交渲染过的帧给头戴设备。
  6. 自定义用户界面屏幕,以在头戴设备中良好呈现。
  7. 在关闭时,销毁创建的资源。
    • 参考:ovr_DestroySwapTextureSet,、ovr_Destroy和ovr_Shutdown。

更完整的渲染细节总结,在第14页的章节《渲染启动概述》中阐述。


原文如下


LibOVR Integration

The Oculus SDK is designed to be as easy to integrate as possible. This guide outlines a basic Oculus integration with a C/C++ game engine or application.

We’ll discuss initializing the LibOVR, HMD device enumeration, head tracking, frame timing, and rendering for the Rift.

Many of the code samples below are taken directly from the OculusRoomTiny demo source code (available in Oculus/LibOVR/Samples/OculusRoomTiny). OculusRoomTiny and OculusWorldDemo are great places to view sample integration code when in doubt about a particular system or feature.

Overview of the SDK

There are three major phases when using the SDK: setup, the game loop, and shutdown.

To add Oculus support to a new application, do the following:

  1. Initialize LibOVR through ovr_Initialize.
  2. Call ovr_Create and check the return value to see if it succeeded. You can periodically poll for the presence of an HMD with ovr_GetHmdDesc(nullptr).
  3. Integrate head-tracking into your application’s view and movement code. This involves:
    a. Obtaining predicted headset orientation for the frame through a combination of the GetPredictedDisplayTime and ovr_GetTrackingState calls.
    b. Applying Rift orientation and position to the camera view, while combining it with other application controls.
    c. Modifying movement and game play to consider head orientation.
  4. Initialize rendering for the HMD.
    a. Select rendering parameters such as resolution and field of view based on HMD capabilities.
    • See: ovr_GetFovTextureSize andovr_GetRenderDesc.
    b. Configure rendering by creating D3D/OpenGL-specific swap texture sets to present data to the headset.
    • See: ovr_CreateSwapTextureSetD3D11 andovr_CreateSwapTextureSetGL.
  5. Modify application frame rendering to integrate HMD support and proper frame timing:
    a. Make sure your engine supports rendering stereo views.
    b. Add frame timing logic into the render loop to obtain correctly predicted eye render poses.
    c. Render each eye’s view to intermediate render targets.
    d. Submit the rendered frame to the headset by calling ovr_SubmitFrame.
  6. Customize UI screens to work well inside of the headset.
  7. Destroy the created resources during shutdown.
    • See: ovr_DestroySwapTextureSet, ovr_Destroy, and ovr_Shutdown.

A more complete summary of rendering details is provided in the Rendering Setup Outline on page 14 section.

http://www.lbrq.cn/news/1446625.html

相关文章:

  • 莱芜招聘的网站/种子搜索神器
  • 有网站开发专业吗/中国国家人事人才培训网
  • 公司刚做网站在那里找图片做/软文标题
  • 呼伦贝尔做网站/seo站长工具是什么
  • 晚上网站推荐靠谱的2021/学大教育培训机构怎么样
  • 能在线做实验的网站/找回今日头条
  • 乐清做网站的公司/专业制作网页的公司
  • 乐陵市住房和城乡建设局网站/搜狗seo排名软件
  • 哪个网站做任务赚钱/百度收录网站要多久
  • 给小学生做家教的网站/百度企业
  • web手机版网站开发框架/如何建立一个自己的网站啊
  • 如何做网站反链/全国疫情最新报告
  • 做网站的公司需要什么资质/百度网站关键词排名查询
  • 南博会官方网站建设投入/代码编程教学入门
  • 外链都没有的网站如何做排名的/google搜索
  • app和网站开发哪个难/门户网站制作
  • ps做网站页面设置为多大/制作网页设计公司
  • 网站备案号如何获得/互联网项目推广是什么
  • 福建银瑞建设工程有限公司网站/营销型网站策划书
  • 对其网站建设进行了考察调研/个人如何注册网站
  • 网站开发的目的及意义/营销策划方案模板
  • 网站的种类有哪些/宁波seo关键词如何优化
  • 长沙的汽车网站建设/营销方案怎么写
  • 网站网页设计在哪找/企业seo整站优化方案
  • 做设计用的素材下载网站有哪些/关键词推广软件
  • 什么网站可以做平面赚钱/网络推广大概需要多少钱
  • wordpress+国内不使用/直通车关键词优化口诀
  • 怎样制作网站教程哪家好/营销策划咨询
  • 网站下载文件怎么做/新站seo快速排名 排名
  • 聊城网站建设/竞价托管外包哪家好
  • 机器翻译:需要了解的数学基础详解
  • 非常简单!从零学习如何免费制作一个lofi视频
  • 2025华数杯B题一等奖方案:网络切片无线资源管理全解析(附Python/MATLAB代码)
  • 在Java中,守护线程(Daemon Thread)和用户线程(User Thread)以及本地线程(Native Thread)的区别
  • hyper-v虚拟机启动失败:Virtual Pci Express Port无法打开电源,因为发生错误,找不到即插即用设备
  • GO的启动流程(GMP模型/内存)