Introducing Holographic Emulation

本文介绍Unity中全息仿真功能,大幅减少全息应用开发周期。开发者可通过两种模式:远程和仿真,在不牺牲效率的情况下进行原型设计、调试及迭代。远程模式通过连接Windows全息设备实现实时反馈,而仿真模式则完全在编辑器内运行,无需实际设备。

Holographic Emulation is a new feature that vastly reduces iteration time when developing holographic applications in Unity. Developers creating applications for Microsoft HoloLens will immediately benefit by being able to prototype, debug, and iterate on design directly from the Unity Editor without getting bogged down by long build and deploy times. Holographic Emulation works in two different modes: Remoting and Simulation.

holographicremotinganim-2-50

Holographic Remoting allows you to run your application directly from the Editor after connecting to a Windows Holographic device (Microsoft HoloLens). The application will behave as if it were deployed to the device (with full sensor data and positioning), but will actually be running on the host machine. The Game view window will also allow you to see what is being rendered on the device (absent, of course, anything that the wearer of the device sees from the real world).

Holographic Simulation goes one step further, allowing you to run on a simulated device directly in the editor — in other words, no physical device is necessary. This is a great option for development when you have a limited number of devices to share among your team, or you want to get started early with holographic development before getting physical hardware.

Requirements

In order to use Holographic Emulation, you’ll need to be running Unity 5.5 (now currently in beta) on a machine with Windows 10 Anniversary update (or later) installed.

Getting Started

To enable remoting or simulation, open the Holographic Emulation control window from the Editor Windows menu by selecting “Holographic Emulation”:

holographic-emulation-image-0

The Holographic Emulation control window can be moved and docked like any other window; we recommend keeping it visible during development because it has a few settings you’ll want access to when starting your application.

holographic-emulation-image-1

Initially the Emulation Mode will be set to None, which means that your application will run in the Editor without any of the Holographic API functionality.

Holographic Remoting

To enable Remoting, change the Emulation Mode to “Remote to Device”. The interface will change to reflect the additional options available when remoting.

holographic-emulation-image-2To connect to your device, you’ll need to do three things. First, you’ll need to install and run the Remoting Player, available from the Windows Store. Launch the application on the device, and it will enter a waiting state and show the IP address of the device. Additional information about the Remoting Player, including how to enable connection diagnostics, can be found on the Microsoft Windows Dev Center.

holographic-emulation-image-3

Second, enter the IP address of your device in the Remote Machine field. The dropdown button to the right of the field will allow you to select recently used addresses.

Finally, press the “Connect” button.  The connection status should change to a green light with a connected message. You’re now ready to hit Play in the Editor and run your device remotely. You can pause, inspect objects, and debug just like you are running an app in the Editor, because that’s essentially what’s happening, but with video, audio, and device input transmitted back and forth across the network between the host machine and the device. Remoting isn’t useful for validating performance (since it’s using your host machine for all the heavy lifting), but it is a great way to iterate quickly during development.

Holographic Simulation

Running in Simulation mode is even simpler than Remoting. Just change the mode to “Simulate in Editor” and press the Play button. Your application will start with a emulator built into the Editor — no headset required. You can choose from one of five virtual rooms (the same as those supplied with the XDE HoloLens Emulator) as well as specify which virtual hand (left or right) performs gestures.

holographic-emulation-image-4When in Simulation mode, you control a virtual human with a game controller.

holographicsimulationcontrol

Note that in order to use the game controller, the game window will need to have focus. Just clicking the Game view window once after doing anything else with the UI should give it focus.

Known Limitations

  • Speech (PhraseRecognizer) is not currently supported via Holographic Remoting, and instead will intercept speech from the Editor-hosted machine.
  • PhotoCapture can be performed during Holographic Simulation, but since the capture will be performed via a local camera (such as a web cam), you will not be able to retrieve a matrix with TryGetProjectionMatrix or TryGetCameraToWorldMatrix.
  • During Remoting, all audio on the hosted PC (not just that from the app) will redirect to the device.

转载于:https://www.cnblogs.com/jiahuafu/p/6182533.html

Spring XD 是一个开源的分布式数据处理平台,主要用于构建数据管道和集成任务。它提供了一种简单而高效的方式来处理实时数据流和批量数据。 ### 主要特点: 1. **模块化设计**:Spring XD 采用模块化架构,支持多种数据源、处理器和存储系统,使得用户可以灵活地组合不同的模块来满足特定的需求。 2. **分布式处理**:通过使用Apache ZooKeeper进行协调,Spring XD 能够在多个节点上分布式运行任务,从而提高系统的可扩展性和可靠性。 3. **丰富的模块库**:Spring XD 提供了大量的预定义模块,包括数据源(如Kafka、RabbitMQ)、处理器(如转换、过滤)和存储系统(如HDFS、HBase)。用户也可以自定义模块来扩展功能。 4. **脚本支持**:支持使用JavaScript、Python等脚本语言编写处理器逻辑,使得开发更加灵活和快速。 5. **易于部署和管理**:Spring XD 提供了命令行工具和Web界面,方便用户进行部署、监控和管理。 6. **与Spring生态系统集成**:作为Spring家族的一部分,Spring XD 可以无缝集成到现有的Spring应用程序中,利用Spring框架的强大功能。 ### 应用场景: - **实时数据处理**:适用于需要对流式数据进行实时处理的场景,如日志分析、事件驱动的应用等。 - **ETL流程**:用于提取、转换和加载数据,特别适合大数据环境下的数据集成任务。 - **微服务架构**:在微服务架构中,Spring XD 可以用来处理服务间的消息传递和数据流。 ### 安装步骤: 1. **下载并解压安装包**。 2. **配置环境变量**,确保Java和Maven已正确安装。 3. **启动ZooKeeper**,因为Spring XD依赖于ZooKeeper进行集群管理。 4. **运行Spring XD单节点模式**,可以使用`xd-singlenode`脚本启动。 5. **访问Web界面**,通常位于`http://localhost:8080/`,在这里可以进行模块的创建和管理。 ### 示例代码: 以下是一个简单的例子,展示了如何使用Spring XD创建一个数据管道,该管道从Kafka读取消息,将其转换为大写,然后输出到控制台。 ```shell # 创建Kafka源模块 module create --name kafka-source --type source --definition "kafka --brokers=localhost:9092 --topic=input" # 创建转换模块 module create --name uppercase-transform --type processor --definition "log --expression='payload.toUpperCase()'" # 创建控制台输出模块 module create --name console-sink --type sink --definition "log" # 创建数据管道 stream create --name uppercase-pipeline --definition "kafka-source > uppercase-transform > console-sink" # 启动数据管道 stream deploy --name uppercase-pipeline ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值