用于浏览器中的三维可视化的OpenGL或Flash

时间:2021-07-11 03:14:52

I am planning create a site that lets users in finance visualize the price of a foreign exchange option in 3d. x = price of underlying, y = price of option, z = days left to maturity. In other words, rather than a simple option payout diagram, this would allow you, on the Z axis, to view what the P&L scenarios would be if you sold before expiry of the option.

我正在计划创建一个网站,让财务用户可视化3d中外汇期权的价格。 x =基础价格,y =期权价格,z =剩余到期日。换句话说,这不是一个简单的选项支付图,而是允许您在Z轴上查看在期权到期前卖出的损益情景。

In short, I want a visualizaion tool. But given that the surface of the P&L might be quite "curvy", it's going to be good for users to rotate around the space in real time. And it's going to be good to slice the surface up along any plane orthogonal to the axes, and move the slice around. I want it to be responsive and fast.

简而言之,我想要一个可视化工具。但鉴于P&L的表面可能非常“弯曲”,用户可以实时旋转空间。沿着与轴正交的任何平面切割表面并移动切片将会很好。我希望它能够快速响应。

As you can see, quite ambitious (for me at least). Problem is, I want all this to work in a browser, and ideally, i'd like it to look great, potentially with lighting to make the "future time" parts of the surface darker, for example.

如你所见,非常雄心勃勃(至少对我来说)。问题是,我希望所有这些都能在浏览器中工作,理想情况下,我希望它看起来很棒,例如可能使用照明来使表面的“未来时间”部分变暗。

I have raided Amazon for books on Flash (the two Richard Shupe books), and I have the Red Book and Blue Books of OpenGL. They're quite hefty tomes, so I want to apply myself to the best solution. What do you suggest??

我已经搜查亚马逊关于Flash的书籍(Richard Shupe的两本书),我还有OpenGL的红皮书和蓝皮书。它们是非常大的书,所以我想把自己应用到最好的解决方案中。你有什么建议?

What should I think of Google's desire to create open standards for browser 3d? VapourWare? FutureWare?

我应该怎么看待谷歌为浏览器3D创建开放标准的愿望?雾件? FutureWare?

Advice sought and appreciated. I have deadlines!! Thanks.

寻求和赞赏的建议。我有截止日期!!谢谢。

6 个解决方案

#1


This answer may contain out-of-date information. Please validate this answer and consider providing an answer with recent information.

这个答案可能包含过时的信息。请验证此答案并考虑提供最新信息的答案。

For a project that you were going to start today, you'd be hard pressed to beat Flash, for a couple of reasons:

对于你今天要开始的项目,由于以下几个原因,你很难击败Flash:

  • It works. Flash has been "enterprise-grade" for 10+ years now; you're not going to stumble into a showstopping bug or a host of undocumented calls the way you might with something a little more cutting edge (or rather, bleeding edge, as it were.)

    有用。 Flash已经“企业级”已有10多年了;你不会像往常一样(或者更确切地说,出血边缘,就像它一样),偶然发现一个无法控制的错误或一系列无证调用的电话。

  • It's Everywhere. Adobe claims that something like 97%+ of all browsers have the Flash runtime installed. That's a huge hurdle to have to overcome - you may have the coolest widget on the planet, but if your userbase has to download some wacky 3rd party plugin, most of them just won't bother.

    它无处不在。 Adobe声称97%以上的浏览器都安装了Flash运行时。这是一个必须克服的巨大障碍 - 你可能拥有这个星球上最酷的小部件,但如果你的用户群必须下载一些古怪的第三方插件,他们中的大多数都不会打扰。

  • It really is cross-platform. I've got mixed feelings about Flash personally, but man, it's cross-platform support is kind of amazing. Sure, linux support is spotty and and it won't run on my iphone, but that's about it.

    它确实是跨平台的。我个人对Flash有各种各样的感受,但是男人,它的跨平台支持有点惊人。当然,Linux支持是不稳定的,它不会在我的iphone上运行,但这就是它。

On the flip side of the coin, I'm not sure there even IS a way to use OpenGL in a browser without a LOT of glue. Using OpenGL for a browser tool is starting to sound like a Java Applet, or a ton of atomic-powered javascript, and at that point, you've more or less reimplemented Flash. :)

在硬币的另一面,我不确定是否有一种方法可以在浏览器中使用OpenGL而不需要很多粘合剂。将OpenGL用于浏览器工具开始听起来像Java Applet,或者大量原子驱动的javascript,此时,您或多或少地重新实现了Flash。 :)

#2


What you probably want is O3D.

你可能想要的是O3D。

#3


I may catch flak for this, but investigate the HTML5 canvas for drawing without needing any kind of plugin at all. You can use Processing.js to do a limited amount of 3D, but should be fine. Otherwise, I would look for a 3D flash engine. O3D is too much vapor ware at the moment.

我可能会对此感到害怕,但是在不需要任何插件的情况下调查HTML5画布进行绘制。您可以使用Processing.js来执行有限数量的3D,但应该没问题。否则,我会寻找3D闪存引擎。 O3D目前是太多的蒸汽器皿。

#4


I'd suggest taking a look at the Coppercube 3D engine for flash, currently in beta. It might be overkill, or it might not meet your deadline, but it's pretty cool. There's also a demo available.

我建议看一下目前处于测试阶段的Coppercube 3D引擎。这可能是矫枉过正,或者它可能不符合你的截止日期,但它很酷。还有一个演示版。

#5


One of the reasons Flash is so popular is that its always the same implementation. Whereas something more open standards based, you run into issues with different people interpreting corner cases differently.

Flash如此受欢迎的原因之一是它始终是相同的实现。虽然基于更开放的标准,但是你会遇到不同的人以不同方式解释角落案件的问题。

Another big plus for me, for flash, is that it prints well. If you trigger printing from flash, printing gets rendered as vectors, so it scales really nicely for the printer. I make use of that in my gear template generator. (http://woodgears.ca/gear_cutting/template.html)

对于我来说,闪光灯的另一大优点是打印效果很好。如果从闪光灯触发打印,打印将呈现为矢量,因此它可以非常适合打印机。我在我的齿轮模板生成器中使用它。 (http://woodgears.ca/gear_cutting/template.html)

#6


I am going with Flash.

我要用Flash。

OpenGL is attractive in standalone apps due to performance and flexibility. But for immediate deployment looks like Flash gives me the basics of what I need, with growth potential as Adobe builds out the platform.

由于性能和灵活性,OpenGL在独立应用程序中很有吸引力。但是对于即时部署来说,Flash给我提供了我所需要的基础知识,并且随着Adobe构建平台而具有增长潜力。

I am going to keep an eye on the open standards though, and try and code in a portable way ;)

我将密切关注开放标准,并尝试以便携方式编写代码;)

Thanks all for the answers..

谢谢大家的答案..

#1


This answer may contain out-of-date information. Please validate this answer and consider providing an answer with recent information.

这个答案可能包含过时的信息。请验证此答案并考虑提供最新信息的答案。

For a project that you were going to start today, you'd be hard pressed to beat Flash, for a couple of reasons:

对于你今天要开始的项目,由于以下几个原因,你很难击败Flash:

  • It works. Flash has been "enterprise-grade" for 10+ years now; you're not going to stumble into a showstopping bug or a host of undocumented calls the way you might with something a little more cutting edge (or rather, bleeding edge, as it were.)

    有用。 Flash已经“企业级”已有10多年了;你不会像往常一样(或者更确切地说,出血边缘,就像它一样),偶然发现一个无法控制的错误或一系列无证调用的电话。

  • It's Everywhere. Adobe claims that something like 97%+ of all browsers have the Flash runtime installed. That's a huge hurdle to have to overcome - you may have the coolest widget on the planet, but if your userbase has to download some wacky 3rd party plugin, most of them just won't bother.

    它无处不在。 Adobe声称97%以上的浏览器都安装了Flash运行时。这是一个必须克服的巨大障碍 - 你可能拥有这个星球上最酷的小部件,但如果你的用户群必须下载一些古怪的第三方插件,他们中的大多数都不会打扰。

  • It really is cross-platform. I've got mixed feelings about Flash personally, but man, it's cross-platform support is kind of amazing. Sure, linux support is spotty and and it won't run on my iphone, but that's about it.

    它确实是跨平台的。我个人对Flash有各种各样的感受,但是男人,它的跨平台支持有点惊人。当然,Linux支持是不稳定的,它不会在我的iphone上运行,但这就是它。

On the flip side of the coin, I'm not sure there even IS a way to use OpenGL in a browser without a LOT of glue. Using OpenGL for a browser tool is starting to sound like a Java Applet, or a ton of atomic-powered javascript, and at that point, you've more or less reimplemented Flash. :)

在硬币的另一面,我不确定是否有一种方法可以在浏览器中使用OpenGL而不需要很多粘合剂。将OpenGL用于浏览器工具开始听起来像Java Applet,或者大量原子驱动的javascript,此时,您或多或少地重新实现了Flash。 :)

#2


What you probably want is O3D.

你可能想要的是O3D。

#3


I may catch flak for this, but investigate the HTML5 canvas for drawing without needing any kind of plugin at all. You can use Processing.js to do a limited amount of 3D, but should be fine. Otherwise, I would look for a 3D flash engine. O3D is too much vapor ware at the moment.

我可能会对此感到害怕,但是在不需要任何插件的情况下调查HTML5画布进行绘制。您可以使用Processing.js来执行有限数量的3D,但应该没问题。否则,我会寻找3D闪存引擎。 O3D目前是太多的蒸汽器皿。

#4


I'd suggest taking a look at the Coppercube 3D engine for flash, currently in beta. It might be overkill, or it might not meet your deadline, but it's pretty cool. There's also a demo available.

我建议看一下目前处于测试阶段的Coppercube 3D引擎。这可能是矫枉过正,或者它可能不符合你的截止日期,但它很酷。还有一个演示版。

#5


One of the reasons Flash is so popular is that its always the same implementation. Whereas something more open standards based, you run into issues with different people interpreting corner cases differently.

Flash如此受欢迎的原因之一是它始终是相同的实现。虽然基于更开放的标准,但是你会遇到不同的人以不同方式解释角落案件的问题。

Another big plus for me, for flash, is that it prints well. If you trigger printing from flash, printing gets rendered as vectors, so it scales really nicely for the printer. I make use of that in my gear template generator. (http://woodgears.ca/gear_cutting/template.html)

对于我来说,闪光灯的另一大优点是打印效果很好。如果从闪光灯触发打印,打印将呈现为矢量,因此它可以非常适合打印机。我在我的齿轮模板生成器中使用它。 (http://woodgears.ca/gear_cutting/template.html)

#6


I am going with Flash.

我要用Flash。

OpenGL is attractive in standalone apps due to performance and flexibility. But for immediate deployment looks like Flash gives me the basics of what I need, with growth potential as Adobe builds out the platform.

由于性能和灵活性,OpenGL在独立应用程序中很有吸引力。但是对于即时部署来说,Flash给我提供了我所需要的基础知识,并且随着Adobe构建平台而具有增长潜力。

I am going to keep an eye on the open standards though, and try and code in a portable way ;)

我将密切关注开放标准,并尝试以便携方式编写代码;)

Thanks all for the answers..

谢谢大家的答案..