通过CGI生成3D GUI

发布于 2024-07-30 03:16:25 字数 330 浏览 1 评论 0原文

我正在实现一个使用 CGI 用 C++ 编写的 Web 应用程序。
是否可以使用带有动画的 3D 绘制 GUI?
我是否应该包含某种生成动画 gif 并使用 图像地图 的机制?
还有另一种更优雅的方法吗?

编辑:
所以它总结为 Java 或 Silverlight 或 Flash 10。
Flash 10 已经普及了吗? 如果不是,Java 是否是更好的选择,因为它的应用范围更广?

I'm implementing a web application that is written in C++ using CGI.
Is it possible to use a 3D drawn GUI that also has animations?
Should I just include some kind of mechanism that generates animated gifs and uses an image map?
Is there another, more elegant way of doing this?

EDIT:
So it sums up to Java or Silverlight or Flash 10.
Is Flash 10 common already?
If not is Java a better choice since it's more wide spread?

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

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

发布评论

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

评论(4

无力看清 2024-08-06 03:16:25

我建议您查看 Canvas HTML 标记以及 < a href="http://www.chromeexperiments.com/" rel="nofollow noreferrer">Chrome 实验。 这些需要一个非常现代的浏览器和一个非常好的 JavaScript 实现,但有些是相当令人印象深刻的。

其他选项包括 Adob​​e Flash 和 Microsoft 的 Silverlight。

I'd recommend taking a look at the Canvas HTML tag, as well as Chrome Experiments. Those require a pretty modern browser with a very goo JavaScript implementation, but some are rather impressive.

Other options include Adobe Flash and Microsoft's Silverlight.

折戟 2024-08-06 03:16:25

我遇到了同样的问题:我需要在 Web 前端 (CGI) 中显示 3D 模型。

目前 Flash 似乎是最好的解决方案 - 几乎所有浏览器都支持 Flash(包括许多移动设备),并且有各种各样的 Flash 工具和 SDK - 请参阅:
http://osflash.org/projects

所以我会尝试开发一个CGI应用程序,它生成一个Flash动画并通过 http 传递它。

如果您找到了实现它的解决方案/方法,那会很有趣 - 目前我没有时间:(

ciao,
Chris

PS:Adobe 将 Flex-3 SDK 作为开源软件 - 可用于商业应用程序。

I'm having the same problem: I need to display 3D models inside a web frontend (CGI).

Currently Flash seems to be the best solution - nearly all browsers support flash (including many mobile devices) and there's a big variety of tools and sdks for Flash - see:
http://osflash.org/projects

So I would try to develop a CGI app, which generates a flash animation and delivers it via http.

Would be interesting, if you have found a solution / way to realize it - currently I don't have the time for it :(

ciao,
Chris

PS: Adobe has the Flex-3 SDK as OpenSource - which can be used for commercial applications.

許願樹丅啲祈禱 2024-08-06 03:16:25

首先:从您的一些评论来看,您似乎并不打算在浏览器中实际使用您的 Web 应用程序。 如果我错了,请看下面。 如果我是对的,那么您完全可以使用您想要的任何技术编写您想要的任何 UI,并通过该 UI 程序连接到您的 Web 应用程序。 您必须处理一些问题:什么平台、什么技术等等。但是使用这样的 UI 连接到您的 Web 应用程序不会有任何问题; 只需在套接字编程中遵循 HTTP 协议或使用为您完成此操作的框架即可。

也就是说,如果您打算在浏览器中使用 3D,则应该查看 Google O3D API 。 它是一个浏览器插件,但它应该为您提供使用 GPU 在浏览器中进行 3D 处理所需的一切,而不是像 Flash 和 Silverlight 那样的软件渲染。

如果您不愿意使用浏览器插件并且不想尝试编写自己的 UI 程序,那么您唯一的选择就是使用 Canvas 和 Chrome Experiments,正如 @Kitsune 建议的那样。

First: from some of your comments, it appears you're not planning to actually use your web application in a browser. If I'm wrong, see below. If I'm right, then you're perfectly fine to write whatever UI you want using whatever technology you want and connect to your web application via that UI program. There are issues you'll have to deal with: what platform, what technology, etc. But you'll have no problems connecting to your web application using such a UI; just follow the HTTP protocols in your socket programming or use a framework that does it for you.

That said, if you're planning to do 3d in-browser, you should look into the Google O3D API. It's a browser plugin, but it should give you everything you need to do 3d in-browser using the GPU rather than software rendering like Flash and Silverlight do.

If you're not willing to use a browser plugin and you're not trying to do your own UI program, then your only other option is to use Canvas and Chrome Experiments as @Kitsune has suggested.

书间行客 2024-08-06 03:16:25

我认为您错过了一些关键想法。

如果您想要一个 3D Web 应用程序,我认为您在后端不会取得太大成功。 您将使用大量的 CPU 和带宽进行渲染并发送帧,并且速度会很慢且滞后(尽管一些仍不知名的视频游戏初创公司可能会这么认为)。

相反,您需要的是一些客户端技术,例如 Flash 10 或 Silverlight,它们使用客户端 CPU 和 GPU 在客户端上进行硬件加速渲染。

I think you're missing a few key ideas.

If you want to have a 3D web-app, I don't think you're going to have much success doing it on the back-end. You'll use a ton of CPU and bandwidth rendering and sending down frames, and it will be slow and laggy (despite what some video game start-ups that will remain nameless might have you think).

Instead what you want is some client-side technology, like Flash 10 or Silverlight, which does hardware accelerated rendering on the client, using the clients CPU and GPU.

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