Opengl 什么';我的纹理渲染有什么问题吗?

Opengl 什么';我的纹理渲染有什么问题吗?,opengl,textures,processing,Opengl,Textures,Processing,我正在尝试在opengl/processing3中渲染地板 这是我的密码: PImage-floorImage; 无效设置(){ 尺寸(1200、600、P3D); 光滑(8); FloorRimage=loadImage(“floor3.png”); } 作废提款(){ 背景(0); 环境光(255255); 摄像头(0.0100.0,-300.0,鼠标宽度/2.0,-(鼠标高度/2.0),0.0,0.0,-1.0,0.0); for(int x=-20;x看起来您的quad size=64,

我正在尝试在opengl/processing3中渲染地板

这是我的密码:

PImage-floorImage;
无效设置(){
尺寸(1200、600、P3D);
光滑(8);
FloorRimage=loadImage(“floor3.png”);
}
作废提款(){
背景(0);
环境光(255255);
摄像头(0.0100.0,-300.0,鼠标宽度/2.0,-(鼠标高度/2.0),0.0,0.0,-1.0,0.0);

for(int x=-20;x看起来您的quad size=64,但在x和z方向上移动了32。我认为您在这里有交点。请尝试替换为:

translate(x*64.0,0.0,z*64.0);