LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: tobiaspc on March 28, 2012, 14:41:38

Title: Frustum Culling - Scene gets culled from wrong pov!
Post by: tobiaspc on March 28, 2012, 14:41:38
Title: Re: Frustum Culling - projection matrix is full off zeros
Post by: Riven on March 29, 2012, 09:01:58
There are two bugs:

1. you forgot to set the byteOrder: projMatrixBuffer.byteOrder(ByteOrder.nativeOrder())
2. you passed the wrong parameter to glGetFloat(GL_PROJECTION_MATRIX not GL_PROJECTION, ...)
Title: Re: Frustum Culling - projection matrix is full off zeros
Post by: tobiaspc on March 30, 2012, 13:50:59