简体   繁体   English

将3D场景转换为2D视图

[英]Convert 3D scene to 2D view

The situation is follow: there is a large 3D model of the system, obtained by conversion from 3DMax (xaml markup file size ove 50MB). 情况如下:存在一个大的系统3D模型,可以通过从3DMax(xaml标记文件大小超过50MB)进行转换获得。 To work with the model used Viewport3D. 要使用模型,请使用Viewport3D。 But I need to display only the front view. 但是我只需要显示前视图。 The main problem is the resource intensity of the resulting application. 主要问题是所得应用程序的资源强度。

Question: How to convert 3D scene to 2D view? 问题:如何将3D场景转换为2D视图? Preferably without any appreciable loss of quality. 优选地,没有任何明显的质量损失。

You can render the front view to an image using RenderTargetBitmap.Render() . 您可以使用RenderTargetBitmap.Render()将前视图渲染为图像。 This could take some time, but when it's done, you can discard the 3D model and display the 2D image instead. 这可能需要一些时间,但是完成后,您可以放弃3D模型并显示2D图像。

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

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