opengl超级宝典第五版第12章变换反馈集群例子的问题?

CyberLogix CyberLogix 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

 

opengl超级宝典第五版第12章变换反馈集群例子运行起来黑屏幕, 在网上查了发现时代码有BUG,The chapter 12 flocking example does not work · Issue #19 · flaccidware/oglsuperbible5 · GitHub

这个帖子说是解决了,但是后面附的文件

  • FlockingDemo.zip无法现在,通过下面的注释在代码中添加了
  •     glBindAttribLocation(flockingUpdateProgram, 0, "flock_position");
        glBindAttribLocation(flockingUpdateProgram, 1, "flock_velocity");
  • 但是还是运行起来黑屏,不知谁有运行成功过这个例子,问题出在啥地方?
  • Ok I figured out why the demo is not running, the flock_position and 
    flock_velocity attribute locations are not bound to the flock_update_program. I 
    managed to fix this and it works fine check the attached file. 
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
CyberLogix
图形处理/算法 19,462 成员 50,677 内容