WebBrowser 或 WindowsFormsHost 是否支持使用 C# 的 WPF 中的 ViewPort3D,如果不支持,那么为什么?
我开发了一个带有用于翻转的 3D 动画的 Windows 应用程序,该代码存在于我的个人资料中。现在,当我要使用其中的浏览器之类的东西来改进我的应用程序和浏览器实现时,我尝试使用 WebBrowser 以及 WindowsFormHost ViewPort3D 控件内的 Viewport2DVisual3D 可以像我的应用程序中的 Web URL 一样访问“http://www.google.co.in/”。但当我运行我的应用程序时,它对我不可见
请有人建议我如何去做......
提前致谢
I developed a Windows application with 3D Animation for flipping, which code is present in my profile.Now while I am going to Browser kind of thing in it to improve my application and for Browser implementation I tried with a WebBrowser and also with a WindowsFormHost in Viewport2DVisual3D inside the ViewPort3D Control to access "http://www.google.co.in/" like web URLs from my application. But its not visible to me while I am running my application
Please anybody suggest me how to go for this....
Thanks in Advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您应该查看 WPF 3D Chromium 浏览器: http://chriscavanagh .wordpress.com/2009/08/27/wpf-3d-chromium-browser/
You should check out WPF 3D Chromium Browser : http://chriscavanagh.wordpress.com/2009/08/27/wpf-3d-chromium-browser/
ViewPort3D 将允许您渲染 3D 内容。如果要以 3D 形式渲染普通 2D 内容,则需要将 2D 内容渲染到 RenderTargetBitmap,然后将其作为纹理应用到 3D 模型中的多边形。如果您只想使用 3D 在视图之间翻转,我会在不翻转时正常渲染 2D,然后在翻转期间显示 3D 视图,因为由于纹理引擎的原因,纹理化版本看起来质量不那么好图形处理器。
ViewPort3D will allow you to render 3D content. If you want to render normal 2D content in 3D you'll need to render the 2D content to a RenderTargetBitmap, and then apply that as a texture to a polygon in your 3D model. If you just want to use 3D for flipping between views, I'd render the 2D this normally when not flipping, then just show the 3D view during the flip since the texturised version won't look as good quality due to the texture engine in the graphics processor.