Hello Guest

Frustum Culling - Scene gets culled from wrong pov!

  • 2 Replies
  • 6598 Views
Frustum Culling - Scene gets culled from wrong pov!
« on: March 28, 2012, 14:41:38 »
« Last Edit: April 01, 2012, 15:25:58 by tobiaspc »

*

Offline Riven

  • *
  • 15
Re: Frustum Culling - projection matrix is full off zeros
« Reply #1 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, ...)

Re: Frustum Culling - projection matrix is full off zeros
« Reply #2 on: March 30, 2012, 13:50:59 »
« Last Edit: April 04, 2012, 16:41:39 by tobiaspc »