near plane setting changes blit location

Started by raft, February 15, 2013, 09:29:28 PM

Previous topic - Next topic

raft

for example the setting below causes blit locations expanded: a blit at 0,0 is displayed at -x,-y

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

EgonOlsen

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.

EgonOlsen

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

raft

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