Author Topic: near plane setting changes blit location  (Read 2121 times)

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
near plane setting changes blit location
« on: February 15, 2013, 09:29:28 pm »
for example the setting below causes blit locations expanded: a blit at 0,0 is displayed at -x,-y

Code: [Select]
Config.nearPlane = 0.9f;
Config.glIgnoreNearPlane = false;

indeed this was fixed before but somehow broken again. see this post

i'm using jpct 2.6 and lwjgl 2.8.5

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: near plane setting changes blit location
« Reply #1 on: February 15, 2013, 09:41:43 pm »
I'll look into it. I've changed behaviour when setting the near plane with 1.26 to automatically adjust the fov but the strange blitting doesn't seem to be the only problem that this causes.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: near plane setting changes blit location
« Reply #2 on: February 15, 2013, 10:56:59 pm »
I've reverted the change and fixed an additional blitting problem with higher values for the near plane. I would have prefered to keep the change, but i somehow couldn't make a near-plane-setting in Config and a fov-method in Camera working together make feel right. Instead, i've added a method adjustFovToNearPlane() to Camera that does this on demand. But i don't think that you have some demand for it, so feel free to ignore it.

Here you go:

http://jpct.de/download/beta/jpct.jar
http://jpct.de/download/beta/jpct_ae.jar

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
Re: near plane setting changes blit location
« Reply #3 on: February 15, 2013, 11:10:35 pm »
thanks, you are very quick as always :)

it's fixed for desktop, I don't use AE at the moment so I cant verify it