Java3D 对象导出为 BufferedImage
-- 可能这个问题以前就已经存在过,但我在任何地方都找不到答案。 --
我设计了一个Java3D对象,它由不同的形状、不同的颜色和闪电效果组成。现在我想将此对象导出为 BufferedImage。有什么办法可以做到吗。请分享您的想法。
谢谢
-- may be this query has been on circuit before but I can't find an answer anywhere. --
I have designed a Java3D object which is composed of different shapes, with different colors and lightning effects. Now I like to export this object as BufferedImage. Is there any way to do it. please share your thoughts.
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我理解你的问题,听起来你想截取当前 3D 场景的屏幕截图?如果是这样,您可能需要查看 java.awt.Robot 类,如下所示:
source: http://www.java-tips.org/java-se-tips/java.awt/how-to-capture-screenshot.html
If I understand your question, it sounds like you want to take a screenshot of the current 3D scene? If so, you might want to look at the java.awt.Robot class, something like the following:
source: http://www.java-tips.org/java-se-tips/java.awt/how-to-capture-screenshot.html