【问题标题】:black screen in andengine when i try to use the x,y offset in TextureRegion当我尝试在 TextureRegion 中使用 x,y 偏移时,andengine 出现黑屏
【发布时间】:2013-01-23 11:31:13
【问题描述】:

我正在使用 GLES2。当我创建我的区域时:

BitmapTextureAtlasTextureRegionFactory.createFromAsset(Atlas3, this, "columna.png",0 ,0);

一切正常。地图集是 128x256,纹理是 100x256 左右,所以我想使用 x 偏移,否则我的碰撞会被 box2d 弄乱。问题是每当我将偏移更改为 0,0 以外的任何值时都会出现黑屏。

有什么提示吗?

【问题讨论】:

    标签: android andengine textures


    【解决方案1】:

    使用 256+(offset) 而不是 256 作为纹理高度。


    SA

    【讨论】:

      猜你喜欢
      • 2021-12-26
      • 1970-01-01
      • 2016-04-11
      • 1970-01-01
      • 1970-01-01
      • 2021-04-15
      • 1970-01-01
      • 1970-01-01
      • 2020-09-28
      相关资源
      最近更新 更多