vb.net ASP.Net 中的 WebGL?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14602383/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-17 12:05:56  来源:igfitidea点击:

WebGL inside of ASP.Net?

c#asp.netvb.netbrowserwebgl

提问by Coro

I have a question relating to WebGL (with javascript) being implemented inside of ASP.NET. I currently am working on a project in which I want to be able to use WebGL to load a up a model but have the features inside of ASP.Net to do other tasks.

我有一个关于在 ASP.NET 内部实现的 WebGL(使用 javascript)的问题。我目前正在从事一个项目,我希望能够使用 WebGL 加载模型,但在 ASP.Net 内部具有执行其他任务的功能。

Can anyone point me in the right direction please?

任何人都可以指出我正确的方向吗?

回答by Tigran

I would suggest use of THREE.jslibrary for it. It's pretty solid and has good vibrant community , but yet a lot of stuff yet to be done, imo.

我建议使用THREE.js库。它非常可靠并且拥有充满活力的良好社区,但是还有很多事情要做,imo。

The good strating point you can find here: Learning Three.js

您可以在此处找到好的起点:学习 Three.js

What about ASP.NETsetup, you can use whatever setup you want or feel comfortable with: WebForms or MVC. At the end what you need is

关于ASP.NET设置,您可以使用任何您想要或感觉舒适的设置:WebForms 或 MVC。最后你需要的是

  • HTML data rendering (WebForms. MVC, node.js...)
  • javascript to work with WebGL(three.js)
  • jsonrequests to pushand pulldata (usually in chunks, as 3Dmodels tend to be big and easily overflow available jsondata limit, so you need to fragment it in small pieces)
  • HTML 数据渲染(WebForms.MVC、node.js...)
  • WebGL( three.js)一起使用的 javascript
  • json请求推送拉取数据(通常以块为单位,因为3D模型往往很大并且很容易溢出可用的json数据限制,因此您需要将其分成小块)