LWJGL Forum

Please login or register.

Login with username, password and session length

Author Topic: Frustum Culling - Scene gets culled from wrong pov!  (Read 3676 times)

tobiaspc

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Frustum Culling - Scene gets culled from wrong pov!
« on: March 28, 2012, 14:41:38 »

Logged

Riven

  • Newbie
  • *
  • Offline Offline
  • Posts: 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, ...)
Logged

tobiaspc

  • Newbie
  • *
  • Offline Offline
  • Posts: 5
Re: Frustum Culling - projection matrix is full off zeros
« Reply #2 on: March 30, 2012, 13:50:59 »

Logged