如何创建真正的 3D 立体游戏。 (不是 3D 图形,而是 3D 屏幕)
我需要你的帮助。是否可以在画布上以 3D 形式编写游戏?如果是这样,怎么办。也许是 2 个区块的小例子?
** 对于 3D,我指的不是 OpenGL 中的 3D 图形,也不是画布上的 3D 图形,而您使用大脑应用矢量微积分将 3D 图形投影到 2D 屏幕上。我指的是 LG Op3d/HTC Evo 3d 的程序!
提前致谢
I need your help. Is it possible to write a game in 3d on a canvas? If so, how. Maybe a small example of 2 blocks?
** With 3d I don't mean 3d graphics in OpenGL, or on canvas while you use your brain to apply vector calculus to project the 3d graphics on a 2d screen. I mean program for LG Op3d/HTC Evo 3d!
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
有一个下载 HTC 立体 API 的链接:
http://htcdev.com/devcenter/opensense-sdk
There is a link to download HTC stereoscopic API at:
http://htcdev.com/devcenter/opensense-sdk
对于 HTC Evo 3D,请访问 HTC 开发人员网站 htcdev.com,您可以在其中下载 OpenSense SDK,其中包含 S3D API 和 S3D 渲染(立体 3D 渲染)的示例代码。
您必须渲染场景两次,一方面这可以让您更好地控制 S3D 效果,但另一方面您必须仔细选择相机视图。
(对于其他硬件配件,例如 nVIDIA 的 3d 视觉,3D 场景由驱动程序渲染两次,从程序员的角度来看,没有选项可以更改两个摄像头的视图)。
For the HTC Evo 3D go to HTC developer website htcdev.com There you can download the OpenSense SDK which contains the S3D API and sample code for S3D rendering (Stereoscopic 3D rendering).
You have to render the scene twice which gives you more control on the S3D effect on the one hand, but on the other hand you have to choose your camera view's carefully.
(With other hardware accessories, like nVIDIA's 3d vision, a 3D scene is rendered twice by the driver, no options to change the views of the two cameras from the programmer's point of view).
Nvidia 似乎有一个驱动程序或库,可以自动将传统 3D 游戏转换为 3D 立体游戏。 http://www.nvidia.com/object /product-geforce-3d-vision-wired-glasses-us.html
我想如果你想自己做,你只需要使用稍微移动的相机渲染相同的场景两次。并且以某种方式将两个渲染结果结合在一起,您将使您的游戏成为真正的 3D。
Nvidia seems to have a driver or library that automatically converts a conventional 3D game to the 3D stereo game. http://www.nvidia.com/object/product-geforce-3d-vision-wired-glasses-us.html
I guess if you want to do it yourself, you just need to render the same scene twice with slightly shifted camera. and somehow you combine the two rendered result together, you will make your game real 3D.
简短回答:
更详细的答案:
许多 3D 电视都接受多种类型的输入来渲染 3D,尤其是并排输入。
如果您有兴趣快速开始制作 3D 游戏(或只是 3D 场景),您可以使用图形引擎(例如 jMonkeyEngine),并排创建 2 个视口,并从不同的摄像机角度在每个视口中渲染场景。如果您连接 3D 电视并将其 3D 模式设置为并排 - 您将看到 3D 场景。
Short answer: link.
More elaborate answer:
Many 3D TVs have accept multiple types of input to render 3D, most notably - side by side.
If you are interested in getting a quick start at producing a 3D game (or just a 3D scene), you could use a graphics engine (such as jMonkeyEngine), create 2 view ports side by side, and render your scene in each of the view ports from separate camera angles. If you connect your 3D TV and set its 3D mode to side by side - you will see the scene in 3D.
HTC 有一个可在 HTC EVO 3d MPhone 中使用的 sdk。
HTC has an sdk for the use in thair HTC EVO 3d MPhone.