glEnable(GL_TEXTURE_GEN_S) GL_INVALID_OPERATION
我目前正在研究阴影贴图。我找到了保罗的项目 http://www.paulsprojects.net/tutorials/smt/smt.html ,我目前正在尝试实现这一点。但我无法得到适当的解决方案。
你们中有人知道为什么在整个绘图过程中为每个 glmodelview- 和 glprojection-matrix 放置一个 glPushMatrix()、glPopMatrix() 对(所有 3 个必要的阴影路径)会在调用 glEnable(GL_TEXTURE_GEN_S 时导致任何 GL_INVALID_OPERATION 问题吗? )?
glEnable(GL_TEXTURE_GEN_S)的错误分析说,当前状态下glEnable(GL_TEXTURE_GEN_S)无法执行。有什么想法吗?
I'm currently working on a shadow Mapping thing. I found Paul's Projects http://www.paulsprojects.net/tutorials/smt/smt.html, and I'm currently trying to implement this. But I'm not able to get a proper solution.
Does anyone of you guys have any idea why putting a glPushMatrix(), glPopMatrix() pair for each glmodelview- and glprojection-matrix around the whole drawing process (all 3 necessary shadow-pathes) would cause any GL_INVALID_OPERATION problem when calling glEnable(GL_TEXTURE_GEN_S)?
The error analysis for glEnable(GL_TEXTURE_GEN_S) sais that in the current state glEnable(GL_TEXTURE_GEN_S) can not be executed. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请向我们展示一些代码。我最好的猜测是您在 glBegin…glEnd 块中调用了 gl{Push,Pop}Matrix 和或 glEnable ,而这些是不允许的。
Please show us some code. My best guess is that you called gl{Push,Pop}Matrix and or glEnable within a glBegin…glEnd block, where those are not allowed.