PyopenGl使离线屏幕缺少渲染数据 [英] PyopenGl taking offline screen short of rendered data

查看:160
本文介绍了PyopenGl使离线屏幕缺少渲染数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我是Python openGl的新手,我需要将屏幕缩短或者将openGL渲染数据写入图像并打开或渲染将数据渲染到opengl窗口。



提前谢谢。

Hi,

I am new to Python openGl, i need to take the screen short or else write the openGL rendered data into an image with openning or render the rendered data in to an opengl window.

Thanks in advance.

推荐答案

我怀疑你的显卡没有帧缓冲扩展。



看看从python调用opengl扩展的过程。



[ ^ ]



我没有opengl的经验在python中。在Windows中,我检索了函数指针以获取帧缓冲扩展函数。如果我尝试在没有显卡的PC中运行我的应用程序,它将返回glgenframebuffer函数的NULL指针。
I suspect your graphics card do not have framebuffer extension.

Have look at the procedure to call opengl extensions from python.

[^]

I have no experience in opengl in python. In windows I have retrieve the function pointers to get framebuffer extension functions. If I try to run my application in a pc without Graphics card it will return NULL pointer for glgenframebuffer function.


如何将openGl屏幕外数据写入JPG图像 [< a href =http://www.codeproject.com/Questions/655714/How-to-write-openGl-offscreen-data-in-to-JPG-imagetarget =_ blanktitle =New Window> ^ ]



找到以上链接,这是很好的。
How to write openGl offscreen data in to JPG image[^]

Find the above the link which is woking fine.


这篇关于PyopenGl使离线屏幕缺少渲染数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆