开发者

Accessing Petrel 3D window framebuffer

I'm looking for a way to access the framebuffer of a Window3D other than Window3D.SaveBmp. The preferred solution would be to be a开发者_如何学Pythonble to draw the scene graph to an offscreen buffer, but other ways of accessing the framebuffer could also work.


Currently this is not supported by Ocean for Petrel.

I agree it might seem a bit strange that saving a bitmap is supported but not accessing an in-memory copy. The reason is simply historical as the underlying C++ framework of Petrel encapsulates most of the oiv viewer and scenegraph. This encapsulation did provide a nice way to store the bitmap but not a way to get an in-memory copy, so we simply went for the easy win first. That said, adding this API would not be rocket science, just work.

Ocean dude.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜