在跳跃188bet让球运动中,我们 制作VR / AR发展容易:基本的UI部件积木团结。在本周的开发日志,金宝搏牛牛we're covering a complete overview of the project as it's developed to date in a special 6-part series.

We'll start with a look at Planetarium,我们旨在展示各种小工具你探索星空和穿越时间。The demo is available now on our金宝搏牛牛开发者画廊和全源很快就会通过我们的网站开发的可。金宝搏牛牛

大家好!!

欢迎来到组件团队的开发日记第三批(金宝搏牛牛第1部分,,第2部分)我们交换了这后一点的格式,让你有机会听到直接从组件团队的不同成员在他们的工作上。

首先:Daniel Plemmons覆盖的开始天文馆项目和为什么我们选择它作为我们发展的框架组件。另外,我们要看看各种工具,我们使用,它很快就可以陪你玩。其间,继续看天空!!

–Andrew Littlefield,产品经理

天文馆:背景和科学

这个天文馆started as a weekend side project of mine.我是一个业余天文学家,有很多限制,你可以通过廉价的,地面望远镜。就在我头上,有一些很酷的东西我可以想象和学习,如果我能看星星通过VR耳机。The most interesting of which was to visualize the actual distance of stars from Earth.

When you look up at the night sky,the stars all look to be painted on the sky,好像它们都相距差不多。事实上,在晴朗的夜晚你能看见的星星就在附近。astronomically speaking)while others are thousands of light-years away.我们的“小“银河系,,银河系,大约是100,000光年左右.

To put that in a more human perspective,人类有史以来最快的飞船了,,旅行者1号,traveling at 62,136公里/小时,历时36年,只有经过约0.002光年。当你到达太空时,,数字开始变得相当大.

古星

I was really curious about seeing how the night sky would look if you could actually sense the difference in distances.我们主要通过两只眼睛接收的图像的视差来观察深度。(同样的效果,事实上,我们使用跳跃运动控制器来检测深度。)恒星距离太远,以至于视差的差188bet让球异太小,以至于对人眼毫无意义。But if our eyes were a few light-years apart,我们会一个很好的感觉恒星的距离变化。

Discovering the Stars

I did some digging and found thehyg星库,一个非常干净的格式化的CSV数据库天空中最明亮的恒星(有十亿星星,我们提供超过100,000)。

有一吨的恒星和恒星的命名方式:NGC目录目录,Hipparcos目录,the Henry Draper catalogue,the Yale Bright Star catalogue,拜耳命名,Flamsteed naming,凌乱的对象,等等。The HYG database nicely combines and cross-references a bunch of these catalogues along with providing data like 3D positions,颜色指数通用名称,光谱分类,and tons of other science-y fun.

HYG数据库给了我们了解恒星的位置两方面。一个是传统极天文坐标,赤,赤纬,和距离。其他的起源与地球传统的三维坐标。我决定用赤经和赤纬坐标。They're a bit like longitude and latitude.

ra_and_dec_on_celestial_sphere

一些简单的词汇:

  • 右提升(RA) is measured in hours (with 24 hours being a full circle) and describes an angle rotated about the celestial equator.
  • 赤纬(DEC)是角,衡量度,天球赤道向北或向南。

These are fixed coordinates,so a star always has the same RA and DEC.然而,the earth's rotation means that if we look at a single point in the sky (relative to the earth) at two different times,这一点在天球坐标将有变化。To figure out where to place a star in the game engine,你转换了极右提升,赤纬,and distance coordinates to Unity3D space.与知识,we can generate some procedural geometry to represent each of the stars.应用程序然后转动地球和观众有夜空的正确观点。(在本系列稍后的部分中,我们将详细介绍Gabe是如何工作的。)

The Expanded Universe: Color and Constellations

这是所有人都很酷,但还有比白色小星星很多。他们是巨人炽热的气体质量(呃……白炽灯等离子体)就像我们的明星,太阳。不同的星星在不同温度下,因此,发出不同颜色的光。冷恒星要红,而炙热的恒星都是炽热的,最热的恒星燃烧的蓝色。If you've ever had to redo the white balance of a camera when you move from shooting indoors to outdoors,你会熟悉这个概念,被称为色温。HYG数据库给我们的恒星的色指数,我们可以很容易地把它作为一个数据层的应用。

stellar_classification

The other major set of data we wanted to show was the constellations that make up the night sky.This is where we run into some vaguery.When most people hear the word constellation,they think of the illustrated lines connecting stars to form figures in the night sky,像猎户座,仙后座,射手座的阿切尔,和天蝎。在科学界,一个星座是夜空中一区。Every star in that region天空的是那个星座的一部分。这个International Astronomical Union(IAU) officially recognizes88星座covering the entire night sky.Their borders are well-defined and generally agreed upon.

中国科学院

什么是不同意的,定义一个星座的线”星号– the figure made up by connecting some of the stars in the constellation.星群也并不总是与一个88星座相关。北斗星是一个星群,但它的恒星都在大熊星座,which also has an associated asterism of the same name.88的标准数据的一般形状是一致的,but look at three different star charts and you'll probably find three different sets of lines making up the asterisms.

最终,这意味着没有一个干净的数据库的星群系我可以简单地解析和进口到天文馆。最后,我学习了属于不同的明星图表and hand-entered all the asterisms into a spreadsheet,which I rigged up to export into a CSV format I could easily parse.(如果你感兴趣的数据,不客气dig into the spreadsheet.所有的星星都是由亨利德雷珀目录ID引用)

所有的数据,在制定控制方案方面,我们还有很多工作要做。我们的终极目标天文馆project was twofold – to build a demo for Widgets,这将使我们培养和提高他们在生产应用程序上下文。控制天象给我们设置一个定义良好的挑战可以伸展以适合我们的时间和资源。即使现在,我们实际上只触及了我们所能想象到的表面,并在夜空的无限深处进行交互。

这是现在所有的!明天,I'll kick things over to Gabriel to talk about spatial navigation with our Navigation Widgets.

-丹尼尔普莱蒙斯,设计者和开发者金宝搏牛牛

下一步:ARM的演化HUD

触摸屏,旋钮和按钮,–运动界面的方式有:人类与技术一起很多。As a 金宝搏牛牛developer experience engineer at 188bet让球Leap Motion,Daniel loves to explore new ways that we can communicate with (and through) technology,特别是在大的空间,个人的和公共的碰撞。

推特