创建真实的 3D 形状

发布于 2024-10-23 11:29:17 字数 182 浏览 1 评论 0原文

你好 我看到有些笔记本电脑支持 3D。我知道他们每只眼睛都使用偏振。我怎样才能用 C# 编写一个程序来在这样的系统中显示一个简单的 3D 对象?我不想在 2D 介质(透视视图)中显示 3D 对象,而是使用 3D 玻璃显示类似于您在 3D 电影中看到的 3D 对象。

任何进一步研究的建议都将受到高度赞赏。

问候

Hello
I saw that there are some laptops with 3D support. I know that they use polarization for each eye. How can I write a program in C# that shows a simple 3D object in such system? I don't want to show a 3D object in a 2 D medium (Perspective view), but showing a 3D object similar to what you can see in a 3D film using a 3D glass.

Any suggestion for further study is highly appreciated.

Regards

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小梨窩很甜 2024-10-30 11:29:17

您需要做的是显示两个图像,每只眼睛各显示一个图像。每张图像都是透视图,但是从两个略有不同的视角拍摄的——大约是眼睛之间的距离。

当通过偏光或更可能的 LCD 快门眼镜观看时,您会产生 3D 物体的错觉。

在这种情况下,每只眼睛的视图交替呈现在屏幕上,并向眼镜发送信号以变得清晰或不透明,以便每只眼睛都能看到正确的图像。

对于被动系统,您必须使用两台投影仪来播放左眼图像和右眼图像,并确保它们完美对齐,以便图像正确重叠。如果你弄错了,你将不会得到很好的 3D 效果。

在这两种情况下,您都需要创建模型的两个视图,并为显示的每一帧渲染每个视图。我曾经在这个领域工作过,不久前写过 一篇博客文章,其中概述了我们如何制作立体声系统。

What you need to do is display two images one for each eye. Each image is a perspective view but taken from two slightly different viewpoints - about the distance of your eyes apart.

When viewed through polarising or more likely LCD Shutter glasses you get the illusion of 3D objects.

In this case each eye's view is presented on the screen alternately and a signal is sent to the glasses to become clear or opaque so that the correct image is seen in each eye.

For a passive system you have to use two projectors for the left and right eye images and make sure that they are perfectly aligned so the images overlap correctly. If you get it wrong you won't get a very good 3D effect.

In both cases you need to create two views of your model and render each one for each frame you display. I used to work in this area and a while back wrote a blog post which included an overview on how we did stereo systems.

苍暮颜 2024-10-30 11:29:17

我认为你需要直接使用OpenGL或Direct3D进行编程。为了使屏幕显示实现 3D 效果所需的偏振视图,显卡需要知道它必须显示什么。请参阅此处了解一些想法。

I think that you need to program directly using OpenGL or Direct3D. For the screen to display the polarized views necessary to achieve the 3D effect, the graphics card will need to know what it has to display. See here for some ideas.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文