简体   繁体   English

如何在 ASP.NET Core 中绘制 3D 模型?

[英]How to draw a 3D model in ASP.NET Core?

I've got a browser client talking to an ASP.NET Core C# backend.我有一个浏览器客户端与 ASP.NET Core C# 后端通信。 On the browser I am using three.js to draw 3D building models.在浏览器上,我使用three.js 来绘制3D 建筑模型。 The data I use for the model is saved to the server as a job.我用于模型的数据作为作业保存到服务器。 The browser can recall that job and redisplay the 3D model.浏览器可以调用该作业并重新显示 3D 模型。 That part is working just fine.那部分工作得很好。 The models are not terribly complicated.模型并不是很复杂。 They are basic buildings not complicated photo realistic models of people :-)它们是基本的建筑物,而不是复杂的人物照片逼真模型:-)

At various points in time I need to be able to generate a report on the server that includes pictures of the 3D model.在不同的时间点,我需要能够在服务器上生成包含 3D 模型图片的报告。 I cannot rely on the client to generate the pictures for me.我不能依赖客户端为我生成图片。 So I am after a library, at a similar abstraction level to threejs, that I can use in an ASP.NET Core C# web server to draw the 3D model, and save it to a PNG for inclusion in the report.所以我在寻找一个库,在与 Threejs 类似的抽象级别,我可以在 ASP.NET Core C# web 服务器中使用它来绘制 3D 模型,并将其保存为 PNG 以包含在报告中。

Suggestions for such a library?对这样的图书馆的建议?

You can use three.js to render serverside, by adding node.js to the mix.通过将 node.js 添加到组合中,您可以使用three.js 来呈现服务器端。

How to render three.js server-side? 如何渲染three.js服务器端?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM